Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that will calculate a sales person's weekly salary.The sales person receives a weekly salary of $200.00 plus a commission of 9% on

Write a program that will calculate a sales person's weekly salary.The sales person receives a weekly salary of $200.00 plus a commission of 9% on the amount of sales for the week.

The program will ask the user to enter the amount of sales for the week. Put the entire program into a sentinel-controlled loop so that the user can enter a negative number for the sales when all the sales people's weekly salaries have been calculated.

There is no validation.

Example Run: (bold type is what is entered by the user)

Enter the amount of sales (-1 to quit): $3000.00

The person receives $xxx.xx.

Enter the amount of sales (-1 to quit): $0.00

The person receives $xxx.xx.

Enter the amount of sales (-1 to quit): $-1

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

PostgreSQL 10 High Performance Expert Techniques For Query Optimization High Availability And Efficient Database Maintenance

Authors: Ibrar Ahmed ,Gregory Smith ,Enrico Pirozzi

3rd Edition

1788474481, 978-1788474481

More Books

Students also viewed these Databases questions

Question

1. Avoid conflicts in the relationship

Answered: 1 week ago