For Loops Mania Program
Purpose: A program that displays numbers based on the user's input, the program decides whether the counting should be in ascending or descending order.
Program Code: https://replit.com/@EmadA11/ForLoopsMania?v=1
forloopsmania.zip |
Welcome to the For Loops Mania!
Choose a starting value between -1000 and 1000
10000
Invalid Input. Please choose a value between-1000 and 1000
Choose a starting value between -1000 and 1000
-100000
Invalid Input. Please choose a value between-1000 and 1000
Choose a starting value between -1000 and 1000
100
Choose an ending value between-1000 and 1000making sure that it does not equal to the starting value
100
Invalid Input. Please choose a value between-1000 and 1000
Choose an ending value between-1000 and 1000making sure that it does not equal to the starting value
-100
Choose a value that you want to see as a change regardless of whether the program is to count up or down:
5
Do you want the change in value to be inclusive of the values that you chose?
Press Y for YES or N for NO
h
Error. Invalid Input. Please follow instructions
Do you want the change in value to be inclusive of the values that you chose?
Press Y for YES or N for NO
k
Error. Invalid Input. Please follow instructions
Do you want the change in value to be inclusive of the values that you chose?
Press Y for YES or N for NO
y
100 95 90 85 80 75 70 65 60 55 50 45 40 35 30 25 20 15 10 5 0 -5-10 -15 -20 -25 -30 -35 -40 -45 -50 -55 -60 -65 -70 -75 -80 -85 -90 -95 -100
Choose a starting value between -1000 and 1000
10000
Invalid Input. Please choose a value between-1000 and 1000
Choose a starting value between -1000 and 1000
-100000
Invalid Input. Please choose a value between-1000 and 1000
Choose a starting value between -1000 and 1000
100
Choose an ending value between-1000 and 1000making sure that it does not equal to the starting value
100
Invalid Input. Please choose a value between-1000 and 1000
Choose an ending value between-1000 and 1000making sure that it does not equal to the starting value
-100
Choose a value that you want to see as a change regardless of whether the program is to count up or down:
5
Do you want the change in value to be inclusive of the values that you chose?
Press Y for YES or N for NO
h
Error. Invalid Input. Please follow instructions
Do you want the change in value to be inclusive of the values that you chose?
Press Y for YES or N for NO
k
Error. Invalid Input. Please follow instructions
Do you want the change in value to be inclusive of the values that you chose?
Press Y for YES or N for NO
y
100 95 90 85 80 75 70 65 60 55 50 45 40 35 30 25 20 15 10 5 0 -5-10 -15 -20 -25 -30 -35 -40 -45 -50 -55 -60 -65 -70 -75 -80 -85 -90 -95 -100