Question: Egnment Functions) - Protected View - Saved to this PC- Seard References Mailings Review View Help temet can contain viruses. Unless you need to edit
Egnment Functions) - Protected View - Saved to this PC- Seard References Mailings Review View Help temet can contain viruses. Unless you need to edit it's safer to stay in Protected View URUS College of Information Technology Department of Computer Science Enable Scriting CSC103: Introduction to Computer Science Assignment 4: Functions A company needs to compute the bonus earned by its salespeople. This bonus is computed from the total sales of the salesperson, using the following table: Total Sales Bonus Percent sales sales sales sales 296 596 {a) Write a function that takes the sales as input to compute and return the sales bonus amount. The sales bonus amount is calculated as follows: Sales bonus amount = sales * Bonus Percent (6) Write C++ program to test your function. Verify in your main program that the sales input is not a negative value otherwise display a proper error message. Sample Input/Output: Enter sales amount: 2100 Sales bonus = 73.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
