Design a program named GradeDistribution.java that reads in 10 grades from the keyboard, then counts and displays grade distribution as follows:

Grade Range No.
[90 - 100] 2
[80 - 89] 5
[70 - 79] 1
[0 - 69] 1
Others 1

Answers

Answer 1

Answer:

[70 — 79]

Explanation:


Related Questions

design an algorithm to generate the first n terms of sequence 2,6,10,14​

Answers

Answer:

#Begin

a=2

k=0

temp=0

#Input

k=input()

temp=k

k=0

#Processing

while int(k)<int(temp):

print(a)

a=a+4

k=k+1

In this exercise, using the knowledge of computational language in python, we have that this code will be written as:

The code is in the attached image.

What is range?

The Python range function is a function native to the Python language that is used to generate a numerical sequence within a given range. It is normally used as an auxiliary to the for function. In Python, we can repeat an action a specified number of times using a for loop with the range function.

We can write the python  as:

a=2

k=0

temp=0

k=input()

temp=k

k=0

while int(k)<int(temp):

print(a)

a=a+4

k=k+1

See more about python at brainly.com/question/13437928

Cloud computing security risks

Answers

Answer:

Risks:

Network issues or outages caused by attackers can limit or completely deny access to data stored in the cloud

Attackers could find an exploit and steal company data without ever physically touching the company's computer.

That's what I can think of.

Explanation:

Please read this lab exercise thoroughly, before attempting to write the program.

Write a program that reads the pairs of group number and student count from the text file (user must enter name of file) and:

Displays the number of groups in the file (5 %)
Displays the number of even and odd student count (5%)
Displays the sum of the even student count and the sum of the odd student count as well as the sum of all the student count (5%)
Displays the group numbers of the largest student count and the smallest student count (5 %)
Computes the average of the largest and smallest student count (10 %)
Compute the sum of ALL the digits in the largest student count (i.e. 952 – Sum is 9+5+2 = 16) (15 %)
Assume the contents of the file are as follows but that the pairs of data can change later:

1 25

2 123

3 475

4 61

5 77

6 910

7 234

8 138

9 134

10 95

11 674

12 345

13 31

14 211

15 952

16 873

17 22

18 7

19 876

20 347

21 450

The following is a sample output: User input in red

What is name of the input file? integers.dat

The number of groups in the file is 21

There are 12 odd student count and 9 even student count

The sum of the odd student count is 2645

The sum of the even student count is 4390

The sum of all the student count is 7035

The group number of the largest student count is 15

The group number of the smallest student count is 18

The average of 952 and 7 is 479.5

The sum of all the digits in the largest student count is 16

NOTE:

Use two decimal point precision for the average
To check your code, adjust one of the student count in the file, recompile your code and run again (suggest changing the largest or smallest student count )
Even though there are 21 pairs of numbers in the file, the program should NOT presume there will always be 21 pairs of numbers. In other words, you should not solve this problem by declaring 21 pairs of values. If I choose to use another integers.dat file other than the one provided with the assignment, your program should still work correctly with that file as well. All you can assume is that a series of integers will be read in from the file. Therefore, you need to implement a solution that uses the repetition control structures (for, while, do…while) in the reading and processing of these values to produce your output.

Answers

Answer:

filename = input("Enter input file? ")

with open(filename, 'r') as data:

num_groups = []

num_counts = []

for line in data:

 cols = line.split()

 num_groups.append(int(cols[0]))

 num_counts.append(int(cols[1]))

print("The number of num_groups in the file is "+str(len(num_groups)))

c_even = 0; c_odd = 0; s_odd = 0; s_even = 0

for i in num_counts:

if i%2 == 0:

 c_even=c_even+1

 s_even = s_even + i

else:

 c_odd=c_odd+1

 s_odd = s_odd + i

print("There are "+str(c_odd)+" odd student and "+str(c_even)+" even student")

print("The sum of odd student is "+str(s_odd))

print("The sum of even student is "+str(s_even))

print("The sum of all student is "+str(s_even+s_odd))

max_count = num_groups[num_counts.index(max(num_counts))]

print("The group number of the largest student is "+str(max_count))

min_count = num_groups[num_counts.index(min(num_counts))]

print("The group number of the smallest student is "+str(min_count))

print("The average of "+str(max(num_counts))+" and "+str(min(num_counts))+" is:",end=" ")

