Write a program that prompts the user to enter the number of students and each student's name and score, and finally displays the student with the highest score (display the student's name and score). Also calculate the average score and indicate by how much the highest score differs from the average. Use a while loop.

Answers

Answer 1

Answer:

Follows are the code to this question:

#include <iostream>//defining header file

using namespace std;

int main()//defining main method

{

int n,s=0,j,number,h=-1;//defining integer variables

string name, nh;//defining string variable

float avg;//defining float variable

cout<<"Enter the number of students: ";//print message

cin>>n;//input value in n

while (j< n) //defining loop for input value

{

getline(cin, name);//use getline method to input value

cout<<"Enter the student name: ";//print message

getline(cin, name);//use getline method to input value

cout<<"Enter the score: ";//print message

cin>>number;//input number value

s+= number;//add numbers into s variable

if(h<number)//defining if block that checks h is greater then number

{

nh= name;//use string variable nh to store name value

h= number;//use integer variable h to store name value

}

j++;//increment j value by 1

}

cout<<name<<endl;//print highest name value

cout<<"score: "<<h<<endl;//print highest score value

avg = (float)s/(float)n;//calculate the average value

cout<<"Average is: "<<avg<<endl;//print average value

cout<<"Difference: "<<(h-avg)<<endl;//print average difference

return 0;

}

Output:

please find attached file.

Explanation:

In the above code, inside the main method four integer variable "n,s,j, number, and h", two string variable "name and nh" and one float variable "avg" is defined.

In the next step, n is defined that is used for the input value. and Inside the main method, a while loop is defined, which uses the "getline" method to the input value, and use s variable to add all numbers.

In the next step, if a block is defined that checks "h" is greater than the number value if the condition is true, it will print the highest value of the input variable and its average difference.

Write A Program That Prompts The User To Enter The Number Of Students And Each Student's Name And Score,

Related Questions

Create a summary of no less than 125 words of a show that would NOT go over well with television producers because it is targeted to people in the least desirable groups. Include the title of the show, the main characters, and a description of the show's premise. Explain why this show would NOT go over well with television producers.

Answers

Answer:

Follows are the solution to this question:

Explanation:

Its Mid is also an American drama about a Kentucky-based middle-class family who've been struggling to live in an impoverished house, home and earn children on even a daily basis. Mike and Frankie, both live in Orson, Indiana, were mid-aging adults. Users got three kids named Axl, Sue, and Brick. Michael was its owner of a local quarry as well as Frankie, the seller of a motorcycle. It was great for Scriptwriters since it is related to America's many households, a middle and upper-class family. Despicable is an American dramedy about an impoverished and unstable Chicago family.

It among participants is Frank, Gallagher's dad, but Fiona, their household's oldest son, as she actual mom Monica goes up and down as she likes. The other five children of Gallagher are Lips, Yan, Debbie, Lori, and Liam.

Frank is an alcoholic, but Fiona works very hard and provides for her sisters and brothers. It is not used for scriptwriters, because it is related to the poor and victims of abuse of drugs, which aren't considered "wanted." Since that concerns an "unwanted" listeners, its show was indeed a success.

Would X-ray waves carry a lot of energy? And do they have a high frequency?

Answers

Answer:

X-rays are very high frequency waves, and carry a lot of energy. They will pass through most substances, and this makes them useful in medicine and industry to see inside things.

Select the correct answer.
Raveena wants to make changes to a message she posted on an online discussion group. What action must she take?
O A. Delete the original message and post a new one.
ОВ. Delete the first post in the thread and type a new message.
Click a button labeled Edit to edit the message.
OC.
OD.
Enter new text in a box at the bottom of the discussion page.

Answers

Answer:

Click a button labeled edit to edit the message

Explanation:

Name the different views in word​

Answers

Answer:

Print Layout, Full-Screen Reading, Web Layout, Outline, and Draft are 5 different views in Word.

Hope this helps!

Which should be addressed by stakeholders when reviewing the problem statement? Select all that apply.

All possible outcomes have been thoroughly researched and rejected.

The problem as they see it has been addressed.

