Write a python program which takes marks of 5 subjects for 3 students using loop (for/while) and calculate the average of 3 subject mark and then display grade A if average marks are greater than or equal to 90 grade B if average marks lies between 90 and 80 grade C if average marks lies between 80 and 70 grade D if average marks lies between 70 and 60

Question

Write a python program which takes marks of 5 subjects for 3 students using loop (for/while) and calculate the average of 3 subject mark and then display grade A if average marks are greater than or equal to 90

grade B if average marks lies between 90 and 80

grade C if average marks lies between 80 and 70

grade D if average marks lies between 70 and 60

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Engineering

Programing

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: Identify what documents the developer should have at the end of a development project.

A: The fundamental objective of successful documentation is to guarantee that engineers and partners ar...

Q: Write a template function that returns the average of all elements of an array. Thearguments to the ...

A: SINCE THE PROGRAMMING LANGUAGE IS NOT MENTIONED, I HAVE USED C++ FOR CODING   Header file <iostr...

Q: The memory unit of a computer has 256K words of 32 bits each. The computer has an instruction format...

A: Given:Number of words = 256 K words = 28*210 words = 218 wordsNumber of bits per each word = 32 bit ...

Q: Create a c++ program to ask the user to choose from 2 temperature unit, Fahrenheit and Celsius. The ...

A: A required C++ program is as follows, #include<iostream> using namespace std; //Define main() ...

Q: Program 4: You found an exciting summer job for five weeks. It pays, say, $15.50 per hour.Suppose th...

A: Step 1:- Note:-I am writing the program in c++ because there is no programming language is mention i...

Q: 1. Why is information system design highly susceptible to scope creep?

A: Information System Design is used to accomplish the project. A project is the requirement of the cli...

Q: Describe the purpose of shell scripts. Provide one example to reflect the use of variables, construc...

A: Purpose of shell scripts: The shell is the command-line interface of the operating system or interp...

Q: Describe the differences between sequential access, direct access and random access? How does the pr...

A: Describe the differences between sequential access, direct access and random access? In sequential ...

Q: Suppose a disk drive has the following characteristics:1. Six surfaces2. 953 tracks per surface3. 25...

A: Given: Given that the disk drive has the following features: Number of surfaces = 6 Tracks per surfa...

Q: How does an architecture based on zero operands ever get any data values from memory?

A: Click to see the answer

Q: A nonpipelined system takes 100ns to process a task. The same task can be processed in a five-stage ...

A: Theoretical speedup achieved Here a non pipelined system takes 100ns for processing a task. This ta...

Q: Classify WSN based on routing topology, and hop counting. Give example for each type

A: IntroductionWireless Sensor Networks (WSNs) is an emerging technology with a wide range of potential...

Q: °Types of mouse that use optical sensor to detect movements of mouse.

A: ANS: - The optical mouse makes use of an optical sensor to detect the mouse movement. Optical mouse:...

Q: Q.4.1 Create a hierarchy chart that will show the relationship between the mainline logic of an a...

A: 4.1 The hierarchy chart will have application at the top-most level because it calls the function c...

Q: Give two reasons for the efficiency of vector processors.

A: Efficiency of vector processors A vector processor allows to fetch only a few number of instruction...

Q: You work in a local gift shop that is currently running a large sale. You have been asked to create ...

A: As language is not mentioned in the program, taking C as a basis for writing code :  Given formulae ...

Q: A generic DMA controller consists of the following components:1. Address generator2. Address bus int...

A: Purpose of Address generator: The address generator is used to generate the source as well as the d...

Q: The line that configures the host name for the computer at boot time can be found in /etc/hostname. ...

A: Solution: The path etc/hostname contains information about the machine such as machine name,applicat...

Q: 3. Convert the following NFA to a regular expression using the procedure described in class.

A:        

Q: Can anyone help me to slve this

A: Reason for agile software model is one of the best are as follows:   It allows us to release small ...

Q: Research current rates of monetary exchange. Draw a flowchart and write the variable declaration to ...

A: A flowchart helps in understanding a problem through pictorial representation. It depicts how variab...

Q: A palindrome is a sequence of characters whose reversal gives the same sequence.Examples are “radar”...

A: Pseudo code:- Create a main function Input string from the user Assing new string “answer” and ar[]...

Q: Explain MPEG-7 In terms of what is it ? Why do we need it ? What are the main elements

A: MPEG-7: Officially referred to as the Multimedia Content Description Interface (MPEG-7) ISO / IEC in...

Q: Write a java code program that first gets a list of integers from input. The input begins with an in...

A: Programming Approach: Importing required java library Declaring class of the program. Declaring the...

Q: Damien Mask founded Mask in 1984 in Melbourne, Australia, with $1,000 and a unique vision of how tec...

A: Actually, the answer has given below:

Q: To improve the efficiency and quality of digital communications, Time Division Multiple Access (TDMA...

A: TDMA: The TDMA stands for Time-Division Multiple Access which is a channel access method for shared...

Q: The following program  contains several errors, debug the following codes  #include <iostream>...

A: Introduction of C++ Program In this C++ program, the syntax for if the statement is: if(condition) /...

Q: Where are registers located, and what are the different types?

A: Location of registers and its types Registers are located inside the CPU and is used for temporary ...

Q: - is used to exchange the content of memory * location [3000], [3001] with DX register The instructi...

A: XCHG DX, [3000H] is the correct option 

Q: Please answer fully

A: It is any low-level programming language in which there is an exceptionally solid correspondence bet...

Q: What technology spawned the development of microcomputers?Why?

A: Technology spawning development of microcomputers The complexity of computers grows by adding more ...

Q: 4a. Answer the following question

A: A graph is said to be a bipartite graph if its all vertices can be divided into  two sets, such that...

Q: Using DeMorgan’s Law, write an expression for the complement of F if F (x, y, z) = (x′ + y)(x + z)(y...

A: The given expression is: F (x, y, z) = (x′ + y)(x + z)(y′ + z)′.   Find the complement of F Using th...

Q: A Computer Science instructor at a computer school wants his students to create a program that allow...

A: #include<iostream> using namespace std; int main(){    double moneyOwed,balance;    int moneyP...

Q: Use only the first seven Boolean identities to prove the Absorption Laws.

A: ANS: - The absorption law is given as: - For every pair x, y in Y, x(x+y)  = x   Following Boolen id...

Q: Write a template function that returns the average of all elements of an array. Thearguments to the ...

A: EXPLANATION: - The template average function is defined to return the average of all elements of ar...