For this project you are tasked with building a user application that will select sets of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
For this project you are tasked with building a user application that will select sets of random numbers. Your application must use functions and pass values. Your program will pick sets of 6 random numbers with values of 1 to 53. The user should be able to choose how many sets to produce. The challenge will be to ensure that no number in a set of 6 Is a repeat. Your program should prompt the user and ask them how many number sets they wish to have. This could be used as a lottery ticket quick pick application. For those who do not condone gambling, it could just be a tool to select random numbers for a game of fun. Objectives: ● ● . ● . Use of functions and passing by value. Use of repetition constructs (loops). The understanding and use of selection. The use of the random number generator and seeding. Display formatted output using input/output statements. Use format control strings to format text output. Minimum Requirements: Your program must make use of the following. 1. Your program must compile on the Osprey server. -25 points if I have to fix it to compile. Make sure to watch the videos on how to copy files into osprey and how to verify them on osprey. 2. Your program must use a function to prompt the user for input and return it to the calling function. This function will determine the number of groups of 6 random numbers to generate. The function should also allow the user the opportunity to enter in a value to quit. Recall that a 'Q' has a value and a 'q' has a value. You may use a character or a special number value to determine the user has selected to quit and your program would indicate this to the calling function. Your function will not exit the program but return a value to the caller indicating the user wants to quit. 3. Your program must use a function to get and return random values to the calling function. This function should take as arguments a value for the range and the offset. This makes the function reusable for other random number needs. The function. should return the random integer value to the calling function. -20 max for no function or no usable function, -15 for no range control, -10 for no parameters being used. 4. The range and offset to be used in your program must use a defined constant and The range should be inclusive values 1 thn 53. For this project you are tasked with building a user application that will select sets of random numbers. Your application must use functions and pass values. Your program will pick sets of 6 random numbers with values of 1 to 53. The user should be able to choose how many sets to produce. The challenge will be to ensure that no number in a set of 6 Is a repeat. Your program should prompt the user and ask them how many number sets they wish to have. This could be used as a lottery ticket quick pick application. For those who do not condone gambling, it could just be a tool to select random numbers for a game of fun. Objectives: ● ● . ● . Use of functions and passing by value. Use of repetition constructs (loops). The understanding and use of selection. The use of the random number generator and seeding. Display formatted output using input/output statements. Use format control strings to format text output. Minimum Requirements: Your program must make use of the following. 1. Your program must compile on the Osprey server. -25 points if I have to fix it to compile. Make sure to watch the videos on how to copy files into osprey and how to verify them on osprey. 2. Your program must use a function to prompt the user for input and return it to the calling function. This function will determine the number of groups of 6 random numbers to generate. The function should also allow the user the opportunity to enter in a value to quit. Recall that a 'Q' has a value and a 'q' has a value. You may use a character or a special number value to determine the user has selected to quit and your program would indicate this to the calling function. Your function will not exit the program but return a value to the caller indicating the user wants to quit. 3. Your program must use a function to get and return random values to the calling function. This function should take as arguments a value for the range and the offset. This makes the function reusable for other random number needs. The function. should return the random integer value to the calling function. -20 max for no function or no usable function, -15 for no range control, -10 for no parameters being used. 4. The range and offset to be used in your program must use a defined constant and The range should be inclusive values 1 thn 53.
Expert Answer:
Answer rating: 100% (QA)
Program CODE include include include define RANGE 53 define OFFSET 1 ... View the full answer
Related Book For
Introduction to Emergency Management
ISBN: 978-0471772606
1st edition
Authors: Michael K. Lindell, Carla Prater, Ronald W. Perry
Posted Date:
Students also viewed these chemical engineering questions
-
You were asked to calculate the convexity of a 10 year bond that has a coupon of 2.80% and a YTM of 3.40%. You could have typed the numbers into the duration calculator rather than actually...
-
.. As a financial analyst, you are tasked with evaluating a capital-budgeting project. You were instructed to use the IRR method, and you need to determine an appropriate hurdle rate. The risk-free...
-
Choose an Australian industry and analyse the most important factors affecting its profitability by using the relevant concepts and theories we have studied in Lectures 1-9. You should choose the...
-
Which of the following statements is true for real gases? Choose all that apply. 1. As attractive forces between molecules increase, deviations from ideal behavior become more apparent at relatively...
-
Sea Spray Marine experienced these events during the current year. a. December revenue totaled $130,000; and, in addition, Sea Spray collected sales tax of 5%. The tax amount will be sent to the...
-
True or False: Cyberterrorism has thus far been largely limited to acts such as the defacement of NATO Web pages during the war in Kosovo.
-
Let \(Y\) be distributed according to the beta(10 12) distribution. (a) Find \(\mathrm{E}[Y]\). (b) Find \(\operatorname{Var}[Y]\). (c) Find \(P(Y>5)\) using the normal approximation.
-
Using the information from Problem 8- 29, assume that the nursing administrator expected 400 patients for flu shots and 1,600 for flu treatment. The medical group typically charges $ 50 for a flu...
-
Acme Company produces a single product. Here is data regarding Acme's first year of operations: Selling price, per unit $164 Units produced Units sold Variable costs per unit: Direct materials 9,600...
-
Fiske Corporation manufactures a popular regional brand of kitchen utensils. The design and variety have been fairly constant over the last three years. The managers at Fiske are planning for some...
-
Write a paper about Potential Education issues that the court system may face. (2012) and thought about potential educational issues that the court system may face within the next 10 years. Describe...
-
11 Write simple program for doing picking an object coming through a chute from "from pick up position" and place it at the target position. The robot end effector has to pass through "safe position"...
-
The vending machine subsidies raised a variety of accounting issues for KO and its bottlers: a. How should KO account for this payment? b. How should the anchor bottlers account for the payment? c....
-
Three leadership or management areas where you would like to improve. Three leadership or management areas of your greatest strength. The textbook identifies five distortions in perception . Each of...
-
What is the purpose of a front desk information directory? What sort of information might such a directory contain? How could Hotel Alore benefit from the use of an Information Directory?
-
Consider a particle V0 X=0 incident. V=V II m V=O upon a potential barrier X=L (a) Given a - particle incident from the left write expressions for the wave function in the three regions for the case E
-
Show that Y 1 = 1 and Y 2 = ?x aresolutions of Y*Y" + (Y') 2 = 0, but that their sum Y =Y 1 + Y 2 is not a solution.
-
Data 9.2 on page 540 introduces the dataset Cereal, which includes information on the number of grams of fiber in a serving for 30 different breakfast cereals. The cereals come from three different...
-
Define capability assessment and capability shortfall.
-
Name the main types of federal government programs that provide recovery assistance.
-
Define human vulnerability.
-
A principal and agent relationship requires a(n): a. Formal written agreement. b. Definite time period. c. Express oral agreement. d. Agreement of consent and control. e. Attorney.
-
A manager hires Ernest to supervise all shipments made from the companys central delivery center. Ernests workweek is set by the manager, he is paid a salary, and he gets benefits. What is Ernests...
-
George has been called away by his employer in Europe, so he hires Bartram to take care of his prize garden for the summer months until he returns. George agrees to send Bartram $1,000 per month, and...
Study smarter with the SolutionInn App