print("%.2f" % ((max(num_counts)+min(num_counts))*0.5))  

bigkount = str(max(num_counts))

bigsum = 0

for i in range(len(bigkount)):

bigsum += int(bigkount[i])

 

print("The sum of all the digits in the largest student is: "+str(bigsum))

Explanation:

The program was written in Python.

Because of the length, I added an attachment where I used comments to explain the lines of the code

Other Questions
What is 600 minus 258? e669yrx4pk answer this question so i give you brain thingy Whats the answer to this questions (Externalities) Complete each of the following sentences: a. Resources for which periodic use can be continued indefinitely are known as ____________ resources. b. Resources that are available only in a fixed amount are ____________ resources. c. The possibility that an open-access resource is used until the net marginal value of additional use equals zero is known as the ____________. 15. Considera um losango em que uma diagonal tem 8cm e cuja rea 12cm^2. Qual o comprimento do lado do losango, arredondado s dcimas? Nota: Indica apenas o valor numrico usando algarismos. (No escrevas unidades de medida na resposta.) Writing practiceInformal letterSituation : Your friend Alex suffers from Asthma , and he is following a strict recovery medical plan , but sometimes he gets bored .Question : Write a letter of help to your friend in which you encourage him .Write at least 100 words Please can some one help me with this I already have to study well because tomorrow Iam having 3 exams and our mr gave us this homework and iam so confused please I need help name the four major groups in the plant kingdom and discuss the major evolutionary trends across the groups True or False Under the threat of torture, Galileo knelt before the Protestant pope and read aloud a signed confession. In it, he agreed that the ideas of Copernicus were false. You might think that after 200 years, the scientists who find, name, and describeEarth's species would be close to finished. But taxonomists, as organized as they maybe, have no idea how many species Earth has. Nor can they even provide aneducated guess. Although reporting over 16,000 new species every year,taxonomists still cannot predict how many more are undiscovered.In total, taxonomists have categorized and listed 1.2 million species on Earth. At thispoint, you would think scientists should be able to use the information they havegathered to make good predictions about how many species an ecosystem cansupport. This would help them make better predictions about how many species areleft to identify. So far, however, the guesses seem to vary so greatly that it seemsthere is no good theory for making a prediction.One of the main problems is that most of the places that seem to have a lot ofdiverse species are in places that are hard to get to. One such place is the ocean,where scientists believe some 80 percent of Earth's creatures are hiding at depthstoo deep for us to study. In addition, many of the planet's most diverse areas are inremote places with few taxonomists.Despite all the unknowns, scientists have agreed that there are between five and 15million species left to discover on Earth. This is a huge range, but whether it's five or15, taxonomists clearly still have a lot of work to do. And who knows, there may yetbe a dragon or a Loch Ness monster left to discover.Which word from the second paragraph explains what taxonomists do? (1 point)1) Categorized2) Ecosystem3) Support4) Prediction 9. For an amendment to be ratified, it must be approved by what fraction of the states? C. three-fourths A. one-half B. one-third D. nine-tenths A) Use the information provided to write complete sentences with the right form of the verbs "ser" or "tener" and the appropriate adjective(singular/plural/ masculine or femenine). 1. mis / hermanos / ser / simpatico 2. mi/ padre / ser / trabajadora 3. yo / tener/ una / mascota / en casa/ 4. Ramon / tener / un gato como mascota. 5. Qu mascota(s)/ tener en casa? tontion to their names and State the solutions for the quadratic equation graphed below. (6x-3)(4x-1) standard form Please help!!!!!!! PlEaSe I will mark BrAiNlLeISt(the topic is about environmental issues) what do you think should happen to gabrial in the giver?? 0.3 x 1030 3 x 1025Write the following as an ordinary number. [(1 Point3x10 PLEASE HELPPP!!!!!!!! plzzz help The world's largest known source of ______________ can be found in this region under the Persian Gulcoalgoldsilverpetroleum Henry has 96 marbles. he is packing containers with 8 marbles in each container. how many containers, c, does Henry need to pack all the marbles? Daniel Webster was a lawyer and a senator, famous for his adept oratory skills. However, he spoke most passionately about _____________.A) keeping the Union togetherB) the Compromise of 1850.C) the evils of slavery.D) ensuring popular sovereignty.