1. Write a program that prints to the screen all the even numbers from 2 to 100 and that starts a new line after every multiple of 20 (20, 40, 60, & 80). Save this file (class) as EvenNums.
2. Write a program that asks the user to type a 1,2,3, or 4. When the user types a 4, the program ends. If the user types 1,2, or 3 the program displays “Good job!!” and then asks the user for another input. When the user types any other number the application issues an error message and then asks for another input. Save this file (class) as Input123.
3. Write a program that prints every integer value from 1 to 20 along with the squared value of each integer. Save this file (class) as TableofSquares.
4. Write a program that sums the integers from 1 to 50 (1+2+3+…..+50). Save this file (class) as Sum50.
This assignment has been answered 3 times in private sessions.
Or buy a ready solution below.
© 2023 Codify Tutor. All rights reserved