Threesuns

Email the Instructor

Contact

All Semesters

Semesters

All Courses

Courses

2016Fall

08.17.15 - 12.13.15

C Language

CSCI2473

Monday Wednesday
10:00 AM - 11:20 AM

Lightspeed

Lab02

Objective: To practice with variables, datatypes, and arithmetic

pastdue

Submit Your Solution

Lab02

Request a Copy of your Solution

Lab02

Requirements

Program compiles without errors or warnings20 pts
Program code is clean and readable10 pts
Program prompts the user for input10 pts
Program finds the correct answer when days are less than 10030 pts
Program finds the correct answer when days are between 100 and 10,00020 pts
Program does not use larger than needed datatypes10 pts
Total100 pts

Instructions

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.