Topic: If Else
21. You can determine where a year is a leap year if the year is divisible by 4. However, years that are also divisible by 100 are not leap years unless they are also divisible by 400, in which they are leap years. Write the psuedocode to determine for a year entered to be a standard year or a leap year. You should be able to repeat the entering of years as long as 0000 is not entered.
See more
34. Create a number guessing name. The random number to guess should be between 1 and 100. Keep all the guesses made in an array. Count the number of guesses. As the user guesses, tell the user if they are too low or are too high.
See more
39. Gross Pay
Determine the gross pay of an employee. Accept two numbers from a form, and those numbers are hours worked and hourly wage. If the number of hours is over 40, then the pay is time and half. Output the weekly gross pay of an employee.
See more
42. Create a 0 player rock paper scissors game. Why 0 players? Make the computer play against itself. Run the process 3 times.
See more
22. Collect 10 temperatures in an array. Then determine in output if the temps are hot (<90), warm (68-89), cool (67-40), or cold (<39). As part of the output, show the Celsius value as part of the output.
Celsius formula to convert from Fahrenheit:
C = (F - 32) * (5/9)
See more
46. Enter a max number and then complete the sum from 1 to max.
See more