Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with 20 and 21 please! 20.(10) I need to determine a business's value (a number value), which is one of my in

I need help with 20 and 21 please!
image text in transcribed
20.(10) I need to determine a business's value (a number value), which is one of my in the business rating levels. Rating levels can be A or B or C or D where business's value (a number value), which is one of many attributes used levels can be A or B or C or D where a value used in the calculations: for an A rating, rate level is 90. B = 80. C-60, D-40. Write the code to determine the RATE (90, 80, 60 or 40) using a switch statement. Assign to RATE one of the four values. cin>>letterRate; switch( ) 21.(10) I am buying a big truck. I need to know the salesman commission for sailing the truck which varies based on the truck price. If the truck price is below $75,000, his commission is 5.7% and of over $75,000 is commission is 6.2%. Given the following, write the code to compute and print the salesman commission to two decimal places after the decimal point. Infile >> TruckPrice

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions