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

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:

explain the different types of programming languages​

Answers

Answer:

Language types. Machine and assembly languages. Algorithmic languages. FORTRAN. ALGOL. C. Business-oriented languages. COBOL. SQL. Education-oriented languages. BASIC. Pascal. Logo. Hypertalk. Object-oriented languages. C++ C# Ada. Java. Visual Basic. Python. ...

Elements of programming. Control structures. Data structures.

Explanation:

Pls Mark Brainliest

Game have been a part of human life only recently in human history—about 1100 AD.
True
False

Answers

Answer:

The answer is false it has not

Answer:

B: False

Explanation:

it's just false

what are the parts system unit​

Answers

Explanation:

there are 6 main system unit components:

motherboard

processor

RAM

hard drive

video card

power supply.

Is majority intent determined by how many times the same type of result is shown on the search engine result page?

Answers

According to the search engine algorithm, it is True that the majority intent is determined by how many times the same result is shown on the search engine result page.

What is Search Intent?

Search Intent is a term used to describe a user's reason when typing a question or words into a search engine.

Generally, if a user found that no search results match his wants, he would likely not click on any link before performing a similar query search. This would make search engines return with more links that have higher clicks.

Different types of Search IntentInformationalCommercialNavigationTransactional

Hence, in this case, it is concluded that the correct answer is True.

Learn more about Search Engine here: https://brainly.com/question/13709771

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

Get the user to enter some text and print it out in reverse order.

Answers

Answer:

strrev in c/c++

Explanation:

Explain the 3 types of control transfer structures in programming using flowchart symbols

Answers

Answer:

Process Flowchart.

Data Flowchart.

Business Process Modeling Diagram.

What is a disadvantage of communicating on social media?

Collaborating with others
Speed
Lack of privacy
Maintaining relationships

Answers

Answer:

Lack of privacy

Explanation:

Tumblr, Jaiku is an example of _____________ website.
a) Microblogging
b) Blogging
c) Social Networking
d) None of the Above​

Answers

Answer:

Microblogging

One of the best-known channels in the microblogging world. Twitter is a quick and convenient way to share short posts, GIFs, article links, videos and more. Pinterest: Companies on Pinterest link to products, articles and other useful information for audiences .

Explanation:

Hope this helps you !!

Why must the image be reduced when the field of view is widened to take in more of the scene?

Answers

The lighting in the shot
As the size of the hole is increased, a larger cluster of light rays gets through to the film or sensor and makes a wider, even blurrier circle. These circles overlap, so the wider each circle becomes, the less clear the picture will be.

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

Which HTML tags describe the meaning of the content?
describe the meaning of the content.

Answers

Defines an HTML document
Contains metadata/information for the document
Defines a title for the document

Answer:

Semantic elements in Plato

Explanation:

10011÷11 binary division​

Answers

Answer:

110.01001

Explanation:

it's a repeating decimal

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

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

a web server is a computer that manages files for multiple user on a net work. true or false​

Answers

True. I’m pretty sure

why is it important to o save a file when using a computer

Answers

Answer:

I think that it's important to save a file when using a computer so you won't lose it. Much like a document usually files are important and mark progress. Like if you're writing an essay and get tired simply save it to a file or document and continue it later. But if you weren't to do that you could lose all your saved work.

Explanation:

Hope that helps. there's not a lot of information to go off of

I think that it's important to save a file when using a computer so you won't lose it.

Sarah is a detall-oriented programmer. While testing her program, what other skill would she have to apply in order to detect all bugs?

Answers

The answer is Troubleshooting

Where did the first human cities show up?
South Africa
Mesopotamia
Peru
Denmark

Answers

The first human cities in the history of the world showed up at; B: Mesopotamia

Throughout the history of the world, cities have always been attractive to more and more people because they useful as centers of learning including culture, and great economic opportunities.

However, this explosion of migration to the cities has lead to some very large cities that are home to as much as 15 million or more which could lead to overpopulation and potentially health hazards.

Now, the first cities in the world from history are said to have appeared thousands of years around 7500 BC ago in Mesopotamia which had very fertile lands. The cities formed here include those in euphrates and even along the Nile River in Egypt.

