Super Scores
I am sure all of you know about SAT Superscore. Superscoring is the process by which colleges consider the highest section scores across all the dates a student took the SAT. Rather than confining the scores to one particular date, this approach will take the student's highest section scores, forming the highest possible composite score. Let us solve a generic problem here. Let us start with a sample input and output 2 3
700 800 775 775 800 700 800 800 1600
First line of input specifies 2 sections and 3 takes for this student. So, we need to find the best score for each section across all the test takes & output the best section scores and the corresponding total - next 3 lines show the scores for each section for each take - For this sample input/output, student got 800 in both sections, so the final total is 1600 Your program should be generic to handle any # of sections and any # of takes 2591421130838 5 int main() 6 int nursections, nuntakes, naxScores; cin >> nun sections >> nuntakes; 9 maxScores - new int [numSections); //dynamic memory allocation of arnay! 10 11 // initialize the array 12 for(int 1-e; Icnum Sections; i++) 13 maxScores[1] - ; 14 15 //CODE HERE 16 17 1/output the max score for each section and compute & output total too. 18 int total -e; 19 for(int 1-e; Icnum Sections; 1.) { 20 cout << maxScores[1] << **; 21 total + maxScores[i]; 22 ) 23 cout << total; 24 ) I

Answers

Answer 1

Answer:

Replace:

//CODE HERE  

//output the max score for each section and compute & output total too.  

with the following lines of codes:

int num;  

for(int i=0; i<numtakes; i++) {

for(int j=0; j<numsections; j++) {

  cin>>num;

  if(num>maxScores[j]){

      maxScores[j] = num;    }

}  }

Explanation:

Your program is poorly formatted. (See attachment for correct presentation of question)

What's required of the us is to complete the source program.

The codes has been completed in the Answer section above, however, the line by line explanation is as follows:

This line declares num that gets user for input for each entry

int num;  

This line iterates through the number of takes

for(int i=0; i<numtakes; i++) {

This line iterates through the number of sections

for(int j=0; j<numsections; j++) {

This gets user input for each entry

  cin>>num;

The following if condition determines the greatest entry in each section

  if(num>maxScores[j]){

      maxScores[j] = num;    }

}  }

For further explanation, I've added the complete source file as an attachment where I used comments to explain each line.


Related Questions

Suppose that one of the following control signals in the single-cycle MIPS processor has a stuck-at-0 fault, meaning that the signal is always O, regardless of its intended value. What instructions would malfunction? Why? (a) RegWrite (b) ALUOp1 (c) MemWrite Repeat for all three signals (a) to (c) above, assuming that the signal has a stuck-at-1 fault.

Answers

Answer:

Explanation:

RegWrite:

• All R-type instructions, lw and addi:

• The result of the operation/load/addition would not be written back to the destination register

• ALUOP

• The following R-type instructions: add, sub, and, or, slt

• With ALUOp stuck at 0, the ALU decoder would interpret all those instructions as either add or subtract operations. The ALUOp gets decoded to add or subtract depending on ALUOp[0].

• MemWrite:

• Only sw is affected.

• The memory write won’t take place.

What is the capacity of a disk with two platters, 10,000 cylinders, an average of 400 sectors per track, and 512 bytes per sector?
What is the use of cache memory? Explain the concepts of cache hit and cache miss.

Answers

Answer:

The capacity of the disk is "40 GB".

Explanation:

Given value:

[tex]\to \text{cylinder}= 10,000\\\\\to \frac{sector}{track} = 400\\\\\to \frac{bytes}{sector} = 512\\[/tex]

[tex]\text{Calculating the size of track} = \frac{bytes}{sector} \times \frac{sector}{track}[/tex]

                                            [tex]= 512 \times 400 \\\\ = 204,800 \ \ Or \ \ 200 \ K[/tex]

[tex]\text{Calculating the size of surface} = \frac{byte}{track} \times \ cylinder[/tex]

                                               [tex]= 2000 \ K \times 10,000 \\\\ = 20, 000,000 \ K[/tex]

[tex]\text{Calculating the capacity of a disk} = \frac{byte}{surface} \times \frac{surface}{disk}[/tex]

                                                     [tex]= 20, 000,000 \ K \times 2 \\\\ = 40, 000,000 \ K \\\\= 40 \ GB[/tex]

Cache memory is often used to speed up the runtime. It will enable us to improve performance unless we can store information, that is retrieved constantly in memory space.

Hit Cache: when the Processor relates to representing database data, Cache Hit results. Miss Cache: when this Processor responds to a non-present cache data, this will trigger its miss of cache.It doesn't have to retrieve the Main Memory through secondary storage.

