Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

***DUE TOMORROW 12/09 AT MIDNIGHT PLEASE SOMEONE HELP ME, I DON\'T HAVE TIME TO

ID: 3659773 • Letter: #

Question

***DUE TOMORROW 12/09 AT MIDNIGHT PLEASE SOMEONE HELP ME, I DON'T HAVE TIME TO WORK ON THIS ASSIGNMENT THANK YOU A MILLION TIMES, I ALWAYS RATE****

DESIGN a program for the following problem. The program needs to contain at least three functions in addition to the main function. Treat EACH function designed as a 'mini' program; i.e. you need to complete (1) an IPO chart/table/list, (2) a flowchart or pseudo code, and (3) a desk-checking table for EACH of your functions.

Problem: Complete** a program that utilizes random number generators to play number guessing games with the user. The user has two game choices - Pick 1 and Pick 3 . The table below details the rules for each game. The program should allow the user to continue playing unless the user has won $100 or more already, or the user wishes to end the program (2 points). The program should produce a report indicating the total wining prizes as well as sub total prizes from each game (i.e. one for Pick 1 and one for Pick 3) . Use at least three different functions besides the main function to complete this assignment.

Game Rules

Pick 1: user enters one number within the allowed range
Allowed range: 0 through 25
Winning rule : $2 - number matched (only the highest match can be claimed)

Pick 3: user enters 2 regular numbers and one special number (numbers can be the same or different)
Allowed range:
regular number is 1 through 10, special number is 1 through 25 except 7 and 13
Winning rule:
$5 - only the special number matched
$10 - two regular numbers matched
$50 - one regular number AND the special number matched
$100 - all numbers matched

Explanation / Answer

ormula is W=wavelength x D/s where W is fringe spacing, D is distance to screen from slit, s is slit spacing so... w= 500x10-9 x 1.5 / 0.2x10-3 = 3.75x10-3m centre of bright fringe to 2nd dark fringe is going to be roughly 3 fringe spaces i think. so 3.75x10-3 x 3 = 1.125x10-2m