Question: Help needed, please supply screenshot of code. Unable to copy and paste code. Assignment Specifications 1. You will develop a Python program which calculates the

Help needed, please supply screenshot of code. Unable to copy and paste code.
Help needed, please supply screenshot of code. Unable to copy and paste
code. Assignment Specifications 1. You will develop a Python program which calculates
the tuition for an undergraduate MSU student during Spring Semester 2021, based
on parameters supplied by the user (such as the major and class
level) 2. Your program will permit mixed-case input strings. For example, the

Assignment Specifications 1. You will develop a Python program which calculates the tuition for an undergraduate MSU student during Spring Semester 2021, based on parameters supplied by the user (such as the major and class level) 2. Your program will permit mixed-case input strings. For example, the strings "yes", "Yes", "YES" and "YES" will all be processed by your program as equivalent user inputs. See note 4 in Assignment Notes below. 3. The calculated tuition will be displayed with a dollar sign (S) and commas for the thousands. That is, a value of 12345.67 will be displayed as $12,34567 by your program. Also, even dollar amounts will have zeros for cents (for example, a value of 12 will be displayed as $1200). See note 3 in Assignment Notes below. I 4. The following tables give the necessary values. College Resident and year Par Credi (1-11) Fiat Rate (12-13) FCredit D16) Core Units Freshman $482 $7230 Flat + credit Sophomore $494 $7 410 Flat + credit Junior $555 $8,325 Flat credit Senior $555 $8,325 Flat + credit Ell Broad College of Business & College of Engineering Freshman $482 $7.230 Flat credit Sophomore $494 $7,410 Flat + credit Junior $573 $8,595 Flat + credit Senior $573 $8.595 Flat credit Full-Time $226 $670 Special Fees (per semester) Part-Time (4 credits or fower) Business - Juniors and seniors $113 Engineering - admitted $402 Health - Juniors and seniors $50 Sciences - Juniors and seniors $50 $100 $100 Student Votod Taxos (per semester) ASMSU Tax - all undergraduate students FM Radio Tax-all students State News Tax-all students with 6 or more credits James Madison College Student Senate Tax - all students in James Madison College $21 $3 55 $7.50 g| 5. "flat + credit: Students taking more than 18 credits calculate their tuition by starting with the flat fee and adding on the specified per-credit for each credit greater than 18. For example, a student taking 20 credits pays the flat rate plus 2*(per-credit). The per-credit" value is the value in the "Per-credit (1-11)" column. 6. Input Specification and Ordering: To facilitate grading, the input must be in the following order: a) Enter Level as freshman, sophomore, junior, senior b) If level is junior or senior, ask for College. Collego-business, engineering, health, sciences, none: e) If level is freshman or sophomore, ask if admitted to College of Engineering (yeso): d) If college is not business, engineering, health or sciences, ask if James Madison College (yeso) e) Credits 1) Ask if the user wants to do another calculation Assignment Notes 1. To clarify the project specifications, sample output is provided at the end of this document 2. Your program must accept user inputs in the order specified. 3. Python 3 provides formatting for the dollar output. A comma () causes commas to be properly placed in numbers. Note that the ordering matters so that comma is placed immediately after the colon and before other formatting marks, cg, (:,.2) Experiment in the shell 4. The string method lower() can be used to convert all letters in a string to lower case. This is particularly useful for input, that is you can handle "'yEs","yes" "YES". cto, by converting the 4. The string method lower) can be used to convert all letters in a string to lower case. This is particularly useful for input, that is you can handle "yes":"yes", "YES", eto, by converting the input to lower case and checking against "yes" 5. The Python None is a useful default initialization for variables that may not be assigned a value. For example, not everyone is asked for their college so initializing college to None can be bandy because None evaluates as False in a Boolean expression. college - None 16 college: print("this will not print it college has the value None") 6. Notes on handling input errors: For "yeso" questions, assign all answers that are not "yes" to be "no". For the question about college that has an option of "none", assign any answer to be "none" (or None, if you wish) for any response that is not one of the specified colleges. For level, if the answer is not one of the specified responses ("freshman", etc.), you must print an error message "Invalid input. Try again." and re-prompt until you get a specified response For credits, input must be an integer greater than zero. Print an error message "Invalid input. Try again." and re-prompt until you get an integer greater than zero. Hint: the string isdigit () method is useful here. 7. Common error to avoid. You might like to use a Boolean expression such as this: level = 'freshman' or sophomore' or 'Junior' or 'senior' Unfortunately, that expression always evaluates to True because any non-empty string is True so it is effectively: level -- "freshman' or True or True or True Instead use the following (level - freshman') or (level - sophomore) or (level == unior) or (level -- 'senior) 8. You are responsible for following the coding standard items 1-6 9. You are not allowed to use advanced data structures such as list, dictionaries, classes, etc. However, you are allowed to read ahead and use try-except and functions. 10. "Hard-coded answers" will receive a zero score for the project. That is, if you design your code to handle the specific test cases rather than the general problem, you will not get credit. Sample Output TEST 1 2021 MSU Undergraduate Tuition calculator. Enter Level as freshman, sophomore, junior, senior: freshman Are you admitted to the College of Engineering (yeso): no Are you in the James Madison College (yeso): no Credits: 12 Tuition is $7.259.00. Do you want to do another calculation (yeso): no TEST 2 2021 MSU Undergraduate Tuition Calculator. Enter Level as freshman, sophomore junior, senior: Junior Enter college as business, engineering, health, sciences, or none: business Credits: No Invalid input. Try again. Credits: 17 Tuition is $8,850.00 Do you want to do another calculation (yeso): no A TEST 3 2021 MSU Undergraduate Tuition Calculator. Enter Level as freshman, sophomore, Junior senior: Senior Enter college as business, engineering, health, sciences, or none: engineering Credits: 5 Tuition is $3,559.00. Do you want to do another calculation (yeso): Yes Enter Level as freshman, sophomore, Junior, senior: sophomore Are you admitted to the College of Engineering (yeso): yes Credits: 20 Tuition 15 59,097.00. Do you want to do another calculation (yeso): no TEST 4 2021 MSU Undergraduate Tuition Calculator Enter Level as freshuan. sophomore, Junior seniori xxx Involid input. Try again. A Read aloud Page view Do you want to do anote cancunanon yeno no TEST 4 2021 MSU Undergraduate Tuition Calculator. Enter Level as freshman, sophomore, junior, senior: XXX Invalid input. Try again. Enter Level as freshman, sophomore, Junior, senior: junior Enter college as business, engineering, health, sciences, or none: abcd Are you in the James Madison College (yeso): yes Credits: 0 Invalid input. Try again. Credits: ab Invalid input. Try again. Credits: 3.5 Invalid input. Try again. Credits: 11 Tuition is $6,141.50 Do you want to do another calculation (yeso): no Grading Rubrie Computer Project 3 Scoxing Summary General Requirements: (4 pts) Coding Standard 1-6 (descriptive comments, mnemonic identifiers, format, etc.) Implementations: (4 pts) Test 1 (4 pts) Test 2 (4 pts) Test 3 (4 pta) Test 4

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!