use JAVA

Create a HighestGrade application that prompts the user for five grades between 0 and 100 points and stores

the grades in an ArrayList. HighestGrade then traverses the grades to determine the highest grade and then

displays the grade along with an appropriate message.

Output:

Enter a grade (between 0 and 100): 87

Enter a grade (between 0 and 100): 65

Enter a grade (between 0 and 100): 98

Enter a grade (between 0 and 100): 89

Enter a grade (between 0 and 100): 55

The highest grade is: 98

Answers

Answer 1

Answer:

import java.util.*;

public class HighestGrade

{

       public static void main(String args[])

       {

                Scanner sc = new Scanner(System.in);

                 int n = 5;      

                ArrayList<Integer> grades = new ArrayList<Integer>(n);

               for (int i = 1; i <= n; i++)

                {

                       System.out.print("Enter a grade (between 0 and 100): ");

                       int num = sc.nextInt();

                       grades.add(num);

                }

                int max = grades.get(0);

                for (int i = 1; i < n; i++) {

                       if (grades.get(i) > max) {

                             max = grades.get(i);

                       }

                }

               System.out.print("The highest grade is: "+max);

       }

}

Explanation:

The class HighestGrade application rompts the user for five grades between 0 and 100 points and stores  the grades in an ArrayList. HighestGrade then traverses the grades to determine the highest grade and then displays the grade along with an appropriate message.


Related Questions

In Scratch, what is used to create a picture that lies behind the characters in your game?
backgrounds
backdrops
rearviews
landscapes

Answers

Answer:

the answer to this queston is backdrops

I need help right away pleas! 30 points.

A website layout needs to be simple and reasonably organized.

Answers:
A) Design
B) User-Friendly Website Navigation
C) Call to Action
D) Elements

Answers

Answer:

I'm very sorry if I'm wrong but I think it's A

What is the impact of Customer Centricity?

Answers

Customer-centric businesses generate greater profits, increased employee engagement, and more satisfied customers. Customer-centric governments and nonprofits create the resiliency, sustainability, and alignment needed to fulfill their mission.

he JavaScript ________ defines items on a web page such as graphics, tables, and headers as objects.

Answers

The JavaScript DOM defines items on a web page such as graphics, tables, and headers as objects.

The JavaScript DOM defines items on a web page such as graphics, tables, and headers as objects.

The JavaScript DOM

The JavaScript DOM Known as the Document Object Model (DOM) is a programming interface that allows one to manipulate the  web documents, such that one  can change the document's structure, style, and content using objects like :

graphicstablesheaders.

Therefore, to access items on a web page, The  JavaScript DOM is applied.

Learn more about the dom here:https://brainly.com/question/25772355

Write an overloaded function max that takes either two or three parameters of type double and returns the largest of them.

Answers

#include
#include
using namespace std;

// first overloaded function, with 2 parameters
double max(double x, double y){
if(x > y) return x;
else return y;
}
// second overloaded function, with 3 parameters
double max(double x, double y, double z){
// get the maximum of first 2 numbers, store it in 'temp'
double temp = max(x, y);
// get the maximum oamongf temp and the third number
if(temp > z) return temp;
else return z;
}

// main starts
int main(){
// declare 3 variables to store the numbers
double a, b, c;
// prompt the user to enter 3 numbers
cout << "Enter three numbers: ";
// input 3 numbers
cin >> a >> b >> c;
// set the number of digits after decimal points to 1
cout << fixed << setprecision(1);
// print the maximum of first 2 numbers
cout << "The maximum of " << a << " and " << b << " is " << max(a, b) << endl;
// print the maximum of all the 3 numbers
cout << "The maximum of " << a << ", " << b << " and " << c << " is " << max(a, b, c) << endl;
return 0;
}

The program is an illustration of overloaded functions

Overloaded functions are different functions with the same name

The overloaded function

The function written in Python, where comments are used to explain each action is as follows;

# This defines the first overload function

def maxNum(a, b):

   #This returns the maximum

return max(a,b)

# This defines the second overload function

def maxNum(a, b, c):

   #This returns the maximum

return max(a,b,c)

Read more about functions at:

https://brainly.com/question/26497128

#SPJ9

What is a disadvantage of communicating on social media?

Collaborating with others
Speed
Lack of privacy
Maintaining relationships

Answers

Answer:

Lack of privacy

Explanation:

You can enter common data in multiple worksheets by __________.
a) Grouping Worksheets
b) Data Validation
c) PivotTable
d) Consolidating Data​

Answers

Answer:

A.) Grouping Worksheet.

Explanation:

Hope this helps!

Q) Look at the code sequence and select the correct output

str="Python using Colab"
for i in str:
if(i.isupper()==True):
print(i.lower(), end="")
if(i.islower()==True):
print(i.lower(), end="")

(a) pYTHONUSINGcOLAB
(b) PYTHONUSINGCOLAB
(c) Error
(d) pythonusingcolab​

Answers

Answer:

D.

Explanation:

who invent cars and who invent bikes and who invent pc

Answers

Answer:

Cars were invented in 1886 by Karl Benz.The term bicycle was coined in France in the 1860s, but The first verifiable claim for a practically used bicycle belongs to German Baron Karl von Drais in 1817The first computer was by Charles Babbage, an English mechanical engineer and polymath he originated the concept of a programmable computer.

Marci enjoyed the restaurant's meatloaf so much, she asked for the recipe. She wants to make 1/6 of the recipe. How much garlic powder does Marci need?

Answers

Answer:

she needs 1/6 of the garlic powder in the original recipe

Hope This Helps!!!

Question 3 You are working with the ToothGrowth dataset. You want to use the skim_without_charts() function to get a comprehensive view of the dataset. Write the code chunk that will give you this view.

Answers

There are different kinds of chunk options. The code chunk  that will give me this view is  skim_without_charts(ToothGrowth)

This code chunk can gives me a comprehensive view of the dataset. When you look into the parentheses of the skim_without_charts() function, you will see the name of the dataset that you intended looking into/viewing.

The code is known to return or give a short detail with the name of the dataset and the number of rows and columns therein.

It also makes one to see the column types and data types that are found/ contained in the dataset. The ToothGrowth dataset is known to have 60 rows.

Learn more about Code Chuck from

https://brainly.com/question/25525005

You're researching a recent XSS attack against a web
application. The developer showed you the JavaScript code
used to sanitize and validate input in the browser; even if
you're not a coder, it seems like it would have prevented the
attack. What is the most likely reason the web application
was vulnerable? Choose the best response.

A. Client-side validation can be easily bypassed.
B. Input validation doesn't reliably protect against XSS
attacks.
C. Server-side validation can be easily bypassed.
D. The attacker performed an injection attack to bypass
input validation.

Answers

The most likely reason the web application  was vulnerable to a cross-site scripting (XSS) attack is: A. Client-side validation can be easily bypassed.

Cross-site scripting (XSS) attack can be defined as a security vulnerability through which malicious scripts are injected by an attacker into benign and trusted web application or website.

This ultimately implies that, a cross-site scripting (XSS) attack makes it possible for an attacker to inject malicious client-side scripts into benign and trusted web application or website that are viewed by others. Also, an XXS attack doesn't target server-side scripting languages such as:

PythonPHP

Generally, a cross-site scripting (XSS) is used by an attacker to easily bypass client-side validation and the "same-origin-policy" of web application or website, in order to gain unauthorized access to information.

Read more on XXS attack here: https://brainly.com/question/15979218

Write a recursive boolean method named isMember. The method should accept two arguments: an int array and an int value. The method should return true if the value is found in the array, or false if the value is not found in the array.

Answers

Answer:

hi the answer is nothig

Explanation:

bacause i guessed

True or False: Reader Accounts are able to extract data from shared data objects for use outside of Snowflake.

Answers

The statement that Reader Accounts are able to extract data from shared data objects for use outside of Snowflake is; A: True

Snowflake is all about cloud computing data warehousing. This platform offers cloud-based data storage and analytics service that enables corporate users to store and analyze data with the aid of their cloud based hardware and software.

Now, Reader Accounts are Snowflake accounts that are created and managed by data providers on behalf of their consumers. These reader accounts make it a lot more easy for organizations to easily share data with anyone and as such they can also extract data from shared objects for use outside of snowflake.

