Question
A external JavaScript required A bug collector collects bugs for 7 days. The program asks the user how many bugs they have collected on each
A external JavaScript required
A bug collector collects bugs for 7 days. The program asks the user how many bugs they have collected on each of the seven days (using a prompt)
a. These values should be added into a running total of bugs collected
b. The tallying of the bugs should be performed with a loop
c. At the end, show the total number of bugs collected to the user in a GUI output
Rubric:
1. Appropriate loop structure used.
a. Depending on the selected program, some will require for-next, while others will require while loops
2. Correct Loop Termination
a. Loop Ends when it should, and does not have an off by one error
b. Is not an endless loop
3. Logic of mathematical process is correct
a. i.e. each iteration changes the correct variables and/or performs the correct calculation
4. Appropriate feedback to user with concatenation
a. Use of a GUI element
5. Check for invalid values that might crash the loop
6. CSS/HTML designed site with title, header, paragraph describing the script and background color
Atleat 3 files required
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started