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 03:20
Which of these is a benefit of social networking? oa. hiding your true identity from friendsob. avoiding talking to people in personoc. spending time with friends instead of studyingod. connecting with new people
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
Alex’s family members live in different parts of the world. they would like to discuss the wedding plans of one of their distant relatives. however, alex wants all the family members to talk to each other simultaneously so that they can make decisions quickly. which mode of internet communication should they use? a. blog b. email c. wiki d. message board e. instant messaging
Answers: 2
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, 16.02.2020 17:27
question
Physics, 16.02.2020 17:27
question
History, 16.02.2020 17:28
question
History, 16.02.2020 17:29
question
Mathematics, 16.02.2020 17:33
question
Law, 16.02.2020 17:33
question
Mathematics, 16.02.2020 17:35
question
Mathematics, 16.02.2020 17:35
question
Mathematics, 16.02.2020 17:38
question
Spanish, 16.02.2020 17:40