Question: Instructions: In x 8 6 Assembly language Coding style is the key objective, follow the instructions & restrictions. Add comments in your main program to
Instructions: In x Assembly language
Coding style is the key objective, follow the instructions &
restrictions.
Add comments in your main program to show what you are doing at
each major step. Connect comments to the bullets in the
instructions.
You are asked to define functions; and then set up a main
program that properly utilizes these functions.
o There are no parameters or return values
The program functions should call C functions in the manner
specified.
Function :
o At the top of the program, reserve space for a
character string
o In the function
Prompt user to type in a string
Print the string & length with a single print
Function :
o Print exactly random numbers, per line
o These are just raw numbers, no need to convert to a
specific range. No seed.
o A number is ODD if the rightmost binary digit is Count
how many of the random values are odd. Print that count.
Use this technique rather than division.
Function :
o Prompt the user and ask for integers using a single
scanf
o Sample output from the function should be similar to::
Up
Up
Up
This must be a single printf: Up
Create a main program that uses the above functions in your
solution.
o Main is mostly just function calls and maybe a bit of
printing.
Sample output ::
Enter string: computer
Text computer has len
Odd count:
Enter numbers:
Count up
@@@@@@@@@@@@@@@@@@@@
Sample output ::
Enter string: table
Text table has len
Odd count:
Enter numbers:
Count up
@@@@@@@@@@@@@@@@@@@@
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
