Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Write down the code to create a program to collect the marks of the following subjects and to calculate the average score that the

image text in transcribed

3. Write down the code to create a program to collect the marks of the following subjects and to calculate the average score that the student obtained. - Math - English - Science - PE a) Assign each of the subject as a variable along with user inputs to each of them. Assign a variable named "avg" which should have the average of the student as the its value. ( Create meaningful messages on the user input message). b) Create the following output using the IF,ELIF and ELSE Statement with appropriate conditions. If the average is greater than 90 then print ("Your average is", avg, That is a very good score.") If the average is greater than 75 then print (Your average is, avg, That is a fairly good score. But you can improve) If the average is greater than 60 then print (Your average is", avg, That is not the best score. Please focus on the area of concerns.") If the average is less than 60 then print (Your average is", avg, Dear Student - Your score this term is too low. Try again next time")

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

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions