Suppose that you have a computer with a memory unit of 24 bits per word. In this
computer, the assembly program’s instruction set consists of 198 different operations.
All instructions have an operation code part (opcode) and an address part (allowing for
only one address). Each instruction is stored in one word of memory.
a. How many bits are needed for the opcode?
b. How many bits are left for the address part of the instruction?
c. How many additional instructions could be added to this instruction set without
exceeding the assigned number of bits? Discuss and show your calculations.
d. What is the largest unsigned binary number that the address can hold?
Write a program in C++ that ask the user to type a value and check whether it is prime or not.
Write a C++ program that prints on the screen following diamond shape with given series of numbers.
A local zoo wants to keep track of how many pounds of food each of its three monkeys eats each day during a typical week. Write a program that stores this information in a two dimensional 3 × 7 array, where each row represents a different monkey and each column represents a different day of the week. The program should first have the user input the data for each monkey. Then it should create a report that includes the following information: I. Average amount of food eaten per day by the whole family of monkeys. II. The least amount of food eaten during the week by any one monkey. III. The greatest amount of food eaten during the week by any one monkey. Input Validation: Do not accept negative numbers for pounds of food eaten.
Write a program that will predict the size of a population of red ants. The program should ask the user for the starting number of red ants e.g. 2,000,000, their average daily population increase as a percentage of current population e.g., 5%, and the number of days they will multiply e.g. 10 days. Use a do while to display the size of the population for each day. Draw a flow chart and write down a pseudo code before attempting this number. Input Validation: Do not accept a number less than two for the starting size of the population. Do not accept a negative number for average daily population increase. Do not accept a number less than one for the number of days they will multiply.
, defined a class Account to implement basic bank account functionalities. Redefine the Account class to update the deposit, withdraw and display Account information operations. Overload the + and - operators to perform the deposit and withdraw operations, respectively. Overload the + and - operators such that the value that will be used to increase (or decrease) the Account balance can be on the left or right of the operator. Example: savings + 123.45 (or 123.45 + savings), savings – 123.45 (or 123.45 – savings) where savings is an Account object. Overload the insertion operator to display Account information. Overload < and == operators. An Account is considered lower than another when the balance is lower, and equal when Accounts have the same account number. Write a main() method instantiating two Account objects and test (demonstrate) that all the overloaded operators work correctly. The withdrawal operation should be tested at least two times for a successful and unsuccessful withdrawal.
b) DRAM is used in the main memory. To compensate for the slow speed of the DRAM, there are advanced DRAM organizations introduced. Discuss the advanced DRAM organization.
Investigate and discuss the external memory storage trends.
b) DRAM is used in the main memory. To compensate for the slow speed of the DRAM, there are advanced DRAM organizations introduced. Discuss the advanced DRAM organization.
a, Investigate and discuss the external memory storage trends.