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

what changes might you make to a circuit in order to slow the flow of electrical energy?

Answers

it’s gravity that’s what my teacher said

Answer: The resistor uses the energy of the electrons around the wire and slows down the flow of electrons.

Explanation:

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

Does technology always follow the science,yes or no explain why to choice

Answers

Answer:

No

Explanation:

because Technology does not always follow science but it may actually lead science in some instances. An example is weather forecasting.Again Mark me brainliest plz i really need it

What is a disadvantage of communicating on social media?

Collaborating with others
Speed
Lack of privacy
Maintaining relationships

Answers

Answer:

Lack of privacy

Explanation:

What is accomplished by the following code snippet, assuming all variables had been
populated?
amount_owed += duration rate

O Amount owed is set to duration times rate.
O Amount owed adds duration times rate to it.
O Amount owed is displayed to a user as duration rate.
O This line would return a syntax error.

Answers

There are different kinds of computer programs. The option that is accomplished by the following code snippet is the Amount owed adds duration times rate to it.

Code Snippet is simply regarded as a term used to show a tiny portion of re-usable source code, machine code etc. It is know to help a programmer to avoid typing repetitive code when undergoing routine programming.

It is a common example in documentation. It depicts how to use some particular class or how to finish an assigned task. It can be in form of a short snippet that is based on a specific task or a longer one.

Learn more about Code Snippet from

https://brainly.com/question/24171161

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:

What should you look out for when choosing snacks that seem healthy? How can you make sure that the snacks you are choosing are actually healthy?

Answers

Answer:

You can make sure that the snack is healthy by looking at the ingreadents. A healthy snack should not have alot of persavatives and sugars. A good golden rule is if you can't pronaunce the word then its not good for you.

Explanation:

What is the difference between * and **operator? in python ​

Answers

Answer: "**" is used for power off while "*" is used for multiplication

Explanation: you just have to memorize it

In python language the "**" operator is used for 'power of" and "*" is used for multiplication.

To alter the value of operands in Python, utilise the operators constructs. These are the figurative representations of logical, mathematical, and other operations.

Consider the equation 4 + 5 = 9. The operator in this instance is +, and the operands are 4 and 5. We'll examine numerous Python operators in this session.

The following operator categories are supported by the Python language.

Comparison (Relational) Operators for ArithmeticOperators of assignmentsIntelligent OperatorsOperators in bitsOwners of membershipsIndividual OperatorsLet's quickly review each of these operators in turn.

In python language the "**" operator is used for 'power of" and "*" is used for multiplication.

Therefore, in python language the "**" operator is used for 'power of" and "*" is used for multiplication.

Learn more about the python language here:

https://brainly.com/question/11288191.

#SPJ3

All Office programs have similar commands on the tab for changing the document view a. File b. View c. Locate d. display ​

Answers

Answer:

B. View

Explanation:

So you can eliminate "Locate" and "Display", since those do not exist on the Microsoft Word task bar.

Now you're left with File and View. File has everything to do with sharing and exporting your file, such as printing or saving it to your computer as a specific file.

With that being said, we're left with "B. View", which as you can see when you click it, presents many us with ways to view our document.

Good luck on your Microsoft Office/Word Certification!

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

Answers

Answer:

Process Flowchart.

Data Flowchart.

Business Process Modeling Diagram.

Why is information so important in our lives

Answers

Information is very important because it helps us as a society make decisions. Decisions are impossible without information, and we are constantly seeking information in everything we do. Information is important in decreasing our sense of doubt and uncertainty as well.
Information is important in everyone's lives because without information, we would not be able to develop our knowledge on the world. Retaining information starts when you're a baby up until you die and this is through sensory - being able to touch, hear, see and taste.

Additionally, what's the importance of technology in our life? Technology can make any family or business feel safer. There are many security devices and software available to secure your financial data, protect your home when you are away and much more. Technology is important because it makes you feel more secure with every area in life for both personal and business reasons.

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.

1. Go to a popular online electronic commerce site like Amazon. Place several items in your shopping cart, and then go to check out. When you reach the screen that asks for your credit card number, right-click on the Web browser and select Properties. You may need to use the help feature of your browser to find the security protocols in use and the certificates used to secure your transactions. What did you find out about the cryptosystems and protocols in use to protect the transaction

Answers

On Amazon.com, I found that there are a few cryptosystems and protocols in place. The most interesting thing I found was that there were 12,292 blank lines of code before anything was actually written. Amazon ensures a secure transaction by encrypting the users information on the users end, and then decrypts their information on their end.

True or False. The 'C' programming language guarantees that R0 will always contain a zero value on the ATmega328P

Answers

Oh I had this question once and I think it was true!! Hope this helps! Merry Christmas!!

See if you can do better then I did

Answers

Answer:

no i can't do better ggs

Explanation:

im not smart (also I did answer the question ;) )

What did World Com do to try to keep its stock price from falling?

Answers

The company had good enough internal controls to prevent Scott D.

Here’s my last question

Answers

Answer:

Can't find it lolol

Explanation:

Where?

I’m bored too … hey

g Tonya recognizes that one example of the impact of censorship on Internet service providers (ISPs) is that

Answers

law-enforcement agencies can force ISPs to identify customers who send emails using anonymous remaliers

Write a program that:
a) Inputs TWO numbers and finds the average of both numbers, only if BOTH numbers are less than 100

Answers

Answer:

num1 = int(input("Enter number 1: "))

num2 = int(input("Enter number 2: "))

if num1 < 100 and num2 < 100:

   newnum = num1 + num2

   finalnum = newnum // 2

elif num1 >= 100 or num2 >= 100:

   print("Invalid input.")

else:

   pass

Explanation:

Gg ez.

(I assumed the language was python. Next time, put what programming language you want it to be in.)

Implement a function mystery( ) that takes as input a positive integer n and answers this
question. How many times can n be halved (using integer division) before reaching 1?

Answers

Count= 0
While n > 1
n = n
Count += 1
Return count

The function mystery that takes as input a positive integer n is given below. The number of times that can n be halved (using integer division) before reaching 1 is infinite.

What are function mysteries?

The non-negative integers are used to define the mystery function. The more common name of this method is hidden to avoid tempting you to explore the Web for assistance in completing this task, which would be a very dishonorable thing to do. Assume n has m bits.

Count= 0

While n > 1

n = n

Count += 1

Return count

Once. You now have 1/2. You can split 1/2 in half to make quarters, but that is not dividing one, it is dividing one half. If you mean how long the series of subsequent subdivisions you can make can be, the answer is infinite.

Therefore, the number of times that can n be halved (using integer division) before reaching 1 is infinite.

To learn more about function mysteries, refer to the below link:

https://brainly.com/question/14201335

#SPJ2

The problem below uses the function get_numbers() to read a number of integers from the user. Three unfinished functions are defined, which should print only certain types of numbers that the user entered. Complete the unfinished functions, adding loops and branches where necessary. Match the output with the below sample:


Enter 5 integers:

0 5

1 99

2 -44

3 0

4 12

Numbers: 5 99 -44 0 12

Odd numbers: 5 99

Negative numbers: -44

Answers

size=6

def get_numbers(num):
numbers = []
print('Enter %s integers:' % num)

for i in range(0,num):
print(i,end=' ')
user_input = int(input())
numbers.append(user_input) # Add to numbers list
return numbers

def print_all_numbers(numbers):
# Print numbers
print('\nNumbers:',end=' ')
for i in range(0,len(numbers)):
print(numbers[i],end=' ')

def print_odd_numbers(numbers):
# Print all odd numbers
print('\nOdd numbers:',end=' ')
for i in range(0, len(numbers)):
if numbers[i]%2!=0:
print(numbers[i], end=' ')


def print_negative_numbers(numbers):
# Print all negative numbers
print('\nNegative numbers:',end=' ')
for i in range(0, len(numbers)):
if numbers[i] <0:
print(numbers[i], end=' ')

