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
Step: 1
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-text-image.webp)
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp)
Step: 3
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp)
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started