Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / This assignment has two parts, I want the coding to be as simple as possible

This assignment has two parts, I want the coding to be as simple as possible

Computer Science

This assignment has two parts, I want the coding to be as simple as possible. send me actual coding in text from.

I cannot write the whole question, so this is just the instructions. I will send you the file as soon as you accept my question.

part 1:

1. The usual header information.

2. The function should be named Ack.

3. Your function should have two arguments: m and n.

4. Your function should return the value of A(m, n) as defined above.

5. Your program must compute the value correctly (A(3, 4) = 125 as an example).

6. Your function should use recursion to compute the proper value.

7. Your program should print the final value in a clear understandable way.

8. Your program should ask the user for values for m and n.

9. Your program should check the user input to be sure that both m and n are nonnegative integers. If they are not, the user should be informed of the error and re-prompted.

part 2:

Write a program that will read in the data from the file ’input.txt’ line by line. For each line, print a string of *’s to the output file such that the number of stars on each line corresponds to the number acquired from the input file for that line. The output file should look something like this

Call the output file ’output.txt’

Requirements for this program are as follows:

1. The usual header information.

2. Your program should open the input file and the output file in the appropriate modes.

3. Your program should read from the input file and write to the output file. If the numbers in the input file are changed, your program should not require modifications to deal with the changes.

4. Your program should close the files correctly.

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions