Define a header and data format

Assignment Help Basic Computer Science
Reference no: EM13968385

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.

Reference no: EM13968385

Questions Cloud

Look for the actual location : The client says that this photo will help to clear him or her of the investigation. You need to determine the date, time, and location of the photo. Look for the actual location (not the GPS coordinates, but you'll need to use those to find the lo..
Are there any potential problems in the design : Referring to the "Factors that Influence the Forming of Self-Evaluation and Self-Efficacy Perceptions" article, what design was used? Support your response. What were the findings? Are there any potential problems in the design
What multivariate design statistic might you select : What multivariate design statistic might you select when you have collected all the observations from a large number of participants? Why
Calculate the current and debt ratios for the company. : Using the work sheet data that you prepared, journalize the closing entries and post the adjusting and closing entries to T-accounts. Use dates and show the ending balance of each account.
Define a header and data format : 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 bo..
Submit a list of uniform resource locators : Locate the following types of funding sources on the Internet and submit a list of uniform resource locators (URLs) with a brief explanation of the source and purposes of funding.
Find the change in electric potential energy : A uniform electric field with a magnitude of 6450 N/C points in the positive x direction. Find the change in electric potential energy when a +16.0-µC charge is moved 6.50 cm in the positive x direction.
What multivariate design was used : Review the assigned article, "The Eating Disorders Continuum, Self-Esteem, and Perfectionism." What multivariate design was used
What is the speed vfinal of the electron : Two stationary positive point charges, charge 1 of magnitude 3.65 nC and charge 2 of magnitude 2.00 nC , are separated by a distance of 40.0 cm . An electron is released from rest at the point midway between the two charges, and it moves along the..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd