A student spends a majority of his weekend playing and watching sports, thereby
ID: 666005 • Letter: A
Question
A student spends a majority of his weekend playing and watching sports, thereby tiring him out and leading him to oversleep and often miss his Monday 8 AM math class. Suppose that the tuition per semester is $25,000 and the average semester consists of 15 units. If the math class meets three days a week, one hour each day four 15 weeks, and is a four unit course, how much does each hour class cost the student? Design an algorithm that computes the cost of each math class.
Create algorithm and a flow chart
Explanation / Answer
TF – Tuition Fee
UP – Units per semester
WS – Weeks per semester
MC – Math’s classes
CU- Cost of each unit
TMC – Total number of Math’s classes
CM – Cost of Each Math Class
ALGORITHM
Step 1: Start
Step 2: Input the values TF=25000, UP = 4, WS = 15, MC = 3
Step 3: Calculate CU = TF/UP
Step 4: Calculate TMC = WS * MC
Step 5: Calculate CM = CU/TMC
Step 6: Display CM
Step 6: Stop
FLOWCHART
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.