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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  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 a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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