Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i will only give upvote if all parts are answered, thank you For Q2 and Q3, please submit the following items. Write the algorithm in

i will only give upvote if all parts are answered, 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

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part I Lnai 8724

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448475, 978-3662448472

More Books

Students also viewed these Databases questions

Question

=+How might these stem from country and regional cultures?

Answered: 1 week ago