The solution proposed will meet their needs.

The needs of their colleagues are being met.

All issues and constraints have been identified.

Answers

The statement that should be addressed by stakeholders when reviewing the problem statement are the problem as they see it has been addressed, the solution proposed will meet their needs and all issues and constraints have been identified.

What are the elements of an effective problem statement?

An effective problem statement includes the description of the problem and the method that will be used to solve the problem.

The problem as they see it has been addressed, the solution proposed will meet their needs and all issues and constraints have been identified are the statement that should be addressed by stakeholders when reviewing the problem statement.

Therefore, B, C and E are the correct options.

Learn more about problem statement here:

https://brainly.com/question/11657822

#SPJ1

In double-entry accounting, where should you record money that is leaving your company to pay bills?
A. In the debits column
B. In the credits column
C. In the asset column
D In the cash flow column
Please select the best answer from the choices provided
A
B
С
D

Answers

Answer

I think the answer is cash flow

Explanation

Okay, so cash flow if my memory serves correctly, cash flow is the money that is coming in or when you go to pay something, cash asset is money that is in your wallet or in your bank account, cash credit is a temporary loan and I dont really kniw what a debita column is.

Answer:

Its actually

In the credits column

-

Or (B) On edg. E2021

Explanation:

<3

Write a program to find the total ASCII value of vowels in a given string (one word / a phrase / a sentence). The ASCII value of vowels in the given string is calculated by adding the ASCII value of all the vowels in the string. Also, display the individual count of each vowel( number of times each and every vowel appears in the string.

Answers

In python 3:

def vowelAscii(txt):

   vowels = "aeiouAEIOU"

   total = 0

   lst = ([])

   for i in txt:

       if i in vowels:

           total += ord(i)

           if i not in lst:

               lst.append(i)

               print(f"{i} appears {txt.count(i)} time(s) in the string with an individual ASCII value of {ord(i)}")

   return f"The total ASCII value of the vowels in {txt} is {total}."

print(vowelAscii("hello, I'm learning python"))

This is what I managed to come up with. The last line is testing the function. If you need anymore help, just ask. Best of luck.

Zachary is writing an article that will be included in a Who is most likely Zachary's audience? pamphlet his school is putting together titled "Guide to Your School Library." Zachary's article will explain how to O students about to graduate from the school find information for a science project. O science teachers O parents visiting the school O students who are new to the school​

Answers

Answer:

Students who are new to the school.

Explanation:

right on edg2020

Passage:

Zachary is writing an article that will be included in a pamphlet his school is putting together titled "Guide to Your School Library.” Zachary’s article will explain how to find information for a science project.

Question:

Who is most likely Zachary’s audience?

Options:

students about to graduate from the school science teachers parents visiting the school students who are new to the school

Answer:

D.) students who are new to the school

Explanation:

This option is correct because when I did the assignment on Edge, I got it right!

In Word, tables can be styled much like text can.
True
False

Answers

Answer:

True

Explanation:

There are many formatting options from color, size, and many more.

Hope this helps!

Hello, need help with coding, I'll give brainliest if you can get this right, thank you!
What will be the output of the following program? Assume the user responds with a 5.

answer = input ("How many hamburgers would you like? ")
priceBurger = 3.00
intNumberBurgers = float(answer)
moneyDue = intNumberBurgers * priceBurger
print ("You owe $", moneyDue)

You owe $ moneyDue

An error occurs.

You owe $15.0

You owe $ 15.0

Answers

The output will be:

You owe $ 15.0

Sending or receiving information between two
more person
.technical term​

Answers

Two-Way Communication

Samuel plans to use images of babies for a calendar. Which options should he choose?
A.
seek permission from the parents of the baby but do not mention the commercial use
B.
seek permission from no one, as it is the imageer’s duty to capture images
C.
seek permission from parents before using the baby’s image for commercial gains
D.
seek permission from the parents of the babies without telling them about where it will be used

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct option for this question is (C) -seek permission from parents before using the baby’s image for commercial gains

