Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Must submit/paste/screenshot everything stated in submission requirements for upvote, thank you For Q2 and Q3, please submit the following items. Write the algorithm in a

Must submit/paste/screenshot everything stated in submission requirements for upvote, thank you
image text in transcribed
For Q2 and Q3, please submit the following items. Write the algorithm in a flow chart as you saw in the screen. The arithmetic operations are limited to only addition and subtraction. You can use chart software such as Lucidchart, powerpoint, or Visio. Please export it to a pdf file (eg, Q2.pdf) Implement the algorithm in C. The arithmetic operations are limited to only addition and subtraction. (e.g., Q2.c) A screenshot of the final execution states for a "test case" of your C code. Note your program needs to be general to take any input values using input instructions. However, a test input is used just to create a screenshot. (c.g. 02.PNG) Implement the algorithm for MARIE architecture (c.g., Q2_MARIE.mas) A screenshot of the final execution states for a "test case of your MARIE assembly code. Note your program needs to be general to take any input values using input instructions However, a test input is used just to create a screenshot (e.g., Q2 MARIE.PNG) The numbers of instructions in Q2_INSTRS.docx (Word document) Q2. Logarithm (Iterative algorithm) Get a user input of two positive integer numbers: A and B where A is a base and B is an exponent of A Calculate C-Log base A of B Print Test case: A-2, B-16 Output should be 4 Q3. Factorial (Iterative algorithm) Get a user input of one non-negative integer numbers: A Calculate C is a factorial of A . Print Test case: A4 Output should be 24 For Q2 and Q3, please submit the following items. Write the algorithm in a flow chart as you saw in the screen. The arithmetic operations are limited to only addition and subtraction. You can use chart software such as Lucidchart, powerpoint, or Visio. Please export it to a pdf file (eg, Q2.pdf) Implement the algorithm in C. The arithmetic operations are limited to only addition and subtraction. (e.g., Q2.c) A screenshot of the final execution states for a "test case" of your C code. Note your program needs to be general to take any input values using input instructions. However, a test input is used just to create a screenshot. (c.g. 02.PNG) Implement the algorithm for MARIE architecture (c.g., Q2_MARIE.mas) A screenshot of the final execution states for a "test case of your MARIE assembly code. Note your program needs to be general to take any input values using input instructions However, a test input is used just to create a screenshot (e.g., Q2 MARIE.PNG) The numbers of instructions in Q2_INSTRS.docx (Word document) Q2. Logarithm (Iterative algorithm) Get a user input of two positive integer numbers: A and B where A is a base and B is an exponent of A Calculate C-Log base A of B Print Test case: A-2, B-16 Output should be 4 Q3. Factorial (Iterative algorithm) Get a user input of one non-negative integer numbers: A Calculate C is a factorial of A . Print Test case: A4 Output should be 24

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions

Question

6. Is all Internet training the same? Explain.

Answered: 1 week ago