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.
Posted on by admin
Project
WHAT OUR CURRENT CUSTOMERS SAY

- Google

- Sitejabber

- Trustpilot
Zahraa S
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!

Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.

Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.

Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!


Jermaine Byrant
Nicole Johnson



