applenerd15
September 28th, 2010, 07:00 PM
Hey VT! I needed help with a question for my class, QBasic Programming. This is the question.
If you have the book its on page 118 number 4
4. Write a program to list several activities and the number of calories expended during 15, 30, and 60 minutes of each activity. Use the following Data:
Activity Calories Burned per Minute
Sleeping 2.3
Jogging 15.0
Sitting 1.7
Use READ and DATA statements to place the data in variables. Then use commas to space the output so that is looks similar to the following:
Activity 15 Minutes 30 Minutes 60 Minutes
Sleeping xxx.xx xxx.xx xxx.xx
Jogging xxx.xx xxx.xx xxx.xx
Sitting xxx.xx xxx.xx xxx.xx
If you have the book its on page 118 number 4
4. Write a program to list several activities and the number of calories expended during 15, 30, and 60 minutes of each activity. Use the following Data:
Activity Calories Burned per Minute
Sleeping 2.3
Jogging 15.0
Sitting 1.7
Use READ and DATA statements to place the data in variables. Then use commas to space the output so that is looks similar to the following:
Activity 15 Minutes 30 Minutes 60 Minutes
Sleeping xxx.xx xxx.xx xxx.xx
Jogging xxx.xx xxx.xx xxx.xx
Sitting xxx.xx xxx.xx xxx.xx