Question: Algorithm and program code (each 11 points) 1. Using the following chart, write an if-else-if statement that assigns .10, .15, or .20 to commission, depending

Algorithm and program code (each 11 points)

1. Using the following chart, write an if-else-if statement that assigns .10, .15, or .20

to commission, depending on the value in sales. You ask the name and sales of a sale person then display the sales persons commission.

Sales Commission Rate

Up to $10,000 10%

$10,000 to $15,000 15%

Over $15,000 20%

2. Write a for loop that calculates the total of the following series of numbers:

1/30 + 2/29 + 3/28 +..+ 29/2+ 30/1

Use Raptor software to show the flow chart do the same thing as the assignment statements does.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!