Read more about Mesopotamia at; https://brainly.com/question/22701821

Write a program that lets the user enter four quarterly sales figures for six divisions of a company. The figures should be stored in a two-dimensional array. Once the figures are entered, the program should display the following data for each quarter: - A list of the sales figures by division - Each division's increase or decrease from the previous quarter (this will not be dis- played for the first quarter) - The total sales for the quarter - The company's increase or decrease from the previous quarter (this will not be dis- played for the first quarter) - The average sales for all divisions that quarter - The division with the highest sales for that quarter Input Validation: Do not accept negative numbers for sales figures.

Answers

Answer: Buisness calendars

Explanation:

How can I have a private conversation with no one knowing on my iPhone

Answers

Answer:

Just share a note by making one.

Explanation:

Thank you

Question 2
What is the output of the following python code:
y = 130
x = 30.15
print (y, x)

Answers

Answer:

>>> 130 30.15

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

how is integrating approach in done in teaching

Answers

Answer: Integrative learning is an approach where the learner brings together prior knowledge and experiences to support new knowledge and experiences.

Explanation:

Research.

Q) Look at the code and determine the output

y=-10
while(y<10):
print('$', end="") y += 5

(a) $$$$$$$$$$
(b) $$$$
(c) $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
(d) Nothing will be printed

Answers

Answer:

B.

Explanation:

35. Which of these devices can be accessed remotely across the internet? 1 O Solid State Drive O USB Memory Stick Cloud Storage Optical Media This is a required question​

Answers

Answer: I believe it's cloud storage.

Explanation:

The cloud is basically an area of all the data you've acquired. And you can only access it on the internet. It's not a physical object. So The Cloud is your answer! :>

(Please mark this as brainliest)

I ate five M&Ms: red, green, green, red and yellow. Only these three colors are possible. I assume that p(yellow)=3p(green)
What is the estimated probability of green color?

Answers

Answer:

Below is code written in a free CAS (WxMaxima):

The above code creates the probability of 19 or more brown in the sample of 48 for population sizes from 5*19 to 10000 in steps of 5.

Here’s a plot of that data:

The horizontal blue line is the probability for an infinite population size (or, choosing each of the 48 M&Ms with replacement, which I infer is not what you meant). It is calculated using the binomial cdf:

The red curve approaches the blue line asymptotically as the population gets larger.

At population 10000, the red curve is

.

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.

Role and responsibility of an IT professional

Answers

create the computer, network, and communication systems that an organization needs
Other Questions
Plant and Animal CellsWhich part of the cell is responsible for controlling the activities of the other parts of the cell?O NucleusO Cell MembraneO Vacuole I need a answer as soon as possible What is the role of religion, or faith for Aunt Queen? What does Aunt Queens physical condition indicate about her faith and resiliency? which holds the more capacity 0.75 litres or 350ml QUICK HELP PLEASE! Which letter identifies the location of the Aztec Empire? You mix 23.385 grams of sugar and 12.873 grams of baking soda in a glass container for an experiment. You place the container on a scale to find that the total mass is 104.2 grams. What is the mass of the container Draw two lines with a slope of 1 / 2. What do you notice about the lines? which best explains the impact of european colonization on the inca and aztec civilizations? The length of a rectangular garden is 3 feet more than 2 times the width. The perimeter of the garden is 48 feet. Find the length and width of the garden . the area of the floor in georges square bedroom is 25ft2 what is the lenght of the bedroom adjusting our behavior or thinking toward a group standard is called PLEASE HELP ILL GIVE BRAINLIESTTTT How can the effects of establishing a pesticide production plant be minimized ? how to simplify -5 1/4 - (-7 1/2 Geraldo and Raul are participating in a relay for charity. Geraldo rides his bike 12 miles per hour. Raul rides his bike 10 miles per hour. Together, they travel a total distance of 34 miles. Which of the following show similarities between organelles and organs of the body? Which correlation coefficient best matches the graph? Explain one way in which barbots background might have influenced his comments about the dutch and the portuguese in the second paragraph. Mike (ser) in chico norteamericano He throws garbage, grabs wallets, and runs away. Question options:yes, has parallel structureno, does not have parallel structure