Brainstorm how to find and return a group of random numbers. You also need to consider that your function must return either Powerball or regular Florida lottery numbers but not both. Keep in mind that your final project must contain the following: a. At least one function. b. Any functions created must use arguments and parameters. c. A value must be returned for each function. d. You must not use “main code” variable inside of a function; you must pass values in as arguments and out as returned values. e. All user prompts must be validated using a while loop. 4. Using the flowcharting skills learned in Homework #1, create a detailed flowchart for your process. Save this as a PDF into your Functions Assignment folder and commit it to your GitHub Repo. Name this file Lastname_Firstname_Functions_Flowcart.pdf 5. Once your flowchart is created, make sure you follow the organization mentioned in the videos to create an HTML file, and a js folder with a js file inside of the Functions_Assignment folder. a. Place comments at the top of the JavaScript file that contain your name, class and term, and the assignment. b. Following your flowchart, write your code to match. Make sure to comment every line so that you are explaining exactly what you are trying to do. c. Continuously commit your files to your GitHub repo throughout the development process. You should have a minimum of 5 meaningful commits for this assignment. d. Your code should give the user meaningful output. So, after you have gathered the numbers, your code should report back to the user the final values with a console.log(). If your function returns the numbers for the Powerball, remember that the output should indicate that the last number is the Powerball. e.g. console.log(“The numbers are … and the Powerball is …”); e. After your code is complete, make sure you test your final files. Try typing in different values to see what you get. Make sure it returns the correct number of random number based on the prompt. Put the numbers returned in a multilined comment at the bottom of your js file. e.g. /* Powerball numbers: 24, 56, 12, 5, 7 with PB 34 FL lottery numbers: 12, 6, 45, 87, 23 */ 6. Please note that you are not required to do your flowchart first. That is, you may complete your code and then create your flowchart. You may also choose to create your flowchart at the same time you’re creating your code. The important thing to remember is that logic of your flowchart must match the logic of your code and vice versa. CRITERIA: Make sure your project follows this list of criteria: • You will need to create code that returns random numbers for each group of lottery numbers. • Keep in mind that the regular Florida lottery has six random numbers between 1 and 53; the Powerball lottery has five random numbers between 1 and 59 and a Powerball between 1 and 35. • Each random number must be different; a lottery will never have two of the same number unless it is the final Powerball number. • You should have at least one prompt to ask the user if they want the numbers for the Florida lottery or for the Powerball lottery. o Each prompt should be validated using a while loop. • The result should appear in the browser’s console and include an explanation of the result. o Good example of console.log: The volume of the sphere is 26 feet cubed. o Bad example of console.log: 26 • Final output should use string concatenation. • Comment every line of code (describe what each line is doing in English). Do NOT just label sections of your code. • Your code must contain at least one function • Each function must use arguments and parameters. • A value must be returned for every function you create. • You must not use global (“main code”) variables inside of a function; you must pass them in as arguments.

Don't use plagiarized sources. Get Your Custom Essay on
For as low as $13/Page
Order Essay
Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
error: Content is protected !!
Live Chat 1 763 309 4299EmailWhatsApp

Order your essay today and save 20% with the discount code WELCOME