nums = get_numbers(size)
print_all_numbers(nums)
print_odd_numbers(nums)
print_negative_numbers(nums)

Victor and Ellen are software engineers working on a popular mobile app. Victor has been in his position for 10 years longer than Ellen, who is a recent graduate. During the development of a new feature, Ellen expressed her concern that VIctor's proposed code would create instability in the app. Victor told Ellen he would address her concern with their supervisor. When Victor met privately with his supervisor, he claimed that he had discovered the problem, and that Ellen had dismissed it. Which principle of the Software Engineering Code of Ethics has Victor violated

Answers

Victor violated principle 7: Colleagues of the Software Engineering Code of Ethics

A code of ethics reaffirms an organization's ethical conducts and morals so that workers, as well as, third parties are aware of the expectations they must meet.

A code of ethics' objective is to instruct persons functioning on behalf of an organization on how they should act.

The attitude of Victor towards her junior colleague (Ellen) is unjust and dishonest since Victor has claimed the credit meant to be for Ellen.

Therefore, we can conclude that Victor has violated principle 7: Colleagues of the Software Engineering Code of Ethics.

Learn more about the code of ethics here:

https://brainly.com/question/18401975

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

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:

10011÷11 binary division​

Answers

Answer:

110.01001

Explanation:

it's a repeating decimal

A user calls the help desk to report that a mobile device exhibits very slow performance. What could cause this problem

Answers

The performance of a mobile device is relative rather than absolute, since it depends on the utility the user requires of it.

It could be that the space remaining on the storage is low or the ram is too small.

Often times, users tend to load their devices with tonnes of applications not considering the RAM size, available memory of the device, these applications may be space demanding and expensive, and in the long run lead to the low performance of the device.

Learn more about Mobile device specification here:

https://brainly.com/question/25363479

Write a program to test if an integer input from the keyboard is odd or even. Sample Run 1: Enter a Number: 78 Even Sample Run 2: Enter a Number: 17 Odd

Answers

Answer:

number = int(input("Enter a number: "))

if number % 2 == 0:

   print("Even")

else:

   print("Odd")

Explanation:

Currently taking python at school. On the last few lessons.

Please answer the questions.

Answers

Answer:

10 days

Explanation:

because they have to go through all your history to see if any of that could of caused it

Answer to questions 1 is option D, answer to question 2 is option B, answer to question 3 is option D

Type the correct answer in each box. Spell all words correctly, and use numerals instead of words for numbers. If necessary, use / for the fraction bar(s). What is the hexadecimal equivalent of the decimal number 125.28? The hexadecimal equivalent of the decimal number 125.28 is

Answers

Answer:

125.28₁₀ in hexadecimal = 7D.47AE147AE1₁₆

Step-by-Step Explanation:

To convert decimal number 125.28, we convert its integer and fraction part individually and then add them to get the equivalent hexadecimal number, as below:

To convert integer 125 to hexadecimal, follow these steps:

Divide 125 by 16 keeping notice of the quotient and the remainder. Continue dividing the quotient by 2 until you get a quotient of zero.

Then just write out the remainders in the reverse order to get the equivalent hexadecimal number.

125 / 16 = 7 with remainder 13 (D)

7 / 16 = 0 with remainder 7

Here is the answer to 125 decimal to hexadecimal number:

7D

For converting decimal fraction 0.28 to hexadecimal number, follow these steps:

Multiply 0.28 by 16 keeping notice of the resulting integer and fractional part. Continue multiplying by 16 until you get a resulting fractional part equal to zero (we calcuclate upto ten digits).

Then just write out the integer parts from the results of each multiplication to get equivalent hexadecimal number.

0.28 × 16 = 4 + 0.48

0.48 × 16 = 7 + 0.68000000000001

0.68000000000001 × 16 = 10 (A) + 0.88000000000011

0.88000000000011 × 16 = 14 (E) + 0.080000000001746

0.080000000001746 × 16 = 1 + 0.28000000002794

0.28000000002794 × 16 = 4 + 0.48000000044703

