Creating a fishing game

Assignment Help Other Engineering
Reference no: EM133127410

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)

 

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.

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 to quit and if they say yes, they should be sent to the end. If they say no, they should be given the same input/message box again. This game should be run from a fish icon on the only sheet of your Assignment workbook. You will be turning in beautiful, well-commented code only for this assignment (.xlsm file), although writing out what it should do could still be useful to you.

For the user, playing goes like so:
- The user is asked their name
- The user is asked (by name) if they want to fish
- If they say yes
o They are asked if they want it to be easy, medium, or extreme difficulty
o They are asked with what percent power (0-100) are they casting the line
• If they don't provide an integer in the right range, they are asked repeatedly until they've been asked 4 times (total) or they've given a good number
o Somehow (**) they are then told if they caught a fish or if it got away
o If they caught a fish
• they are told what type it is (out of 5 possible options) and how much it weighed in lbs
• they are asked if they want to keep the fish or throw it back
• if they keep the fish
• they are asked to give the fish a name with at least 4 characters
o if they don't provide at least 4 characters, they are asked to retry until it is done correctly
• they are asked if they want to fish again
o If they didn't catch the fish
• They are asked if they want to fish again
- If they say no, they don't want to fish,
o If they haven't caught any, they are given a "maybe we can fish again later" (personalized) message
o If they have caught fish, they are given a message that lists the number of fish they caught, the fishes names, and the total poundage of their catches in a (personalized) message

In order to determine if they "catch" the fish or not, your program should generate a random number between 1 & 100. If the number they guess is within a +/- range depending on chosen difficulty, then they "caught" the fish, otherwise they did not
- Easy. +/- 30
- Medium: +/- 15
- Extreme: +/- 10

Reference no: EM133127410

Questions Cloud

How much overhead will be assigned to each banana boat ride : The company provides 2,400 banana boat rides and 1,200 sailfish rentals each year. How much overhead will be assigned to each banana boat ride
What is the estimated fair value of the equipment : Hood determines, using their own assumptions, that appropriate discount rate for this estimation is 5%. To the nearest dollar, what is the estimated fair value
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

Reviews

len3127410

4/18/2022 3:49:36 AM

I need help with 4400 Decision Support System class. For the firs assignment I need to send you the devastates. How can I do that?

Write a Review

Other Engineering Questions & Answers

  Electrical methods of power generation

Task 1: Carry out a detailed comparison between mechanical, fluid and electrical methods of power generation for a typical aircraft usage

  Paper on the evolution of the engineering materials

EMG 2201 ENGINEERING MATERIALS TERM PAPER ASSIGNMENT, Dedan Kimathi University of Technology, Kenya. Paper on the evolution of the engineering materials

  Explain the advantages and disadvantage of cvt

Explain the advantages and disadvantage of CVT over manual and automatic transmission and identify and explain some of the new or latest technology being used to improve the performance and durability of CVT in modern vehicles.

  Identify a considers a shortcoming in bps planning

Select one article and identify what that article considers a shortcoming in BP's planning. What part of the contingency planning process came up short (IR, BP)

  Analysis of the secure enterprise wireless network

MN603 - Wireless Networks and Security - Analysis of the secure enterprise wireless network using WPA2 and the RADIUS server

  Explain the spread spectrum technique

Interference is nothing new, but it was managed reasonably with central control. Explain the spread spectrum technique and basic idea behind it.

  How maintenance is performed on your subsystem

ENGG 200 - Engineering Design and Communication - For each of the requirements you have outlined in your requirements document you must

  Why is failure rate important for system engineering

Why is failure rate important for system engineering reliability? Can you elaborate the impact of failure rates on system engineering reliability

  Design an encoder which generates the three bits

A processor has 8 interrupt-request lines, INT0 - INT7, and INT7 has the highest priority and INT0 the lowest.

  Determine the total vehicle delay in the cycle

If the queue clears exactly at the end of the effective green and D/D/1 queuing applies, determine the total vehicle delay in the cycle (in veh-s).

  Determine the airflows in each branch

Determine the airflows in each branch and what are the flows and pressure drops in each of the branches? Remove the restrictions from the previous question.

  Implementation of the digital pid controller

Can the controller tuning constants be changed while the controller is functioning without disturbing the manipulated variable?

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