Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(8 Marks) 2. College of Technology asked you to create a python program with following requirements: Write a python program using while loop with if
(8 Marks) 2. College of Technology asked you to create a python program with following requirements: Write a python program using while loop with if statement to do the following: a. Accept number of undergraduates. b. Use while loop i. Accept ID, projectl, project 2 and project 3 marks for each undergraduate. ii. Calculate the TotalMarks of each undergraduate. c. Count the undergraduates who got TotalMarks more than or equal to 80 and less than 80. d. Display the count of undergraduates who got TotalMarks more than or equal 80 and less than 80. Note: TotalMarks = project1 + project2 + project3 SET D Page 3 of 4 Sample Output Enter the number of undergraduates: 3 Enter The undergraduate ID: 111111 Enter Mark of Project 1: 20 Enter Mark of Project 2: 30 Enter Mark for Project 3: 20 Enter The undergraduate ID: 222222 Enter Mark of Project 1: 30 Enter Mark of Project 2: 40 Enter Mark for Project 3: 30 Enter The undergraduate ID: 333333 Enter Mark of Project 1: 30 Enter Mark of Project 2: 30 Enter Mark for Project 3: 10 undergraduates who got more than 80 in projects: undergraduates who got less than 80 in projects: 1 2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started