Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Purpose: This program will generate a series of random numbers and produces a table containing these values and some statistics about them.

  • The program should define a Header and Data format string to output results as shown in the sample at the bottom.
  • The program will get from the user the maximum random number to be computed (an integer). It will get this value into a String variable.
  • The program will use the Integer wrapper class to parse the integer out of the String and store in an integer variable.
  • Then the program will ask the user how many random numbers will be generated. It should also receive this number in a String and use theInteger wrapper class to get the integer into an integer variable.
  • Using a for loop, output a table with the following characteristics:
    • Print a header of titles using a header format and printf (this should be before the loop, not inside the loop).
    • There should be one line per each random line generated.
    • Each line should contain:
      • A line number, also known asround.
      • The generated random number.
      • Current Maximum of all generated random numbers so far.
        • Utilize Math class to determine current Max
      • Current Minimum of all generated random numbers so far.
        • Utilize Math class to determine current Min
      • Current Total of all generated random numbers so far added together.
        • Total should be calculate using a compound operator.
      • Current average of all generated random numbers so far.
        • Average should be shown with 2 decimal places.
      • Output "End Run..." after all lines have been output.

Mimic the output in the sample below exactly. Numbers will change due to random and selection but format will be the same.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91643331

Have any Question?


Related Questions in Computer Engineering

Question do a research on the internet and discuss about

Question : Do a research on the Internet and discuss about the history of development of the networking field. Also discuss some of the recent trends in the networking area, (approx 200 words)

Question research different information systems management

Question : Research different information systems management disaster response plans of major organizations that have had to respond to fairly recent disasters. Discuss the results of the organization's recovery efforts.

Question task a based on the case above as well as your own

Question: Task A: Based on the Case Above as well as your Own Research on IT Service Delivery, answer the following questions: 1) What were the key reasons for the IT implementation failure? 2) In your view, who is respo ...

Suppose that we want to convert the small computer into a

Suppose that we want to convert the small computer into a 16- bit RISC type of processor (address and data buses are both 16-bits wide and each instruction is supposed to occupy 16 bits in the instruction memory). If the ...

1 what do we mean by financial intelligence how to assess a

1. What do we mean by financial intelligence? How to assess a company's health? 2. Use the plain language to define operating experience, capital expenditure, accruals, depreciation, and goodwill. 3. Describe differences ...

Question each student will research a paper on big data

Question: Each student will research a paper on Big Data word document 1000 to 1500 words with graphics describing the following: 1. what is Big Data? 2. Origins ? 3. Differences? 4. examples of Big data your point of vi ...

Suppose the information content of a packet is the ascii

Suppose the information content of a packet is the ASCII (8-bit code) representation of "OK" and an even parity scheme is being used. What would the value of the field containing the parity bits be for the case of a two- ...

Think about a good or service for which you believe there

Think about a good or service for which you believe there has been a shift in demand or supply. Explain the reasons behind the shift and how that has influenced the equilibrium price.

What is a good analogy of subnetting whats a break down of

What is a good analogy of Subnetting? What's a break down of how it is used within a company?

Espn pays the nfl 11 billion per year for 8 yrs for the

ESPN pays the NFL $1.1 Billion per year for 8 yrs for the right to exclusively televise football. What is the NPV of the investment if the parent Disney CO has an opportunity interest rate that is equal to the cost of ca ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As