What is the advantage of using a translation look-aside buffer (TLB), also called associative memory, in the logical-physical address mapping process? Explain how the logical-physical address mapping logic works using an inverted page table. When does the MMU detect page-fault? Explain four of the main steps for resolving page faults.

Answers

Answer:

A) The advantage of using TLB is that it is used for storing the recent transactions of the virtual memory to the physical memory and this is used for the sole purpose of fast retrieval of data

B) When using an inverted table the logical-physical address mapping logic works as a hashing function by  connecting pieces of the hardware of logical address and getting them translated to the physical address. this hash function in turn generates the index to the frame table

C) The MMU detect page-fault when there is an exception been raised by the computer when a program is ran to access a memory page and this program is not mapped out by the MMU in the process

The four steps are :

The first step is to check on the memory address requested to make sure of  a  valid memory request.

 The second step is to setup A free frame  and a disk operation that is scheduled for getting the necessary page from the disk.

As the the I/O is been completed the processor table is been updated

Finally the   Instruction will get restarted from the beginning indicating what might have been caused by a page fault.

Explanation:

A) The advantage of using TLB is that it is used for storing the recent transactions of the virtual memory to the physical memory and this is used for the sole purpose of fast retrieval of data

B) When using an inverted table the logical-physical address mapping logic works as a hashing function by  connecting pieces of the hardware of logical address and getting them translated to the physical address. this hash function in turn generates the index to the frame table

C) The MMU detect page-fault when there is an exception been raised by the computer when a program is ran to access a memory page and this program is not mapped out by the MMU in the process

The four steps are :

The first step is to check on the memory address requested to make sure of  a  valid memory request.

 The second step is to setup A free frame  and a disk operation that is scheduled for getting the necessary page from the disk.

As the the I/O is been completed the processor table is been updated

Finally the   Instruction will get restarted from the beginning indicating what might have been caused by a page fault.

What computer part it this? Explain to get brainliest. People that don't explain, won't get it, but will get a thanks + a 5 star rate.

Answers

Answer:

That is a motherboard, a circuit board containing the main components (CPU, RAM, etc) of a computer. It contains connectors in which other circuit boards can be slotted into.

Explanation:

A motherboard is a specialized circuit board (a thin board containing a electrical circuit) used for containing major components of a computer and allowing the parts to be used in conjunction with each other. This is why you'll find a motherboard in a large variety of computers, from phones, to PC's and laptops.

Answer: Motherboard.

Explanation: it's the backbone of a computer, it ties all the computers components together.

A Computer Programmer who wants to be surrounded by a large number of like-minded coworkers should take a job with one of the nation’s largest

A)retail sellers of computers and related accessories.
B)in-store computer repair and service companies.
C)developers of computer operating systems.
D)makers of computer networking equipment.

Answers

Answer:

C

Explanation:

This job will have the largest amount of 1. computer programmers, 2. like-minded coworkers, and 3. a large number of like-minded coworkers.

Please give Brainliest if accurate!

The Computer Programmer who wants to be surrounded by a large number of like-minded coworkers should take a job with developers of computer operating systems.

What is  the term like-minded?

The Definition of the term like-minded is known to be when two or more people like or have the same purpose, habit or thought.

Therefore we can say that The Computer Programmer who wants to be surrounded by a large number of like-minded coworkers should take a job with developers of computer operating systems.

Learn more about Programmer from

https://brainly.com/question/23275071

#SPJ2

What are some areas in Computer Science that make use of multivariate statistical testing or MCM methods? Explain why they are used.

Answers

Explanation:

Computational modeling is one of the areas of Computer Science that uses mathematical systems to perform multivariate statistical tests to solve highly complex problems in multidisciplinary areas, such as medicine, engineering, science, etc.

An example of the use of multivariate statistical tests is social development research in social science, which uses multiple variables to find more hypotheses and greater coverage between variables.

Multivariate statistical tests have the benefit of making research more effective and providing a more systematic and real view of the study.

Explain why the expected value of an F ratio is 1.00 when the null hypothesis is true if there is no treatment effect the numerator.

Answers

Answer:

The reason is that the f ratio is balanced due to the numerator and denominator having equal sources of variability.

Explanation:

The expected value of an F ratio is 1.00 when the null hypothesis is true because in a scenario where there is no treatment effect, we have both the numerator and the denominator of the F ratio both measuring equal sources of variability.

Whenever this happens then the F ratio will be balanced and also it will have a value that is near 1.00.

