Question: Write a program that accepts an ACT score as input and uses a decision structure to choose the appropriate math course. Students should be placed

Write a program that accepts an ACT score as input and uses a decision structure to choose the appropriate math course. Students should be placed in the highest course number possible. The highest ACT score possible is 36.

Freshmen interested in computer science are placed into math courses depending on their ACT scores:

  • MA 100 16 or above
  • MA 112 22 or above
  • MA 113 25 or above
  • MA 125 28 or above
  • MA 100E has no prerequisites.

Design your solution first using a flowchart.

If the end-user enters character input instead of numeric, display the appropriate message (see the example below).

Example output:

C:\Users\jcrab\Desktop>py math_act.py Enter your ACT math score: 27 Register for MA 113 C:\Users\jcrab\Desktop>py math_act.py Enter your ACT math score: 88 Invalid score. C:\Users\jcrab\Desktop>py math_act.py Enter your ACT math score: yes You must enter a number.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!