Question: Using Keil uVision 5 , Part I: ARM Assembly Code Requirements The program is to prompt the user to enter a number between 2 and

Using Keil uVision5, Part I: ARM Assembly Code Requirements
The program is to prompt the user to enter a number between 2 and 100. Reject any invalid user inputs and terminate the program if invalid inputs are entered.
Print each even number from 2 to the user entered number. Sum these even numbers and print the sum. Print each odd number from 1 to the user entered number. Sum these odd numbers and print the sum. Exit the program when the output is complete.
The output of your program should look something like this:
Enter an integer between 1 and 100.
You entered 10.
The even numbers from 1 to 10 are:
2
4
6
8
10
The even sum is: 30
The odd numbers from 1 to 10 are:
1
3
5
7
9
The odd sum is: 25
Your program needs to be well documented.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!