What is the average wholesale price of all items

Assignment Help Other Engineering
Reference no: EM133127408

Lottery Game

Goal: To demonstrate mastery of input & message boxes, conditionals, and variable types & declaration.

Your program should do the following:
• Ask user for name
• Ask user for their lottery numbers (4 digits)
o What if they don't give 4 digits?
• Generate a random winning number that the user doesn't see
(4 digits)
o Use a built-in random number generator to generate 4 random integers between 0 & 9, then concatenate them into a string
o Be sure that the randomly generated winning number cannot be "0000"
• Check that the lottery numbers are numbers
• If the user cancels (x's out of the input box) they should "GoTo" the "did not win" output with lottery #0000
• If not, give the user one chance to enter new numbers
• If they still do not give you numbers, make sure they go to the "did not win" option below
• If it is a number, convert it to a string
• Check to see if their given number string matches
o If it matches the entire winning number string in order, this results in a double bonus
o If any 3-4 numbers match in any order, this is a regular (1.25x) bonus
o If only 1-2 numbers match, the winnings have no bonus
o If no numbers match, no win.
• Tell the user, in a personalized message, that they either did or did not win.
o Make sure you reference their lottery number and name in the message for posterity, as well as how much the user won

NOTES:
- The regular jackpot amount is $1,000,000
- The input & message boxes should have titles
- Look up the "GoTo:" command in the cookbook
- Be sure you run through several cases to see that your program does what you expect it to!
- This should be run from a button on the worksheet. The button should say "Play the Lottery" and the worksheet should be named "Assignment2", as well as the sub.
- Repeated numbers will be difficult to deal with (potentially). Make a plan for how you will treat them.

You will be turning in your Exce1NBA (.xlsm) file and a short word document describing at a high level what the different parts of your code does - this description should showcase your understanding of the process and your logic for how your code runs; it does not need to be a line-by-line description. Your code should be broken up into sections using comments, and should contain enough comments that someone looking at it for the first time could follow what is going on. Code without comments will be given a 0.

Use the data set MarketStreetData.xlsx and answer the following questions.

1. What is the average wholesale price of all items?

2. How many items (SKU's) are currently for sale between $7.50 - $10?

3. Create a list of item names that are eligible for a price update and start with "C" OR are less than $6 for their actual updated price

4. Show a list of the stores names and the days of the week and hours they are open

5. Make a unique list of all out of stock items (SKUs) across all stores. Any item that is out of stock anywhere should be on this list.

6. Make a list of all out of stock items (names) and the store (name) they are out of stock at

7. Determine the current stock volume (using the per-item volumes & the number of items in stock)

Attachment:- Lottery Game.rar

Reference no: EM133127408

Questions Cloud

Determining financial statement effects of adjusting entries : Determining Financial Statement Effects of Adjusting Entries - Purchased a machine for $46,000 cash on January 1
What implications does your strategy canvas have : What implications does your strategy canvas have for the strategies of these competitors
Creating a fishing game : You are creating a fishing game. Please note that at any time, if the user closes an input or message box without an answer, they need to be asked if they want
Write an equation giving total costs as a function : The Duff Brewery has fixed costs of $30,000 per month. Each case of beer costs $4.50 to make. Write an equation giving total costs as a function
What is the average wholesale price of all items : What is the average wholesale price of all items and How many items (SKU's) are currently for sale between $7.50 - $10?
Discuss the main objectives of worker compensation : Janice Brown is employed by Starport Hardware Limited as a store clerk. Discuss the main objectives of worker's compensation
How much of lexi form amount is taxable : Lexi received a Form 1099-SA showing a distribution from her HSA of $700. How much of Lexi's Form 1099-SA amount is taxable
Calculate the deferred tax liability and deferred tax asset : Calculate the deferred tax liability and deferred tax asset on 30 June 2022 and prepare the journal entry to record the deferred tax amounts
How much is kollar net cash used in financing activities : Purchased real estate for P550,000 cash which was borrowed from a bank. How much is Kollar's net cash used in financing activities for 2019

Reviews

Write a Review

Other Engineering Questions & Answers

  Where did this ethical theory originate from

Investigate utilitarianismon the internet and answer the following questions: Where did this ethical theory originate from? What are the basic ideas of this theory

  Explain the benefits of establishing solid financial acumen

Review at least three (3) articles on financial acuity.Discuss the benefits of establishing solid financial acumen in a company Discuss your personal experience

  Discuss signature and anomaly-based detection method

Discuss signature and anomaly-based detection,what method would specifically use to hide an attack from each detection method given their individual weaknesses?

  Efficient protocols on cognitive radio network

You need to prepare two slides in which one diagram and in one theory that how we can implement: Topic name- Efficient protocols on cognitive radio network

  What scholars have said about the painting

Start out by not believing any labels or claims about your work. Think of it as just an object placed before you and you are to figure out what it might be.

  Why think engineers working in industry should be licensed

Explain why you think engineers working in industry should or should not be licensed. Note that licensure requires a four-year engineering degree

  What are the main electric use appliances used

What are the main electric use appliances used in usual human day to day life? Is it possible to replace them with renewable energies what are the benefits?

  Determine the maximum weight of the bucket

Determine the maximum weight of the bucket that the wire system can support so that no single wire develops a tension exceeding 100lb.

  Determine the transfer function of the system

Determine the transfer function of the system and determine and plot the amplitude response of the system - Sketch the poles and zeros of the transfer function in the complex plane. Is the system BIBO stable?

  Write two pages about coras risk assessment platform

Write two pages about each of the following list (Open-source Risk Management tools): CORAS Risk Assessment Platform, ISO 17799 Risk Assessment Toolkit.

  Provide a description of each pin of the dip

Provide a description of each pin of the DIP and explain how each pin is used to interface with the microcontroller.

  Find the charge distribution on a cylindrical conductor

Using MATLAB/OCTAVE and the Method of Moments (MoM), find the charge distribution on a cylindrical conductor

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