Level 1 - Inputs, outputs and structure 0 of 9 activities solved
  1. Hello World Not yet solved
  2. Carpet cost Not yet solved
  3. Ball pit Not yet solved
  4. Dice face 5 Not yet solved
  5. Temperature converter Not yet solved
  6. Fish tank volume Not yet solved
  7. Microscopy Not yet solved
  8. Circle properties Not yet solved
  9. Energy bill calculator Not yet solved
Next series Level 2 - Selections
Level 1 - Inputs, outputs and structure

Fish tank volume

Sign in to hand in your solution and get feedback.

// Fish tank volume program using System; class Submission { // ------------------------- // Subprograms // ------------------------- static double volume(int length, int width, int height) { } static double litres_to_gallons(double litres) { } // ------------------------- // Main program // ------------------------- public static void Main(string[] args) { int length = int width = int height = double litres = double gallons = Console.WriteLine("A " + length + " x " + width + " x " + height + " cm tank is " + litres + " litres and " + gallons + " imperial gallons."); } }