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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started