subject
Computers and Technology, 11.10.2020 23:01 asclp

Write a Python 3 program that: Asks the user to get the code of a subject as input. The code consists of 4 characters separated by a space followed by a 3 digit number. We have computer science (CSCE), mechanical (MEEN), visualization(VIZA), mathematics(MATH) and statistics(STAT) departments. If the given code does not belong to any of the above-mentioned departments, the program should keep running until the user enters the correct answer.
Note 1: the subject’s code can be in lower-case or upper-case, your program should be able to handle both cases.
Ask the user to enter a course name. Calculates the final letter grades for that course. The user will give 3 scores (test 1, test 2, and final). All 3 scores (out of 100) should be entered in the same line, separated by a space. If one of the scores is more than 100, your program should print an error message and be able to repeat until getting 3 valid scores. The exams are 25%, 35%, and 40% of the final grade, respectively. The program will calculate the total score and print the final letter grade. The letter grading scale is shown in the following table. Calculate the average over all of them and the program will calculate the total score and print the final letter grade.
Score Letter Grade
90 and above A
80–89 B
70–79 C
60–69 D
<60 F
Sample output
Look at the following example and follow the format.
Print one full line of * and "Section a" on line 1.
The user entered an invalid input of "cs 110". Therefore, on line 3, an error message of "Invalid input, start over again" is printed and section "a" stars over again.
On lines 5-6, the same process repeats with a valid input.
On line 9, section b starts with a full line of *. For the prompts of course name "Programming I" was entered on line10. On line 12, the user entered the first number higher than 100, thus, an invalid message was printed on line 13 and the process was repeated on line 15. Since all numbers are valid on line 15, proceed to lines 17,18 and 19 to print the course name, total score, and final grade, respectively. The Program output ends with a full line of stars.
Section a
Enter the subject's code which you are looking for: cs 110
Invalid input, start over again
Section a
Enter the subject's code which you are looking for: csCE 110
CSCE 110 is a course from the department of Computer Science.
Section b
What is the name of course? Programming I
Enter 3 grades for 3 subjects from the department of CSCE: 150 80 95
Invalid grade/s, try again.
Enter 3 grades for 3 subjects from the department of CSCE: 90 80 95
Course name: Programming I
Total Score: 88.5
Final grade: B

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Idon’t understand the double8 coding problem. it is java
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
You know the right answer?
Write a Python 3 program that: Asks the user to get the code of a subject as input. The code consis...
Questions
question
Mathematics, 31.01.2020 13:50
question
Physics, 31.01.2020 13:50
question
Mathematics, 31.01.2020 13:50
Questions on the website: 13722367