A company pays its salespeople on a commission basis. The
salespeople receive $200 per week plus 9 percent of their
gross sales for that week. For example, a saleperson who
sells $5000 worth of merchandise in a week receives $200
plus 9 percent of $5000, or a total of $650. You have been
supplied with a list of items sold by each salesperson. The
values of these items are as follows:
Item Value
A 239.99
B 129.75
C 99.95
D 350.89
Write a program that inputs one salesperson's items sold in
a week (how many of item A? of item B? etc.) and calculates
and displays that salesperson's earnings for that week.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is the purpose of extern storage specifier?

0 Answers  


What is constructor in C++?

0 Answers  


What is an adaptor class in c++?

0 Answers  


What is rvalue?

0 Answers  


What is meant by entry controlled loop?

0 Answers   Agilent, ZS Associates,






how many controls can we place on single form.

1 Answers   Microsoft,


What are the main features of c++?

0 Answers  


Which is not a valid keyword a) public b) protected c) guarded

0 Answers  


If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2.

1 Answers  


Does c++ cost money?

0 Answers  


What jobs can you get with a c++ certification?

0 Answers  


Can we get the value of ios format flags?

0 Answers  


Categories