0.48000000044703 × 16 = 7 + 0.68000000715256

0.68000000715256 × 16 = 10 (A) + 0.88000011444092

0.88000011444092 × 16 = 14 (E) + 0.080001831054688

0.080001831054688 × 16 = 1 + 0.280029296875

Here is the answer to 0.28 decimal to hexadecimal number:

0.47AE147AE1

Therefore, decimal number 125.28 converted to hexadecimal is equal:

7D.47AE147AE1

When running the following code:
true = 5
false = 6
print (true + false)
-
The interpreter will:

Answers

Answer:

print(11)

Explanation:

true + false = print statement

5 + 6 = 11

To permit communication between two people who do not speak the same language, interpreters accurately and objectively translate spoken or sign languages into other languages.

What is role of print statements in interpreter?

It is the interpreter's responsibility to use these code objects and carry out the directives. You might be astonished to learn that compilation even occurs during the execution of Python code.

As contrast to “compiled” languages like C or Rust, Python is frequently referred to as a “interpreted” language like Ruby or Perl.

A trained expert who facilitates communication between those who speak or sign in various languages is known as an interpretation.

The print() function outputs the message to the normal output device, such as the screen. The message can be a string or any other object, and before it is displayed on the screen, the object will be changed into a string.

Therefore, true + false = print statement 5 + 6 = 11

Learn more about print statements here:

https://brainly.com/question/24200615

#SPJ2

Other Questions
Solve for x.-8 =X/4 (1). What is the Capital of El Salvador?.(2). Where is located El Salvador?(3). Approximately, how many rivers does El Salvador have?(4). How many volcanoes does El Salvador have?(5). Who was the first inhabitants of El Salvado?(6). In what year did El Salvador become independent from Spain?(7). Que color is El Salvador Flag?(8). What is the main language ?(9). What is the national sport?(10). Tell me in one sentence your opinion about this cultures.? There are 4 juice cartons and 9 milk cartons in the school refrigerator. What is the ratio of juice cartons to total cartonsA. 4 to 9B. 4 to 13C. 5 to 9D. 9 to 13 What message does this 1969poster from the EnvironmentalProtection Agency give about thegovernment's role in pollution? Pick more than one if needed plzQuestion 3 (2 points) Saved According to the information in Lesson 6.01 Bram Stoker, how was the novel Dracula first received by Victorian readers?A.Some Victorian readers found the Dracula novel to be disturbing with contrived events that were too horrific. B.Some Victorian readers found the Dracula novel to be an outstanding thriller. C.Victorian era society banned the novel Dracula after the first publication because it dealt with the supernatural.D.Dracula received mixed reviews by its Victorian readers. Solve for W if:4w^2+9w=-2 Your brain is the control center of your entire body. Write an informative essay explaining how people can keep their brains healthy and safe. Use information from the passages in your essay.What are the DO words?brains, body, control centerhealthy, safe, essayWrite, explain, use(This is probably obvious, I was just a bit confused on what it was asking HELP!!!!!!Find the length of segment SV. Banks that offer low interest rates to people with good credit brainly. Elizabeth bought lemons (l) and apples (a). Each apple costs 35 and each lemon costs 15. All together, she bought 17 lemons and apples for $3.95. Which system can be used to determine how many of each she bought? How many solutions do 5-2x=2x-5 Round 0.1 to the nearest whole number. A textbook is sitting at rest on a desk. Compared to the magnitude of the force of the textbook on the desk, howwould you describe the magnitude of the force of the desk on the book?o lessO zeroO moreO equal Plz help with this question What are some benefits to using " Wood Framing?" pls pls pls pls help giving brainliest to the correct answer Please Help!!!!!! Tom says that he needs 6 rolls to obtain each possible outcome on a 6-sided die. On the fourth roll, he rolls his second "3. Tom says that the die is loaded and that each outcome is not equally likely. Is Tom correct here? If you think Tom is incorrect, how many rolls should Tom make until he sees each number occurring about 1/6 of the time? What is ashamvav not allowed to do Image attached giving 25 points please help