Problem #1 (90 pts) Write a program that first capitalizes and then adds line numbers to input provided via the standard input. The program will use the capitalizeprogram to turn standard input into capitalized text, and cat –nto add line numbers. The capitalizeand cat –n programs rely on standard input and output for I/O. For this problem you can assume all system calls are successful (you don’t need to handle errors). Use execlp in your implementation.

4
Problem #2 (110 pts)
On the next page, write assembly code that corresponds to the
count
function below.
For this problem:
You only need to provide assembly code for the count function.
Do not provide assembly code for
main() and do not provide assembly code for the global variables.
We have provided the main function
to illustrate how the function can be used.
Your solution must be recursive otherwise you will receive no credit.
Although the example below relies on the
“hello” string, your a
ssembly code must work for any string
of any length, and for any needle character.

