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, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 23.06.2019 20:10
Leo is a recruitment executive for a large company. he has identified new labor resource requirements in both the marketing and production departments. what should be his first step in recruiting candidates for the positions? a. conduct background checks of candidates b. make job offers c. arrange interviews d. conduct reference checks e. place job ads on job sites
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
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, 24.09.2021 01:00
question
Mathematics, 24.09.2021 01:00
Questions on the website: 13722363