# I have attached 2 codes, if you are using python2 use first code, if you are using python 3 use second code
#Please UPVOTE if you find my solution useful!!!
#==============Code 1(if you are using Python 2)==============
stu_nums=int(raw_input("Enter number of students: "))
for i in range(1,stu_nums+1):
name=raw_input("Enter name of student
"+str(i)+": ")
sum=0;
for j in range(1,4):
score=int(raw_input("Enter score "+str(j)+": "))
sum=sum+score
sum=sum/3
ans="%0.2f" % sum
print("Name: "+name)
print("Average: "+ans+"\n")
#===============Code 1 ends==================
#Don't forget to UPVOTE if you like my solution!!
#Following images shows code 1 and it's output....
#Please UPVOTE if you find my solution helpful!!!
#=============Code 2(if you're using Python 3)===========
stu_nums=int(input("Enter number of students: "))
for i in range(1,stu_nums+1):
name=input("Enter name of student "+str(i)+":
")
sum=0;
for j in range(1,4):
score=int(input("Enter
score "+str(j)+": "))
sum=sum+score
sum=sum/3
ans="%0.2f" % sum
print("Name: "+name)
print("Average: "+ans+"\n")
#===============Code 2 ends==================
#Don't forget to UPVOTE if you like my solution!!
#Following images shows code 2 and it's output....
#Don't forget to UPVOTE if you like my solution!!
Q3: Write a Python program the prompts the user for information for stu num students. For...
Write a c++ program that does the following: in main() 1. prompts for a student's name (with spaces_ 2. prompts for 3 grades 3. Calls a function to calculate the average of the 3 grades - arguments must be passed by value 3. displays the student's name and average grade - example: Fred Smith : 85.5 - the average should be a float displaying 1 digit of precision
On Dev C++, write a C++ program that prompts the user with the following option: 1) to enter a student information such as First Name, Last Name, SS# formatted as ###-##-####, userID and Password and store them into a struct data type. 2) to display the student information as shown in the example below: Name: Mary Last Name: Parker SS#: 000-00-1398 userID: mParker Password: ******** 3) Exit the program.
USE PYTHON 3Write a program that prompts the user to enter the number of students and each student's score, and displays the highest and second- highest scores.
In this assignment, you will write a program in C++ which uses files and nested loops to create a file from the quiz grades entered by the user, then reads the grades from the file and calculates each student’s average grade and the average quiz grade for the class. Each student takes 6 quizzes (unknown number of students). Use a nested loop to write each student’s quiz grades to a file. Then read the data from the file in order...
Write a program in Java according to the following specifications: The program reads a text file with student records (first name, last name and grade on each line). Then it prompts the user to enter a command, executes the command and loops. The commands are the following: "print" - prints the student records (first name, last name, grade). "sortfirst" - sorts the student records by first name. "sortlast" - sorts the student records by last name. "sortgrade" - sorts the...
Find Bugs in the pseudocode// A high school is holding a recycling competition// This program allows a user to enter a student's // year in school (1 through 4)// and number of cans collected// Data is entered continuously until the user wnats to quit// After headings, output is four lines// one for each school year classstart Declarations num year num cans num SIZE = 4 num QUIT = 9 ...
In C Langage Write a grading program for a class with the following grading policies:- a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, each graded on the basis of 100 points. c. The final exam counts for 50 percent of the grade, the midterm counts for 25 percent and the two quizzes together count for a total of 25 percent. Grading system is as follows:-...
C++ Write a program that reads the number of students in the class, then reads each student's name and his/her test score. Print out each student name, test score and grade, and the average score of the whole class. The program must use vectors and loops for the implementation. The grades are determined as follows: A >= 90; 80 <= B < 90; 70 <= C < 80; 60 <= D < 70; F < 60.
In Python:Write a program that prompts the user to enter the number of students and each student’s name and score, and finally displays the student with the highest score and the student with the second-highest score. Assume that the number of students is at least 2.
Write this code on python 3 only. Suppose class Student represents information about students in a course. Each student has a name and a list of test scores. The Student class should allow the user to view a student's name, view a test score at a given position, view the highest test score, view the average test score, and obtain a string representation of the student's information. When a Student object is created, the user supplies the student's name and...