Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

sorry, needs to be in c++ my first course so should be relatively simple, but the chapter we are on is switch statements, if/else starements,

image text in transcribed
sorry, needs to be in c++
my first course so should be relatively simple, but the chapter we are on is switch statements, if/else starements, relational operators, comparing characters and strongs, checking numeric ranges
Sphere are 4 - PR The program should validate the user menu choice. Yan invalid menu option is should display a message telling the user what the valid choices are and exit the program The program should also not allow the user to enter a negative number for any of the values used to calculate the areas. F they do the program must indicate which value entered was invalid, being specific. For example for a rectangle, if the length is invalid there should be a message like "Value entered for the length is invalid. Pseudocode must be provided in the comment block at the top of the file Programming Assignment 8 The commission has ruled that the company you work for Municipal Power and Light, overcharged customers for two months during the previous year. To compensate the customers, the commission has ordered the company to decrease each customer's next month by 12% The state levies a 3.5% utility tax and the city levios a 1.5% ty tax, both of which must be applied to the customer's be before it is discounted. (The state and city want their faces on the full undiscounted amount, and the 12% discount does not apply to the utility taxes) Municipal Power and Light charges are as follows: kWh used Cost Scale less than 1000 at least 1000 but less than 1300 at least 1300 but less than 2000 S0.052 per kWh used Lowol $0.052 per kWh for first 1000 kWh used LOWO Low03 50.052 per kWh for first 1000 kWh used M EDIUM O $0.041 per kWh for the next 300 kWh used MEDIumoal 50.035 per kWh over 1300 kWh used MEDIUMD3 $0.052 per kWh for first 1000 kWh used HICHO $0.041 per kWh for the next 300 kWh used HIGH OCZ $0.035 per kWh for the next 700 kWh used HIGH03 $0.03 per kWh over 2000 kWh used HIEHDL at least 2000 Inputs for your program should include the customer name and number of kWh used during the current month. Remembe that the state and city taxes are computed on the first amount in the above list. Output should include in a formatted message: Customer name base, undiscounted, una hitamount discount amount state utility tax aniourt city utility tax amount total amount due Pseudocode must be paided in the comment block at the top of the file. Quiz 4 uz 4 will be comprised of 10 multiple choice and true false questions covering the Chapter 4 material covered in Woek Quiz 4 is due by 11:59 pm CT Sunday

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions

Question

Organizing Your Speech Points

Answered: 1 week ago