Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91961473
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question? 


Related Questions in Computer Engineering

At a certain temperature 0317 mol of ch4 and 0719 mol of

At a certain temperature, 0.317 mol of CH4 and 0.719 mol of H2O is placed in a 4.00 L container. CH4(g)+2H20(g) ---, CO2 (g) +4H2 (g) At equilibrium, 4.80 g of CO2 is present. Calculate Kc.

A mixture contains 0600 moles of nah2po4 and 00800 moles of

A mixture contains 0.600 moles of NaH2PO4 and 0.0800 moles of K2HPO4. It is titrated with 0.500 molar NaOH (aq) to neutralize it completely. How many mL of the NaOH solution are required?

What are the 5 classic components of a computer discussed

What are the 5 classic components of a computer discussed in class?

A string in c is simply an array of characters with the

A string in C++ is simply an array of characters with the null character(\0) used to mark the end of the string. C++ provides a set of string handling function in as well as I/O functions in . With the addition of the ST ...

A sample of 1000 us households is taken and the average

A sample of 1,000 U.S. households is taken and the average amount of newspaper garbage or recycling is found to be 27.8 pounds with a standard deviation of 2 pounds. Estimate, with 90% confidence, the mean amount of news ...

Submit a 2- to 3-page paper in which youidentify an

Submit a 2- to 3-page paper in which you: Identify an intercultural area Intercultural interaction with a person from a culture different from your own. Explain why you have selected this area. Describe your personal cul ...

Submit your solution as a plain-text file with a c

Submit your solution as a plain-text file with a .c extension in the name. Name timer - counts down to zero from a user supplied number. Description Displays a count down to zero from a number supplied by the user at the ...

Scenario upon logging into the centos7 server you notice

Scenario: Upon logging into the CentOS7 server you notice that the system seems sluggish. You suspect that a runaway process is causing the problem, so you open the top utility and notice that there are numerous "cat bom ...

What is the transmission type transmission form

What is the Transmission Type, Transmission Form, Transmission Speed, Address for Transmission and Collusion for hubs?

Systems analysis project 5can you answer the 4questions

Systems Analysis project 5: Can you answer the 4questions please. Personal Trainer, Inc. owns and operates fitness centers in a dozen Midwestern cities. The centers have done well, and the company is planning an internat ...

  • 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