Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Explain the following in the context of 8086 Microprocessor:

(i) Physical address calculation in code and data segment

(ii) Interrupt vector table and its use

(iii)Based Indexed addressing mode with the help of an example


 Create a program with three methods/functions, The first one takes in n which is the size of an array then creates and populate the array with student names, the second method takes in n which is the size of an array then creates and populate n by 3 array with student marks(The three marks are for test 1 - 3) and finally a method that takes in the two arrays, calculates the final mark of all test and print out the results as indicated below: The first method should return and array of names and the second should return an array all test marks(i.e. 2d array with 3 columns). The third method in addition should also return an array for all the final marks


Create a program with a method that takes a single character and returns true if the character is a vowel otherwise return false.


Write a java program that accepts a given n, then create a 2D array with n rows and n columns. Then for each cell the value should be n+row to the power column. For example if we talk of n=5, then array[0][0] =(5+0)0  = 1. Print out all the values in the array created.


The great circle distance is the distance between two points on the surface of a sphere.



Let (x1, y1) and (x2, y2) be the geographical latitude and longitude of two points.



The great circle distance between the two points can be computed using the following formula:


d = radius * arccos(sin(x1) * sin(x2) + cos(x1) * cos(x2) * cos(y1 - y2))



Write a program that prompts the user to enter the latitude and longitude of two points on the earth in degrees and displays its great circle distance.



The average earth radius is 6,371.01 km.


The angles as given in the formula are all in degrees.



Use negative values


for south and east degrees, positive values for north and west degrees.



Do all you can to make your program structure when running, conform with the sample run given below:



Enter point 1 (latitude and longitude) in degrees:


39.55, -116.25



Enter point 2 (latitude and longitude) in degrees:


41.5, 87.37



The distance between the two points is 10691.79183231593 km

A computer has 16 MB RAM with each memory word of 32 bits. It has cache memory

having 512 blocks having a size of 128 bits (4 memory words). Show how the main memory

address (CA30FB)h will be mapped to cache address, if

8

(i) Direct cache mapping is used

(ii) Associative cache mapping is used

(iii) Two-way set associative cache mapping is used.

You should show the size of tag, index, main memory block address and offset in your

answer.


InstructionsPerform the following items. Mobile users may write their answers on a clean sheet of paper. (8 items x 5 points)

  1. Create a constructor named Exam that assigns "Good luck" to a previously declared String variable named message.
  2. Create an empty overloaded constructor for the Exam class with two (2) String parameters named period and level.
  3. Declare a double-type accessor named getPrice that returns the value of price.
  4. Declare a boolean-type accessor named isFinished that returns the value of status.
  5. Declare a class named Midterm that inherits from the class named Exam.
  6. Create three (3) class declarations to show multiple levels of inheritance. Use the classes named Exam, Midterm, and Essay.
  7. Create a constructor named Midterm that prints "Exam has started." using println(). Its first statement should be a call to a constructor in the parent class.
  8. Given the base class named Quiz and the derived class named Essay, write a statement to show inheritance between these classes.

Provide a method calculatePrice() that calculates and returns the price of this sandwich

according to the rates given in the above table. E.g. the price of a sandwich with 3 bread slices, 2

cheese slices, 2 tomato slices, 3 patties, mustard, no ketchup, no ice berg with grilling will be

calculated as

3 * 20 + 2 * 30 + 2 * 5 + 3 * 70 + 5+ 0 + 0 + 10

 Provide a method applyDiscount(double disc) that calculates the price, applies the discount %

given in the argument and returns the discounted price of the sandwich.E.g. if the method is

called on a sandwich whose real price returned by the calculatePrice function is 550 and

applyDiscount(10) is called, then a ten percent discount will be calculated as 550 * 10/100 = 55.

Now this function will return the discounted price as 550 – 55 = 495. (Please note that this is just

an example, do not hard code these values in your function).


Provide a method calculatePrice() that calculates and returns the price of this sandwich according to the rates given in the above table. E.g. the price of a sandwich with 3 bread slices, 2 cheese slices, 2 tomato slices, 3 patties, mustard, no ketchup, no ice berg with grilling will be calculated as 3 * 20 + 2 * 30 + 2 * 5 + 3 * 70 + 5+ 0 + 0 + 10 . Provide a method applyDiscount(double disc) that calculates the price, applies the discount % given in the argument and returns the discounted price of the sandwich.E.g. if the method is called on a sandwich whose real price returned by the calculatePrice function is 550 and applyDiscount(10) is called, then a ten percent discount will be calculated as 550 * 10/100 = 55. Now this function will return the discounted price as 550 – 55 = 495. (Please note that this is just an example, do not hard code these values in your function).  


You can use Cramer’s rule to solve the following 2 x 2 system of linear equations: Ax+By=E


Cx+Dy=f


X=ED-Bf/AD-Bc


Y= Af-Ec/AD-Bc



Write a program that prompts the user to enter A, B, C, D, E, and F nd display the


result. If AD – BC is 0, report that “The equation has no solution”.



Do all you can to make your program structure when running, conform with the sample runs


given below:



Enter a, b, c, d, e, f: 9.0, 4.0, 3.0, -5.0, -6.0, -21.0


x is -2.0 and y is 3.0



Enter a, b, c, d, e, f: 1.0, 2.0, 2.0, 4.0, 4.0, 5.0


The equation has no solution

LATEST TUTORIALS
APPROVED BY CLIENTS