This week we will implement “if statements” in a program by modifying our program from week 3. In week 2 we calculated the total cost of fiber cable installation by multiplying the number of feet by $.87. This week we will evaluate a bulk discount. Modify your week 3 program so that if the user purchases more than 100 feet they are charged $.80 per foot. If the user purchases more than 250 feet they will be charged $.70 per foot. If they purchase more than 500 feet they will be charged $.50 per foot.
Steps:
- Display a welcome message for your program.
- Get the company name from the user.
- Get the number of feet of fiber optic to be installed from the user.
- Evaluate the total cost based upon the number of feet requested.
- Display the calculated information including the number of feet requested and company name.