Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
(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, project1, 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 = projectl + 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: 1 undergraduates who got less than 80 in projects: 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

What is the education level of your target public?

Answered: 1 week ago

Question

Explain the Neolithic age compared to the paleolithic age ?

Answered: 1 week ago

Question

What is loss of bone density and strength as ?

Answered: 1 week ago