Because Samuel using images of babies for a calendar and use it for commercial purpose. So, she needs to seek permission from parents before using the baby's image for commercial gains. It is also required for her to tell babies' parents about the use of pictures commercially.  

Other options are not correct because legally and ethically she is bound to take permission from babies' parents before using it commercially.

Browsers render web pages according to their own standards.
True or false?

Answers

Answer:

false

Explanation:

it is used to view web pages thant you or somebody else created there are websites our there that you can do that but its mainly to view them

Answer: False

Explanation:

Microsoft ____ is the new web browser.
plz answer this question I would mark your answer brainlist!!!!​

Answers

the answer is microsoft edge not word

What is required to utilize Excel Online?

A) local administrative account
B) product key for Excel
C) Office 365 user account
D) compact disc version of Excel

Answers

Answer:

A.) Office 365 user account

Explanation:

Answer:C

Explanation:

Describe any five modern application areas
of computer​

Answers

Answer:

Some of the application areas of computer are banking, education, industries, entertainments, hospitals, data processing etc. ... and also online education. Different types of entertainment fields such as multimedia, film making with animation, graphics, audio and visual design are done with the help of computer.

A Loop of 3 within a loop of 4 will yield _____ iterations.

Answers

Answer:

12

Explanation:

The loop of 3 will be executed 4 times, hence the multiplication 3*4.

Which of the following statements are true regarding cognitive impairments? Select 3 options.
Speech input devices help those who are cognitively impaired understand the contents of the screen.
Delivering content in different ways, such as using video, animations, and text, helps promote cognitive accessibility.
To improve cognitive accessibility, the developer should focus on a clear and consistent design.
Even though there are different causes for cognitive impairment, many of the resulting functional issues are similar.
Cognitive issues are learning disabilities caused by genetic disorders.

Answers

Answer:

The correct options are;

Delivering content in different ways, such as using video, animations, and text, helps promote cognitive accessibility

To improve cognitive accessibility, the developer should focus on a clear and consistent design

Even though there are different causes for cognitive impairment, many of the resulting functional issues are similar

Explanation:

Cognitive impairment is the condition of a person having difficulty in concentrating, learning, recalling from memory, or making functional decisions. Depending on the severity, cognitive impairment may be classified as severe or mild

Symptoms includes, loss of memory, asking the same questions or telling the same story frequently, unable to recognize people they already know, or places they have already been to, having problems with vision and being unable to plan or see tasks through

Answer:

The correct options are;

Delivering content in different ways, such as using video, animations, and text, helps promote cognitive accessibility

To improve cognitive accessibility, the developer should focus on a clear and consistent design

Even though there are different causes for cognitive impairment, many of the resulting functional issues are similar

Explanation:

mark of athena ar answers

Answers

Answer:

true

Explanation:

thats how I understood it

Joseph's highest level of education is an associate's degree. For which position might he be verified?
A. Software Developer
B. Web Designer
C. Network Support Specialist
D. Network Architect

Answers

Answer:

B web Designer

Explanation:

have a nice day

good morning bikini bottom

Answer: it’s B web designer

Explanation: Just took the quiz so it’s approved by the quiz

Which of the following takes place during the research phase? (choose all that apply)
software requirements are gathered
software requirements are implemented in code
software requirements are analyzed
software requirements are detailed in a specification document

Answers

Answer:

a

c

d

Explanation:

Answer:

A and D

Explanation:

Edge 22

Beth wants to add information to her PowerPoint presentation that is hidden from her audience and only she will
see. Which feature should she use?
Notes pane
Title slide
Normal view
Slide Sorter view
Mark this and return

Answers

Answer:

She should use Notes pane

Explanation:

Notes pane is for notes only the creator will see.

Answer:

A. Notes Pane

Explanation:

discuss two basic types of monitors CRT and LCD give me in short ​

Answers

Difference Between CRT Monitor and LCD Monitor is that CRT monitor is a desktop monitor that contains a cathode-ray tube. ... While An LCD monitor is a desktop monitorthat uses a liquid crystal display to produce images. These monitorsproduce sharp, flicker-free images

