Question
College Tuition. Assume you have been asked to develop an algorithm to calculate the price of tuition for incoming college students. An example spreadsheet is
College Tuition. Assume you have been asked to develop an algorithm to calculate the price of tuition for incoming college students. An example spreadsheet is given and described below. There are two variables that affect the price of tuition: (1) a $1,000 scholarship that students may have received and (2) whether the student lives in-state or out-of-state of the school. The initial cost of tuition before any deductions is $5,000. In each case, a check is placed in the appropriate box in the spreadsheet to the right. When a checkbox is checked, it reflects that the student has a scholarship or lives in-state (is True, in Boolean terms). When the checkbox is not checked, it reflects that the student does not have a scholarship or lives out-of-state (is False, in Boolean terms). One or both discounts can be selected. Assume that your algorithm will only be used when at least one of the discounts apply. In other words, you don't have to account in your algorithm for the case where neither discount applies. In other words, all students that live out of state received the $1,000 scholarship and anyone who didnt receive the scholarship lives in-state. The table below shows the ONLY THREE scenarios your flowchart needs to handle. Scenario Discount Type Variable Name 1 2 3 Received Scholarship Scholarship True False True Lives In-State Instate False True True Whether the student gets a scholarship (Scholarship = True or False) and whether or not the student lives in-state (Instate = True or False) are inputs for each student (i.e. pass through the flowchart). The university financial office adds a checkmark to the Setup section for all the students that received the $1,000 scholarship. The financial office then adds a checkmark if the student lives in or out of state. The initial cost of tuition for all students is $5,000. If the student lives in state, the students tuition is $3,500. Any students that received the scholarship will pay $1,000 less of the final total (i.e. in-state students pay $2,500 and out-of-state students would pay $4,000). When you design your flowchart, assume that the variables Scholarship and Instate are Boolean variables (They can only be True or False). Your flowchart should process first whether the student received the scholarship then second whether they live in-state or not. In Scenario 1, the student did receive the scholarship and lives out-of-state. In scenario 2, the student did not receive the scholarship and lives in-state. In scenario 3, the student received the scholarship and lives in-state.
Looking for answers to the following questions...
College Tuition: If the student does not live in-state, in the flowchart which symbol should you use to follow the decision symbol and what processes should be in it?
Rectangle: StateDiscount=0
Rectangle: StateDiscount=true, Instate=false
Diamond: StateDiscount=0, Instate = false
Rectangle: StateDiscount= 1500, Instate=true
Diamond: StateDiscount=1500
Diamond: StateDiscount=true, Instate=true
College Tuition: How many connector symbols should be present?
As many as you want
3
2
1
4
7
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