CS 115 Program 1 Spring 2007

  • Expand on the design given below. That is, give more of the details at each step. Put this design in a text file called "design1.txt"
    1. Display the Vadersoft Logo
          1.1 Display first line using escaped character for \
         1.2 display second line of logo
         1.3 display third line of logo
    2. Prompt the user for a radius
         2.1 Print a prompt message
         2.2 input the radius
    3. Prompt the user for a mass
         3.1 Print a prompt message
         3.2 input the mass
    4. Calculate the amount of energy required
          4.1 calculate joules using formula
          4.2 convert joules to kilowatt-hours using formula
    5. Display the resulting energy in kilowatt hours
         5.1 Display label
         5.1 Display result