Which of these file formats would you choose if you had to create a vector graphic?
Graphic Interchange Format (gif)

Portable Network Graphic (png)

Adobe Illustrator (ai)

Microsoft PowerPoint (pptx)

Answers

Answer:

Don't know, but it's NOT (pptx)

Maybe you will have better luck than me Edge2020

The file format that one would choose if you had to create a vector graphic is Adobe Illustrator.

What is Adobe Illustrator?

This is known to be a kind of Software that helps in editing of vector graphics and it is also used in design program.

Based on the specification above, The file format that one would choose if you had to create a vector graphic is Adobe Illustrator as that is its work.

Learn more about Adobe Illustrator from

https://brainly.com/question/15169412

#SPJ2

What kind of money is a gold certificate considered to be?

commodity
fiat
representative
currency

Answers

The kind of money a gold certificate is considered to be is: C. representative.

What is a gold certificate?

A gold certificate can be defined as a certificate of ownership that is issued by a public treasury and held by the owner of a gold instead of holding the real gold itself.

In the United States of America, a gold certificate is typically issued exclusively to the Federal Reserve System (Fed) by the US Treasury.

In conclusion, the kind of money that a gold certificate is considered to be is representative.

Read more on money here: https://brainly.com/question/25959268

#SPJ5

The kind of money a gold certificate is considered to be is representative. Thus, option C is correct.

What is a gold certificate?

A gold certificate can be defined as a certificate of ownership that is issued by a public treasury and held by the owner of a gold instead of holding the real gold itself. In the United States of America, a gold certificate is typically issued exclusively to the Federal Reserve System (Fed) by the US Treasury.

Money is a good that is widely recognized as a means of economic exchange. It serves as the means for expressing values and prices. It is the primary indicator of wealth because it moves from person to person and nation to country, facilitating trade.

Therefore, the kind of money that a gold certificate is considered to be is representative.

To learn more on money, click here:

brainly.com/question/28784237

#SPJ5

Type the correct answer in the box. Spell all words correctly.

Which artistic technique does an artist use to draw images made up of tiny dots?

Katie is an artist. She uses the..............technique to draw images made up of tiny dots.

Answers

Answer:

Pointillism is the technique you are looking for

Identify the benefit of modeling to communicate a solution.
o provides a graphical representation of a solution with symbols
creates tasks
predicts outcomes to problems
shows the interrelationship between all parts of the solution

Answers

Answer:

The answer to this question is given below in the explanation section. The correct option is shows the interrelationship between all parts of the solution.

Explanation:

The correct option for this question is that the benefit of modeling is to show the interrelationship between all parts of the solution.

Because, in modeling, you define all the parts of the system and interconnection and interrelationship between these parts. It will help in understanding the model and the behavior of the model for certain events or inputs. Modeling helps-in communicating solutions to clients, developers etc.

Modeling helps in building an early prototype of a system or of product.

Modeling also provides a graphical representation of a solution with symbols. it is the structure of modeling of something and it is not a benefit of modeling. Modeling does not predict outcomes to problems in absence of inputs. Modeling does not help in creating tasks it helps in understanding the structure of the system.

How would you describe the relationship between blocks of code and commands?
HELP​

Answers

Answer:

Code and Commands have similar programs coding has only one thing to do or done but commands can be told anytime by an input device.

Explanation:

hope this helps.

the first generation of computers used vaccum tubes .Why were they replaced by the transistors​

Answers

The transistor was smaller and used less power also it was faster and more efficient

How can a user change the range of cells that a Conditional Formatting rule applies to?


A: Clear the rule first and reapply it as it cannot be modified.

B: In the Conditional Formatting Rules Manager dialog box, edit the cell range for the rule in the Applies To section.

C: Clear all rules that have been applied to the worksheet or selected range by clicking on the Clear Rules button.

D: Right-click the cell range and select Update Conditional Formatting Rule from the menu list.

Answers

Answer:

B: In the Conditional Formatting Rules Manager dialog box, edit the cell range for the rule in the Applies To section.

Explanation:

