Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA-URGENT PLEASE SOLVE IN LESS THAN 20 minutes-IN JAVA PLEASE Write a program that does the following: Reads an integer from the user that represents

JAVA-URGENT PLEASE SOLVE IN LESS THAN 20 minutes-IN JAVA PLEASE
image text in transcribed
Write a program that does the following: Reads an integer from the user that represents the number of the students in a class. Reads the scores of the students from the user and stores them in an array. Calculates and prints the average of the students with a passing grade (above or equal to 60). Hints: Assume that the scores of the students are integers between 0 and 100 (inclusive) Assume that there is at least one student in the class with a passing grade. Sample run 1: Enter the number of students in the class: 3 Enter the scores of 3 students: 90 80 40 The average of the students with a passing grade is 85.0 Sample run 2: Enter the number of students in the class: 5 Enter the scores of 5 students: 90 80 40 60 70 The average of the students with a passing grade is 75.0

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

18. If xij = ai + bj , show that mn m =a+m; i=1 j=1 i=1 j=1

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago