Using conditional statement, create a Python program that will ask for the user's name, course, subject, prelim grade, midterm grade and final grade. Then it will compute for semestral grade wherein it is 30% of prelim grade, 30% of midterm grade and 40% of final grade. Then it will Identify if the student's SG is Passed, Failed or Invalid.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 28PE
icon
Related questions
icon
Concept explainers
Question

Using conditional statement, create a Python program that will ask for the user's name, course, subject, prelim grade, midterm grade and final grade. Then it will compute for semestral grade wherein it is 30% of prelim grade, 30% of midterm grade and 40% of final grade. Then it will Identify if the student's SG is Passed, Failed or Invalid.

Condition: If the SG is 0-74 the remarks is FAILED, if 75-100 the remarks is PASSED, if 101 and above the remarks is INVALID INPUT, and if below 0 the remarks is INVALID INPUT.

Sample Input:
Name: Nhinyah Aguila

Course: BSIT

Subject: Computer Programming

PG: 90

MG: 85

FG: 98

 

Output:

SG = 91.7

Remarks: PASSED

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage