CSU Programming Project
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.
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics