Requirements for the program-java programming

Assignment Help Basic Computer Science
Reference no: EM131204356

What this program code

Here are some requirements for the program: JAVA Programming

  1. The program must prompt the user to enter the amount of tickets he/she wants to purchase (must be between 1 and 5)
  2. A ticket will be made up of two sets of numbers - a group of 5 numbers and another group of 1 number.
  3. The numbers must be randomly generated from the range of 1 - 56 for Group 1 and 1 - 46 for Group 2.
  4. There must  be no repetition of numbers in the same group.
  5. However, if the user wants for example 2 tickets, then it is possible for these two tickets to differ by only 1 number (so repetition between tickets are allowed providing that the 2 tickets are not identical).
  6. You are to use vectors or arrays to store the lottery numbers.
  7. The program must also prompt the user asking him/her if he/she wants to buy more tickets. If answer is "yes" rerun the program. If "no" terminate the program.
  8. Sort the numbers in Group 1 in ascending order  for each ticket purchased.
  9. Then display all of the tickets purchased by the user on the screen in the order of Group 1 followed by the single number in Group 2.

Reference no: EM131204356

Questions Cloud

Can such an argument apply to free education : What kind of argument based on asymmetric information could support the claim that free meals (an in-kind transfer) are better than the cash handout? Can such an argument apply to free education?
How will net income and net loss be divided : A dispute has risen among partners. jenson has invested twice as much in assets as the other two partners and he believes net income and net losses should be shared in accordance with the capital ratio . the partnership agreement does not specify the..
What is the minimum level of s that will achieve separation : Suppose that the signal is no longer available. Which kinds of job will be filled by which types of workers, and at what wages? Who gains and who loses?
Determine whether the old machine should be retained : Kobe Company has a factory machine with a book value of $85,590 and a remaining useful life of 5 years. It can be sold for $31,030. A new machine is available at a cost of $247,620. This machine will have a 5-year useful life with no salvage value. D..
Requirements for the program-java programming : The program must prompt the user to enter the amount of tickets he/she wants to purchase (must be between 1 and 5) A ticket will be made up of two sets of numbers - a group of 5 numbers and another group of 1 number.
Would a ratings system in theatre be considered censorship : in your opinion, would a ratings system in theatre be considered censorship of the artist or merely a marketing strategy to increase sales (assisting the public in making a decision)?
Calculated straight-line method and half-year convention : For real property placed in service after 1986, depreciation under the MACRS system is calculated using the straight-line method and a half-year convention in the year of acquisition and in the year of disposition. 200% DB method and a mid-month conv..
Can you explain why juveniles of color have higher rates : What correctional policies can be created from the principles of restorative justice (based on indigenous justice principles)? Are these values more compatible with some offenses than others? More appropriate for some types of offenders than other..
Review the given essay for any grammar or syntax error : Review the given Essay.- check the essay for any grammar or syntax error. - Given the essay topic is: "The Impact a Reverence for Life Can Have".

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Describe graphical user interfaces-communications message

Describe some of the graphical user interfaces (GUIs) and communications messages that occur during operation of a microwave.

  How it would validate the customer complaint

Trouble Ticket 101: Customer in Atlanta complains that when she tries to log into the system server.headquarters.com in New York, she gets disconnected with a time-out. However, her colleague in her New York office reports that he is able to acces..

  The purpose of cryptography and take a position

Explain, in your own words, the purpose of cryptography and take a position on whether or not you believe encryption is sufficiently utilized in organizations today. Provide a rationale with your response. Describe the differences between symmetric a..

  Knowledge of simple arithmetic operations

People feel that they rarely use Algebra in their jobs or their lives. Most feel that knowledge of simple arithmetic operations is all that is needed. If this is the case then why do you suppose that Algebra is a required course in most college cu..

  How the project might be reorganized

Assume that a serious, unanticipated setback occurs and instead of taking 10 days, task T5 takes 40 days. Draw up new bar charts showing how the project might be reorganized.

  These function prototypes lack parameters

These function prototypes lack parameters; add whatever parameters you feel are necessary so that the program works without global variables. The program's output should reflect the bus's actions by reporting each change in state, along with the n..

  Assume the sequence numbers are properly sized

What suggestions would you make to your colleague to fix the protocol? Assume the sequence numbers are properly sized.

  What is the objective of compensation in the workplace

1. Define the terms Performance Management, Performance Evaluation, and Performance Feedback and explain how each of the three tools is used in the workplace.  2. What is the objective of compensation in the workplace and what are two factors affecti..

  Network administrator at netstack college has chosen cisco

The network administrator at Netstack College has chosen Cisco to provide the routers on his network. Recall that there are six buildings on campus with 250 connections each in four buildings, 180 connections in the fifth building, and 80 conne..

  Explain the steps take to stop cyber squatter explain the

explain the steps take to stop cyber squatteryou are a owner of the register trademark and you just found that domain

  Produce a report by salesman

Do a compile-time initialization of the salesperson's names and product list. Produce a report by salesman, showing the total sales per product.

  Perform a left shift on the program counter

Performing a Left Shift (LSH) on the program counter is typically not useful. The LSH op code when referencing register F will load a new (immediate) value into register F, effectively performing a jump.

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