Read more about snowflake at; https://brainly.com/question/9124395

There are two kinds of emotions: positive and negative. True False

Answers

Answer:

False

Explanation:

There are many emotions the human brain can experience

False is the answer to the question

8. Assuming str(rate) is "7.25," what output would be produced by the following snippet:
print("The hourly parking rate is $." + str(rate))


O "The hourly parking rate is $7.25"

O "The hourly parking rate is $ 7.25"

O "The hourly parking rate is $." "7.25"

O The print comfwand would fail because the rate is an integer, not a string,

Answers

The output would be "The hourly parking rate is $7.25"

The question is an example of concatenation.

Concatenation is an operation in computer programming in which a string is added to another string with the binary operation, '+' or '*'.

So, 'Frank' + 'Peter' concatenates as 'FrankPeter' and 'a' *3 concatenates as 'aaa'.

Since str(rate) is "7.25," which is a string, and the snippet is print("The hourly parking rate is $." + str(rate)), str(rate) will concatenate and be added to the expression "The hourly parking rate is $."

So, the output would be "The hourly parking rate is $7.25"

Note that since there is no space at the end of the first string, the second string is added to the first string directly without any spacing between the '$' sign and the '7'.

So, the output would be "The hourly parking rate is $7.25"

Learn more about concatenation here:

https://brainly.com/question/17031234

Computer viruses and coding books

Answers

Is there a picture to go along with this? I don’t see one and an willing to help!

PLEASE HELP I NEED TO CHECK MY ANSWER ASAPPP

8. Based on the following syntax, what is a likely output for this code snippet if "number" was 35.555

return count(amount_owed. 2)

O 35.555
O 35.55
O 36
O 40

Answers

Functions are code segments that are executed when called or invoked

The function definition is not given; so, the output of the program cannot be outrightly determined.

However, the following are the possible scenarios.

The program would return 35.55 if the 2 represents the digits after decimal.The program would return 36 if the 2 represents the significant digits.

It is unlikely for the program to return (a) 35.555 and (d) 40

Read more about functions at:

https://brainly.com/question/14284563

One of the main operations associated with the dictionary ADT is:
(a) given a key and value, remove the entry with given key and value from the dictionary
(b) given a value, remove the entry that contains the value
(c) remove the last item in the dictionary
(d) given a key, return the value of the dictionary entry with the given key

Answers

ITS B my friends and teacher helped

What term describes the story of a game?
tale
fable
narrative
setting

Answers

I would say tale because a tales like more for stuff like games

Answer:

tale.

Explanation:

because the other answers make 0 sense.

The NYC_Bicycle_Counts_2016_Corrected.csv gives information on bike traffic across a number of bridges in New York City. In this path, the analysis questions we would like you to answer are as follows: 1. You want to install sensors on the bridges to estimate overall traffic across all the bridges. But you only have enough budget to install sensors on three of the four bridges. Which bridges should you install the sensors on to get the best prediction of overall traffic

Answers

The ideal would be to install sensors on bridges at the main points of the city, to get a general idea about the traffic in the city.

We can arrive at this answer because:

The bridges that lead to the main points of the city tend to have more movement of people and vehicles.In this case, we can say that these bridges have more intense and constant traffic, which can promote a generalized view of traffic on other bridges.Therefore, by installing sensors to analyze traffic on these bridges, it would be possible to project the data collected from the sensors on less busy bridges, according to the context in which they apply.

In this case, the bridges that lead to commercial centers, highways, tourist places, and other important points of the city, must receive the censors.

You can find more information about traffic at this link:

https://brainly.com/question/10961490

10011÷11 binary division​

Answers

Answer:

110.01001

Explanation:

it's a repeating decimal

what identifies a cell or a range of cells on a worksheet, and tells excel where to look for values or data you to use in a formula

Answers

I believe it is a cell Reference

How often do domain controllers download Group Policy settings?

Answers

Answer:

Domain controllers download Group Policy settings -every five minutes-

Explanation:

hope I helped

a computer memory that acts as the main storage available to user for programs and data

Answers

Answer:

Primary storage. Primary storage (also known as main memory, internal memory, or prime memory), often referred to simply as memory, is the only one directly accessible to the CPU.

"Automated Deployment" is one of the prerequisite for DevOps implementation.
A) True
B) False

Answers

Answer:

"Automated Deployment" is one of the prerequisite for DevOps implementation.

Answer: True

True. "Automated Deployment" is one of the prerequisite for DevOps implementation.

What is Automated Deployment

Automated Deployment is indeed considered one of the prerequisites for implementing DevOps practices effectively. DevOps is a set of principles and practices aimed at improving collaboration between software development (Dev) and IT operations (Ops) teams.

The goal of DevOps is to streamline and automate the software delivery process to achieve faster and more reliable releases while maintaining quality and stability.

Automated Deployment refers to the process of automatically deploying and configuring software applications across various environments, such as development, testing, staging, and production. This automation eliminates the need for manual intervention and reduces the chances of human error during the deployment process.

Learn more about DevOps implementation

https://brainly.com/question/28135867

#SPJ2

what are the parts system unit​

Answers

Explanation:

there are 6 main system unit components:

motherboard

processor

RAM

hard drive

video card

power supply.

Shifting various computer activities from your
own computer to servers on the internet is referred
to as:

Answers

Answer:

Data transfer???I don't remember one of the easiest questions of my life

In PowerPoint, a picture might be a photograph, a shape you draw, a piece of clip art, or an illustration created using a graphics app
O True
O False​

Answers

Answer:

True

Explanation:

In PowerPoint, you can insert pictures/images that include photographs, shapes, and illustrations.

Answer:

True

Explanation:

software that converts program written in other language into machine language​

Answers

Software Development Tools

Compiler which is a part of software development tools,converts High level programming language into binary code.(machine language)

Other Questions
Identify the factor that will most likely influence your ability to work out at your fitness center frequently. A. Fitness center recommended by friends and family B. Friendly staff C. Full range of equipment D. Location within 15 minutes of home or work Please select the best answer from the choices provided. A B C D. Help me with this plzzzzzzzzz a boulder sitting on a 45 m tall cliff has a potential energy of 7,100 J. the acceleration due to gravity is 9.8 m/s^2. what is the mass of the boulder Why did Winston Churchill callthe Seven Years War the"First World War"?A. It was the first war ever fought.B. It was the war to end all wars.C. It was the first global conflict.D. It did not include many countries. Which of the following is the graph of y = |x - 3| Match each energy source with the correct disadvantage.1. carbon dioxide emissions cause global warmingcoal2. drilling destroys habitats and ecosystemshydroelectric power3. dams prevent salmon from swimming upstreamnuclear power4. radioactive waste is dangerous to all living organismsoilI WILL MARK YOU BRAINLYSSSSS What is the theme of Journey by Edna St. Vincent Millay? Which of the following equations contains the point (8, 5) and is perpendicular to the line y = 2x 3? -2 - 1 + 4 I need the help please hagan esto por favor escriban las palabras en un papel y abajo pongan lo que dice ahi son 25 puntos Helppppppppppppppppppppppp 3. This Georgian surgeon is believed to be the first person to use ether as anesthetic (but did not get credit for it).was named for him, a statute placed in the state capitol, and a commemorative stamp was made in his honor as Georgians recognizehis contribution to medicine.lames Oglethorpeb. John Forsyth c. Crawford Long d. James Pickenstartod around 400 B.C. the maximum displacement of a particle by a wave is called if valley middle school has 206 girls and the school has 450 what is the percent of how much girls are there? What is Ecological Sustainability? What happens if we use all of our planet's resources without replacing them? Translate the sentence into an inequality.Six times the sum of a number and 20 is greater than 16.Use the variable c for the unknown number. Read the following sentences and tell their kind. There is no shortcut to success.A. Exclamatory B. Declarative C. Imperative D. Interrogative If y varies inversely with x and y = 5 when x = 4, which equation that relates x and y?Select one: (x - y + z) : (y - z + 2w) : (2x + z - 10) = 2:3:5 Then ( 3x + 3z - 2w) : w = ?pgvzcmckyc? Write a sentence with each word of the vocabulary