01.12.15 - 05.10.15
Program compiles without errors or warnings | 20 pts |
Program code is clean and readable | 10 pts |
Program prompts the user for input | 10 pts |
Program finds the correct answer when days are less than 100 | 30 pts |
Program finds the correct answer when days are between 100 and 10,000 | 20 pts |
Program does not use larger than needed datatypes | 10 pts |
Total | 100 pts |
The speed of light in a vacuum is 186,000 miles per second. Create a C program that will prompt the user of the program to enter a number of days. Perform the arithmetic that is necessary to calculate how many miles light will travel in that number of days.
Make your program readable with good use of whitespace, good variable names, and comments where needed.