Skip to content
MathsGenie logo
Open app

Course home

  1. GCSE
  2. Computer Science AQA
  3. Question bank

Programming concepts

EasyMediumHard
12345678910111213141516171819202122232425262728293031323334353637
Question 37

Write a C# program that allows a custom fabric-dyeing workshop to calculate the total price of a dyeing job.

The program should:

  • allow the user to enter the fabric length in meters (no validation is required)
  • allow the user to enter the volume of dye used in milliliters (no validation is required)
  • calculate the total cost of the job by:
    • charging £1.45 for every meter of fabric
    • charging a further £0.08 for every milliliter of dye
  • output the final calculated cost.

You should use meaningful variable name(s), correct syntax and indentation in your answer.

[7]

Programming concepts Questions

  1. GCSE
  2. /Computer Science
  3. /Programming concepts