What is the primary purpose of a slideshow presentation

Answers

Answer:

to help us to complete all of useless project given by school

Answer:

support the presenter's ideas

Explanation:

How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? A.
in pixels
B.
in inches
C.
as percentages
D.
in em units

Answers

Answer:

It's D: in em units

Explanation:

Plato

Sptr is a pointer pointing to the beginning of an array called sarray. To access the value in sarray[3] by using the pointer, you would use:a) *sptr[*3] b) *sptr+3 c) sptr +3 d) *(sptr + 3)

Answers

Answer:

The correct option for accessing the value in sarray[3] is : d) *(sptr+3)

Explanation:

a) *sptr[*3]  is wrong option because its syntax is not right it will give errors.

b) *sptr+3 is also wrong option because it will add 3 to the value of sarray[0].

c) sptr+3 is wrong option because it will only access the address of sarray[3] not the value it contains.

d) *(sptr +3) is correct syntax for accessing value in sarray[3] by using pointer

When was the information last updated

Answers

Wait what? I don’t understand

different between input and output device​

Answers

Answer:

An input device is something you connect to a computer that sends information into the computer. An output device is something you connect to a computer that has information sent to it.

Explanation:

When would it be necessary to edit the information shown on an electronic business card?

Answers

Answer:

It's D dear

Explanation:

Answer:

D. to show only relevant information to people inside your organization

Explanation:

hope this helps :)

Which of the following describes the phishing method of information security crime?


physically interacting with the victim and using her computer when she is not looking

rifling through recycling bins to find account information

pretending to be someone else when asking for information

all of these

Answers

Answer:

pretending to be someone else when asking for information

I NEED HELPS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! UWU

jeremy has a handful of resisters and all of them except one have for bands the exception has three why?

Answers

Answer:

The 3 band resistor does not specify the tolerance.

Ususally this means the tolerance is 20%, which is not great.

Explanation:

The last band is typically the tolerance band, i.e., the lower the tolerance the more accurate the value as indicated by the other bands. In case of a 3 band code, there is no tolerance specified and you have to assume the default of 20%.

Write a function that takes in two parallel lists: a list of times (in increasing order), and a list of distance traveled by that point in time. The function should return a new list giving the average velocity between consecutive time measurements. The new list should have length one less than the original lists.

Answers

Below is the function that takes two parallel lists;

List of times in increasing order and that of distance travelled by that point in time.

I put into consideration the instructions given in the question.

ANSWER;

def find_velocity(time, distance):

velocities = []

for i in range(1, len(time)):

velocities.append((distance[i] - distance[i - 1]) / (time[i] - time[i - 1]))

return velocities

times are = [1, 3, 5, 7]

distances are = [25, 29, 35, 70]

print(find_velocity(times, distances))

anthill is to ant _________ is as to king

Answers

Answer: palace or castle

Explanation: the anthill is the big place where the ants live and the palace is the big place where the king lives.

how to create diagram that demonstrates the step
by step procedures in performing a mail merge.

Answers

Answer:

hope it helps

1-Creating a Main Document and the Template.

2-Creating a Data Source.

3-Defining the Merge Fields in the main document.

4-Merging the Data with the main document.

5-Saving/Exporting

PowerPoint is a visual aid for many speakers. Discuss some points to remember when adding text to a PowerPoint presentation. How do they help make the experience better for the audience and the presenter? What things can you do when creating a PowerPoint presentation to assure that your work adds to the speaker’s presentation without detracting attention from the speaker?

Answers

Answer:

Use a lot of spinning animations to draw attention. Use many colors. A lot of text so you can read from the slide in case you get lost.

When a called function completes its task, it normally:_________a. logs its results b. terminates program execution normally c. aborts program execution d. returns to the calling function

Answers

Answer:

sorry this is tought

Explanation:

no idea

Consider sending a packet from a source host to a destination host over a fixed route. List the delay components in the end-to-end delay. Which of these delays are constant and which are variable? Draw a picture to illustrate your network and where each type of delay occurs.

Answers

List the delay components in the end-to-end delay:
Processing delay
Transmission delay
Propagation delay
Queuing delay.
The processing delay, transmission delay, and propagation delay are constant. Reason is that, time taken to transmit data bits.
The queuing delay is variable.Reason is that, Only single packet transfer in queue process and waiting time depends on packet size.

The delay components in the end-to-end delay are processing delay, Transmission delay, Propagation delay, and Queuing delay.

What is an end-to-end Delay?

End-to-end delay, also known as one-way delay, is the length of time it takes for a packet to go from its source to its destination across a network. It is a word frequently used in the monitoring of IP networks, and it varies from round-trip time in that only the path from source to destination is measured.

Now according to the question, the propagation, transmission, and processing delays are all constant. The time required to send data bits is the cause.

Variable queuing delays exist.

The waiting time is dependent on packet size, and only one packet can be transferred at a time in the queue process.

To get more information about End-to-End delay :

https://brainly.com/question/28584250

#SPJ2

a good look of a web page depends upon?​

Answers

Answer:

Depends mostly on your opinion

Write a function that will sum all of the numbers in a list, ignoring the non-numbers. The function should takes one parameter: a list of values (value_list) of various types. The recommended approach for this:

a. create a variable to hold the current sum and initialize it to zero.
b. use a for loop to process each element of the list.
c. test each element to see if it is an integer or a float, and, if so, add its value to the current sum.
d. return the sum at the end.

Answers

In python 3.8:

def func(value_list):

   lst = [x for x in value_list if type(x) == int or type(x) == float]

   return sum(lst)

print(func(["h", "w", 32, 342.23, 'j']))

This is one solution using list comprehensions. I prefer this route because the code is concise.

def func(value_list):

   total = 0

   for x in value_list:

       if type(x) == int or type(x) == float:

           total += x

   return total

print(func(["h", "w", 32, 342.23, 'j']))

This is the way as described in your problem.

you are packing a mobile phone containing a lithium ion battery and you get a prompt on the screen to put a lithium ion label on the box. You have run out of such labels and have only lithium metal labels left. what should you do?

Answers

Answer:

Do not use such labels because they may be misleading and are unethical.

Explanation:

Note, there is a big difference in design between the two terms or labels. Lithium metal batteries are non-rechargeable batteries. In other words, they cannot be recharged after they run down. For example, most watches, calculators, or car keys are made of lithium metal batteries.

While Lithium-ion batteries (or Li-ion batteries) are rechargeable batteries , and they are commonly used by mobile phones, laptops, and other gadgets.

Therefore, with such differences in mind, it may be very misleading when someone in possession of the mobile phone sees the lithium metal labels; then thinks the battery is non-rechargeable.

There are different instructions that comes with labeling, lithium metal label  is quite different from Lithium-ion labels and as such one cannot use one for the order.

What one should you do is to never use the lithium metal labels in place of  Lithium-ion labels. It is better to go and get the required label. If not found, the mobile phone should not be packaged for transport.

One has to comply with the regulations regarding batteries and the packaging of lithium batteries.

Lithium Metal Batteries  are known as primary battery. That is, they are non-rechargeable. They are said to have lithium metal or lithium compounds in them.

They have high energy density than other lithium batteries.   They can be found in Watches , Calculators etc.

Lithium-ion batteries are known to be  secondary battery. That is, they are said to be rechargeable in nature. They can be found  in Mobile phones, Laptops etc.

When shipped, any packages that has lithium-ion batteries must be labeled with  UN3480  or UN3481.

When shipped, any packages that has lithium metal batteries must be labeled  with UN3090  or UN3091.

Learn more about Batteries from

https://brainly.com/question/24876978

PLZ HELP!!!!!!!!! XC

what dose it mean if a circuit is hot to the touch

Answers

Answer:

The circuit is carrying more than it is supposed to and is overheating.

The series is overloaded

Originally, Java was used to create similar apps as what other language?
Perl
Python
CSS
Javascript

Answers

Answer:

Python

Explanation:

Took the test

Originally, Java was used to create similar apps as other languages, which as python. The correct option is b.

What are computer languages?

The computer languages are Java and Python is in their conversion; the Java compiler converts Java source code into an intermediate code known as bytecode, whereas the Python interpreter converts Python source code into machine code line by line.

Curly braces are used in Java to define the beginning and end of each function and class definition, whereas indentation is used in Python to separate code into separate blocks.

Multiple inheritances is done partially through interfaces in Java, whereas Python continues to support both solitary and multiple inheritances.

Therefore, the correct option is b. Python.

To learn more about computer languages, refer to the below link:

https://brainly.com/question/14523217

#SPJ2

What number will be output by the console.log command on line 5

Answers

Answer:

-2

Explanation:

Explain
the three types of periodic
maintanance. .​

Answers

Answer:

poop i think

Explanation:

wordList is a list of words that currently contains the values ["tree", "rock", "air"]
Which of the following lines will result in the list containing the values ["air", "rock", "air"]
A. wordList[0] = wordList[2]
B. wordList[2] = wordList[O]
C.insertitem(wordList, O, "air")
D. removeltem(wordList,0)

Answers

Answer:

A. wordList[0] = wordList[2]

Explanation:

Required

Which line would give ["air", "rock", "air"]

From the question, we have that:

wordList =  ["tree", "rock", "air"]

which means that:

wordList[0] = "tree"

wordList[1] = "rock"

wordList[2] = "air"

Analyzing the options.

A. wordList[0] = wordList[2]

This will assign the item in wordList[2] to wordList[0].

and the result would be

So:

wordList[0] = "tree"

would change to

wordList[0] = "air"

The new content of wordList would then be ["air", "rock", "air"]

Option (A) answers the question

The list variable wordList contains three string values, Hence, to obtain the list, ["air", "rock", "air"], the lines wordList[0] = wordList[2] would be used.

List values are indexed from 0 ; hence, tree = index 0 ; rock = index 1 ; air = index 2

To assign the the string "tree" to index 0, then wordList[2] is assigned to wordList[0].

wordList[0] is now "air"

Hence, the required line of code would be wordList[0] = wordList[2]

Learn more :https://brainly.com/question/19117781

Help I’ll mark you brainly!

Answers

1. shapes

2. Shapes are classified and have a certain look. Forms are mostly organic and don't have a specific form.

3. value and depth

4. yellow, blue, red

5. orange, green, purple

6. opposite each other

7. right next to each other

9. tint-lightness  shade - darkness

10. value

Have a great day!

~PumpkinSpice1

P.S.~ I take Digital arts so I know all the answers :) I just finished my color unit.

Other Questions
Helpppppp please due today evaluate the expression | 10 | = can someone help me please? the last point of the first graph ends on 6 PLEASE HELP WITH THESE TWO QUESTIONS2.) 50.0 grams of water at 100 degrees Celsius evaporated to water vapor 2 pointsat 100 degrees Celsius. Calculate the amount of heat required for thisconversion.2. A student measured 15.0 grams of ice in a beaker. The beaker was thenplaced on a hot plate where it was heated uniformly for a certain amountof time. During the melting process of the ice, the student noted that thetemperature was at 0 degree Celsius. When all the ice converted to water,the final temperature was also at 0 degree Celsius. How much heat wasused to melt the ice? Is SO3 ionic or ionic using the stock system or molecular Dana refers to her job as the slave market. What does she actually do? In timed pls help To find this product, Julissa first multiplied 83 x 49. 0.83 x 0.49 = 4067Where should she place a decimal point in the final product O Before the 4O after the 4 O after the 0O before the 7 What is the slope intercept form for this ? Describe the aftermath of the battles. Who says the following and why?Among fresh female buds shall you this nightInherit at my house; hear all, all see,And like her most whose merit most shall be:Which on more view, of many mine being oneMay stand in number, though in reckoning none.Benvolio is trying to convince Romeo to go to the party.Romeo is trying to convince Benvolio that he will still love Rosaline.Capulet is trying to convince Paris to look at other girls.Paris is excited about seeing Juliet at the party. In what part of the United States are the Appalachian mountains located?A. Between the Great Plains and the Rocky MountainsB. Close to the Atlantic CoastC. On the West Coast D. Near the Great Lakes the diagram shows triangle ABD and triangle BCD ABC is a straight line BCD is a quadrilateral triangle angles DAB=25 degrees work out the size of the triangle marked x give a reason for ur answer What is 1000+52603+58964+5236809+968532-68972100 = ? help^ answer that...... You can open this tin ___. a. easyb. easilyc. easier Lines b and c are parallel. What is the measure of angle 6? Draw a picture of the word 'guide' and what it means to you. write an equation in slope-intercept form for the line with the given slope, passing through the given point. slope=3, (3,2)a. y=3x-7b. y=2x-7c. 3x-3d. y=2x-3 what is accommodation in tourism Which set of statements explains how to plot a point at the location(-33.-2)Start at the origin. Move 3 units right because the x-coordinate is - 33.-3-3is between 3 and 4. Move 2 units dowA because the y-coordinate is -2.Start at the origin. Move 3 units down because the x-coordinate is 3.1.-3 is between -3 and -4. Move 2 unitsleft because the y-coordinate is -2.O Start at the origin. Move 3 units down because the x-coordinate is -3-3.7.-32 is between -3 and -4. Move 2 unitsright because the y-coordinate is -2.Start at the origin. Move 3 units left because the x-coordinate is -3-35-3 is between -3 and -4. Move 2 unitsdown because the y-coordinate is -2.