Create an application to calculate sales persons salary

Assignment Help Programming Languages
Reference no: EM13771948

Third assignment is: A company pays its sales staff on a commission basis. Each member of the sales staff receives $150 per week, plus 10% of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $150 plus 10% of $5000, a total of $650. Write an application that calculate each sales person's total salary per week.

The application program should create a file and save the results of calculation in the file with following format: Employee ID: 1 Sales Amount: $200 Employee ID: 2 Sales Amount: $250 Employee ID: 3 Sales Amount: $650 Employee ID: 4 Sales Amount: $1150 Sample Run: Enter file name: salary_week1.txt Enter sales amount for sales person ID 1: $500.00 Sales Amount for ID 1: $200 Do you have more to calculate? (0 to yes, -1 to no): 0 Enter sales amount for sales person ID 2: $1000.00 Sales Amount for ID 2: $250 Do you have more to calculate? (0 to yes, -1 to no): 0 Enter sales amount for sales person ID 3: $5000 Sales Amount for ID 3: $650 Do you have more to calculate? (0 to yes, -1 to no): 0 Enter sales amount for sales person ID 4: $10000 Sales Amount for ID 4: $1150 Do you have more to calculate? (0 to yes, -1 to no): -1 Good-bye!!

Reference no: EM13771948

Questions Cloud

Comparative statistics for the most populated countries : Choose a Region and construct a few tables and a few graphs showing comparative statistics for the 4 most populated countries in your Asia based on the indexes:
Explain what is the order of the calls to the constructor : Given the following class inheritance structure, what is the order of the calls to the constructor if an object of class derived 2 is declared
Describe in detail the budgets : Budgets are the driving force behind all organizations. Whether a manufacturing organization, or a service organization such as a medical or public accounting firm, budgets are used not only for planning purposes, but also used for performance mon..
The existence of carbon based molecules in meteorites : What is meant by a radiationi dominated universe? Matter dominated universe?
Create an application to calculate sales persons salary : a salesperson who grosses $5000 in sales in a week receives $150 plus 10% of $5000, a total of $650. Write an application that calculate each sales person's total salary per week.
Discuss the movement of teams in baseball : In a minimum of 250 words in your initial post discuss the movement of teams in baseball. What teams left to other cities? Why did they do this
Stakeholders in health care : How do you define stakeholder? Are consumers considered stakeholders? Why or why not? Stakeholders originated with corporate business, so why it is used in health care?
What is the charge on the monatomicion : How many valence electrons does an oxygen atom have - What is the charge on the monatomicion that calcium forms in its compounds?
Explain what is meant by service to the public : Explain what is meant by service to the public and how do officers fulfill this mission

Reviews

Write a Review

Programming Languages Questions & Answers

  Which functions perform assignment score to private member

Consider this class definition: class quiz { public: quiz( ); int f( ); int g( ) const; private: double score; }; Which functions can carry out an assignment score=1.0; to the private member variable score?

  Copies the content of one file into another file

write a c program that copies the contents of one file to a destination file.

  Create internal representation of polynomial is array

Create class Polynomial. The internal representation of a Polynomial is an array of terms. Each term contains a coefficient and an exponent.

  What do you meant by abstract keyword

What does the abstract keyword do and what are generics as they relate to the built in linked list class? Why do we need them?

  Write function to merge contents of two sorted arrays

Write a function which will merge contents of two sorted (ascending order) arrays of type FLOAT values, use efficient bubble sort to sort two arrays first and then use merger function.

  Write the program by declaring one-dimensional array

Write the program by declaring one-dimensional array which could be used to hold data for grades (int type) of 10 students. The program will prompt user for numeric grades.

  Write a little man program that adds a column of input value

Write a Little Man program that adds a column of input values and produces the sum as output. An input value of zero will indicate the last value in the input stream of input values.

  Prepare menu driven program for arithmetic operations

Create algorithms, flowchart and write programs in c language for following: Prepare a menu driven program for different arithmetic operations.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write program to calculate student-s quiz average

Write a program that will calculate a student's quiz average. The program should prompt the user for the number of quizzes and then ask the user for each quiz grade.

  Write a program that reads an input line from the user

Write a program that reads an input line from the user (until the new-line character \n) and displays the number of times each lower-case letter appears in it (Everything else in the input except lower-case letters can be ignored.)

  Program to store item-s price

Suppose a c++ program requires to store item's price. Price will range from $15.50 to $20. Write down assignment statement which allots value $16.23 to variable.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd