Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please explain to me in simple explanation for questions below in C++ and Thank you! Lab question 1: Provide a high-level algorithm in pseudocode to

Please explain to me in simple explanation for questions below in C++

and Thank you!

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Lab question 1: Provide a high-level algorithm in pseudocode to convert binary to signed decimal below. Apply your algorithm on the following signed 8-bit values and provide the results: 00011101 11110011 Lab question 2: Research Intel64 Processor Architecture and provide a list of new features over Intel IA-32 Processor Architecture. Note: You can use built-in library functions/methods like power to do the calculations, but you cannot use built-in library functions to accomplish these tasks automatically (i.e., cannot use an operation to convert from one base to another base). Exercise 1: Convert your pseudocode from lab question 1 to a high-level language program such as C++ or Java that inputs a string between 2 and 8 bits representing a signed integer and then outputs decimal result if it is possible (assume user will always enter only 0 or 1). Run and submit the following test cases. Sample input and output (5 separate runs): Please enter a binary value --> 00111011 Binary 00111011 is converted to decimal 59 Please enter a binary value --> 1111 Binary 1111 is converted to decimal -1 Please enter a binary value --> 01111 Binary 01111 is converted to decimal 15 Please enter a binary value --> 10 Binary 10 is converted to decimal -2 Please enter a binary value --> 110111011 Number of bits is invalid Exercise 2: Write a program that inputs number of bits between 2 and 8 (b), a signed integer value (n), and then outputs the binary result if it is possible (must output b bits). Run and submit the following test cases. Sample input and output (5 separate runs): Please enter number of bits --> 8 Please enter a decimal value --> 36 Decimal 36 is converted to 8-bit binary 00100100 Please enter number of bits --> 8 Please enter a decimal value --> -18 Decimal -18 is converted to binary 11101110 Please enter number of bits --> 4 Please enter a decimal value --> 5 Decimal 5 is converted to binary 10 Please enter number of bits --> 2 Please enter a decimal value --> 36 Decimal 36 cannot be converted to 2-bit binary Please enter number of bits --> 10 Number of bits is invalid Extra Credit (1.5 points): Research ARM A64 Processor Architecture and then compare Intel IA-64 Processor Architecture vs. ARM A64 Processor Architecture by listing some similarities and some differences

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

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions