Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Exercism

Fortran

via Exercism

Overview

Build a Learning Habit
Download Class Central's free printable study calendar
Download for Free
Learn Fortran programming through hands-on exercises covering fundamental concepts and practical applications. Start with the classic "Hello World" program and progress to more complex challenges like matrix operations, prime number calculations, and string manipulations. Explore mathematical problems such as the Collatz Conjecture and Armstrong numbers, implement game logic with Yacht, and solve various algorithmic puzzles. Gain proficiency in Fortran's unique features while working on diverse projects ranging from simple calculations to more advanced computations in physics and mathematics.

Syllabus

  • Hello World
    • Exercism's classic introductory exercise. Just say "Hello, World!".
  • Acronym
    • Convert a long phrase to its acronym.
  • Armstrong Numbers
    • Determine if a number is an Armstrong number.
  • Binary Search
    • Implement a binary search algorithm.
  • Bob
    • Bob is a lackadaisical teenager. In conversation, his responses are very limited.
  • Collatz Conjecture
    • Calculate the number of steps to reach 1 using the Collatz conjecture.
  • Darts
    • Calculate the points scored in a single toss of a Darts game.
  • Difference of Squares
    • Find the difference between the square of the sum and the sum of the squares of the first N natural numbers.
  • Grains
    • Calculate the number of grains of wheat on a chessboard given that the number on each square doubles.
  • Hamming
    • Calculate the Hamming distance between two DNA strands.
  • ISBN Verifier
    • Check if a given string is a valid ISBN-10 number.
  • Isogram
    • Determine if a word or phrase is an isogram.
  • Luhn
    • Given a number determine whether or not it is valid per the Luhn formula.
  • Matrix
    • Given a string representing a matrix of numbers, return the rows and columns of that matrix.
  • Nth Prime
    • Given a number n, determine what the nth prime is.
  • Pangram
    • Determine if a sentence is a pangram.
  • Perfect Numbers
    • Determine if a number is perfect, abundant, or deficient based on Nicomachus' (60 - 120 CE) classification scheme for positive integers.
  • Queen Attack
    • Given the position of two queens on a chess board, indicate whether or not they are positioned so that they can attack each other.
  • Raindrops
    • Convert a number into its corresponding raindrop sounds - Pling, Plang and Plong.
  • RNA Transcription
    • Given a DNA strand, return its RNA complement.
  • Roman Numerals
    • Convert modern Arabic numbers into Roman numerals.
  • Saddle Points
    • Detect saddle points in a matrix.
  • Sieve
    • Use the Sieve of Eratosthenes to find all the primes from 2 up to a given number.
  • Space Age
    • Given an age in seconds, calculate how old someone is in terms of a given planet's solar years.
  • Sum of Multiples
    • Given a number, find the sum of all the multiples of particular numbers up to but not including that number.
  • Triangle
    • Determine if a triangle is equilateral, isosceles, or scalene.
  • Two-Fer
    • Create a sentence of the form "One for X, one for me.".
  • Yacht
    • Score a single throw of dice in the game Yacht.
  • Leap
    • Determine whether a given year is a leap year.
  • Reverse String
    • Reverse a given string.
  • Allergies
    • Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.
  • High Scores
    • Manage a player's High Score list.
  • Rational Numbers
    • Implement rational numbers.
  • Protein Translation
    • Translate RNA sequences into proteins.
  • Linked List
    • Implement a doubly linked list.

Reviews

Start your review of Fortran

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.