Question: Flowchart the following two problems for homework and upload them to the Drop Box. You may use Microsoft Word or Excel to draw the flowcharts.
Flowchart the following two problems for homework and upload them to the Drop Box. You may use Microsoft Word or Excel to draw the flowcharts. I also recommend analyzing the problem before drawing the flowchart.
1. Using multi-alternative Selection Logic
The Enlightened Corporation is pleased when its employees enroll in college classes. It offers them an 80% rebate on the first $500 of tuition, a 60% rebate of the second $400 of tuition and a 40% rebate on the next $300 of tuition. Draw the flowchart for a program that computes the rebate for an amount of tuition supplied as input.
Hint: I recommend doing this problem "by hand" to determine the mathematics involved in solving this before trying to tell the computer how to do it. That is, if you had $700 of tuition, how would you go about calculating the rebate for that amount? Or if you had $1000 tuition, what would the rebate be?
2. Using Repetition Logic with Counters and Accumulators
An instructor wants a program that will compute the percentage of males and females in his class as well as the average age of the students in the class. Input to the program will be a gender code which will be '1' for male students or '2' for female students and the age of each student. After collecting all of the data, the output should include the following: number of males number of females average age of the class percentage of males percentage of females
Determine the algorithm and draw the flowchart for a program that will do this.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
