12] Ellison Private Elementary School has three classrooms in each of nine grade
ID: 3531734 • Letter: 1
Question
12]Ellison Private Elementary School has three classrooms in each of nine grades, kindergarten (grade 0) through 8, and allows parents to pay tuition over the nine-month school year.Design the application that outputs nine tuition payment coupons for each of the 27 classrooms. Each coupon should contain the grade number (0 through 8), the class numbers (1 through 3), and the amount of tuition due.
Tuition for kindergarten is $80 per month. Tuition for the other grades is $60 per month times the grade level.
12]Ellison Private Elementary School has three classrooms in each of nine grades, kindergarten (grade 0) through 8, and allows parents to pay tuition over the nine-month school year.
Design the application that outputs nine tuition payment coupons for each of the 27 classrooms. Each coupon should contain the grade number (0 through 8), the class numbers (1 through 3), and the amount of tuition due.
Tuition for kindergarten is $80 per month. Tuition for the other grades is $60 per month times the grade level.
12]Ellison Private Elementary School has three classrooms in each of nine grades, kindergarten (grade 0) through 8, and allows parents to pay tuition over the nine-month school year.
Design the application that outputs nine tuition payment coupons for each of the 27 classrooms. Each coupon should contain the grade number (0 through 8), the class numbers (1 through 3), and the amount of tuition due.
Tuition for kindergarten is $80 per month. Tuition for the other grades is $60 per month times the grade level.
Explanation / Answer
START
Declarations
num grade = 0
num classroom
num month
num amount
while grade <= 8
month = 1
while month <= 9
classroom = 1
While classroom <= 3
CalculateAmount()
DisplayCoupon()
classroom = classroom + 1
endwhile
month = month + 1
endwhile
grade = grade + 1
endwhile
STOP
CalculateAmount()
if grade = 0
amount = 80 * month
else
amount = 60 * grade 8 month
end if
return
DisplayCoupon()
Output "Coupon for Grade : " , grade
Output "Classroom No : " , classroom
Output "Month : " ,month
Output "Fee Due : $" , amount
return
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.