Conditional formatting rule: The term "conditional formatting rule" is described as a technique that allows an individual to apply formatting automatically, for example, data bars, colors, and icons, etc., to one or more than one cells on the basis of the cell value.

Example: If the value is more than $3000, color the cell blue.

In the question above, the correct answer is option-B.

Answer:

B

Explanation:

Other Questions
Read the following excerpt from the Declaration of Rights of Man and the Citizen.The free communication of ideas and opinions is one of the most precious rights of man. Every citizen may, accordingly, speak, write, print with freedom, but shall be responsible for such abuses of this freedom as shall be defined by law.Based on the excerpt, which two rights or freedoms were the people of France entitled to after the revolution?A.pressB.petitionC.armamentD.associationE.speech F(x)= 3x^2+5x-8. Solve the quadratic equation Does Paine believe that the colonies and the British can reconcile? Why or why not? Each pitcher of power smoothie that Ginger makes has 2 scoops of pineapple, 4 scoops of strawberries, 1 scoop of spinach, and 1 scoop of kale. If Ginger makes 6 pitchers of power smoothies, how many scoops will she use in all? Which numerical expression can you write to find the number of scoops? Ginger will use scoops in all. PLEASE ANSWER I HAVE 10 MINUTES!!! Molly has 9 cups of flour. If this is 3/4 of the number she needs to make bread, how many cups does she need? use a tape diagram by reading it backward, draw a tape diagram and label it unknown. The single factor that predicts whether or not a person will develop addiction is:1: Early drug use2: Genetics3: Home environment4: None of the above Which sentence from the selection best expresses how the attitudes of Cabeza de Vaca and his companions were changed by their experience? How did the 13 amendment help to end slavery When did nomadic pastoralism first develop in Central Asia?A. 9,000 years agoB. 1206 - 1277 CEC. 550 BCED. 1271 - 1295 CE Devin made a very studios effort to learn the rules and regulations for participating in the group. Based on the sentence, what does a studios effort required? A complicated process A dedicated intentionAn Escalation of attention An Overwhelming worry Find the equation of the line parallel to the line y = 4x + 10, that goesthrough the point (5, 1) What groups of organisms are most in danger of extinction?A. Those with small population B. Those that migrate or need special habitats C. Those with large populations that breed quickly D. Both a and b PLSSS HELPPP I BEG , its geometry First one to get it right gets brainly. All questions go under chat. Hurry I WILL GIVE U BRAINLIESTWhich sentence best reflects a theme in "The Piece of String" by Guy de Maupassant?Innocence is difficult to prove without trust.One's suspicions can lead to fear.Betrayal can often shatter one's trust.Guilt can consume a person's perspective Suppose government spending is cut. Other things being equal, the aggregate demand for national production willrise.remain constant.fall.All of the above A 0.5 kg basketball moving 5 m/s to the right collides with a 0.05 kg tennisball moving 30 m/s to the left. After the collision, the tennis ball is moving 34m/s to the right. What is the velocity of the basketball after the collision?Assume an elastic collision occurred.O A. 11.4 m/s to the leftO B. 11.4 m/s to the rightO C. 1.4 m/s to the rightO D. 1.4 m/s to the left Question # 5Multiple SelectAside from distributing investments and savings, the primary tasks of the financial service systemare (Select all that apply.)U providing avenues to borrow moneygrowing the country's economyaiding in the creation of capital formationU managing and mitigating the risks 2015 Glynlyon, Inc.< PREVIOUSNEXT >D SAVEC SUBMITv6.0.3-0038.20200504.mainline 2016 Glynlyon, Inc. All rights reserved. Question 233 ptsWhich two statements explain how the information from paragraph 2 propels the plot?It provides the reader with a sense of everyday life as it existed in England in the 1800's.It introduces the reader to the physical characteristics of an English branch-workhouse.It supports the desperation of the malnourished boys in pushing Oliver to request more food.It draws the reader into the conflict between Oliver Twist and the workhouse cook.It provides an illustration of the treatment of unfortunate juveniles by those in authority. PLSSSZ HELP WILL GIVE BRAINLIEST