Write the MIPS assembly code that creates the 32-bit constant 0010 0000 0000 0001 0100 1001 0010 0100two and stores that value to register $t1, and print the value of $t1 to stdout in binary - i.e., as a 32 bit sequence of '1's and '0's (use the MIPS syscall functionality for I/O).
Please don't answer if you don't know how to solve it, and don't just copy the previous answer.
In: Computer Science
create a stack class based on an array of type double of fixed size. In the class,
The array should have the default size of 5.
The array size should be settable via a constructor.
The following methods must be implemented:
push – inserts a value a the top of the stack
pop – returns the top value, removing it from the stack
isEmpty – returns true if the stack is empty, false otherwise
isFull - – returns true if the stack is full, false otherwise
Please notice you must use an array not an arraylist or any other list. Im having trouble with a couple parts of it. Thanks
Also use java
In: Computer Science
what are the different factors affecting the effectiveness of data communication? justify your reason for choosing these factors.
In: Computer Science
USE JAVA PLEASE
A Phone class has 4 instance variables
Model name ("iPhone12","Galaxy")
RAM (number of gigs such as 8 and12)
Storage (number of gigs such as 128 and 512)
Screen of type class Screen as described below.
A Screen has 3 instance variables:
Screen type ("AMOLED", "LCD")
Screen size (decimal number such as 6.2 and 10.1)
Screen ppi (448, 630, 300)
Q1) Code two class-shell for both classes. The names and types of the instance variables have deliberately been left up to you (14m)
Q2) Code a 6-parameter contractor for class Phone (12m)
Do not rely on any auto-initialisation
You can assume mutators exist for all instance variables
Q3) Code the toString method that should print all the specifications of the object that is invoked on. (8m)
Q4) Code a method called normalize() that accepts an array of integers 'intAr' and returns an array of doubles 'doubleAr'. The returned array must have the same length as the input. The method should convert any range of values in 'intAr' into 0..1 range. (10m)
For example:
if intAr=[-100,-50,0,50,100], doubleAr=[0.0,0.25,0.5,0.75,1.0]
How to normalize data?
where:
doubleAr[i] is the ith element in the output array doubleAr
intAr[i] is the ith element in the input array intAr
min(intAr) is the minimum value in the input array intAr
max(intAr) is the maximum value in the input array intAr
In: Computer Science
What are the limitations of Karnaugh Maps? Explain with an example
In: Computer Science
Write a pyhton program to read from a file the names and grades of a class of students, to calculate the class average, the maximum, and the minimum grades. The program should then write the names and grades on a new file identifying the students who passed and the students who failed. The program should consist of the following functions:
a) Develop a dataInput() function that reads data from a file and stores it and returns it as a dictionary. The function has one argument which is the name of the file where the data is entered. Each line on the file should contain the record of one student holding his or her name and the corresponding grade.
b) Write a second function dataStats() that iterates over the list or dictionary and determines the statistics on the average, minimum, and maximum of the grades and return these statistics as a list.
c) Write a third function dataEval() that will iterate over the dictionary or list and write on a new file named Class_Results.txt the names of students whose grades are greater or equal to 60, preceded by the message “Passing Students”. Then the names of students whose grades are lower than 60 should written on the file, preceded by the message “Failing Students”. Finally, the class statistics should be written on the file, also preceded by the message “Class Statistics”.
d) Write a main program that coordinates the operation of the three developed functions. The program should inform the user of what is its function and request from the user the name of the file where class names and grades are written. Form you own data file, Class_Data.txt that have the following entries : Galia, 96 -Elias, 81 -Hussein, 84 -Joseph, 80 -Tarek, 93 -Joe, 81 -Fidele, 71 -Shant, 95 -Ali, 67 -Firas, 70 -Giorgiou, 55 -Hashem, 72
In: Computer Science
Discuss the Hamiltion circuit 1) sequential algorithm; 2) parallel algorithm; 3) discuss its time complexity.
In: Computer Science
Write a pyhton program and to evaluate polynomials in general and test it on the following: ? 4 − 3? 3 − 39? 2 + 47? + 170 = 0
a) Develop and test a function named evalPoly() that evaluates a polynomial at a given value of the variable. The function receives two arguments: a list of the polynomial coefficients, and the value of the variable. It returns the result of the evaluation as a float. Use your function to evaluate the polynomial at ? = -5.2, -5.0, -1.8, -1.6, 2.6, 2.8, 7.0 and 7.2. What do you conclude about the solutions to the equation above?
b) Write a second function named solvePoly() that seeks a solution of the polynomial between two values of the variable where the function has changed sign. This function should receive the list of coefficients, the two values of the variable between which there is a solution. It should return the value of the variable at which a solution was found. This function may be based on an exhaustive search, a bisection search, or on Newton-Raphson’s method. Select a method with some justification.
In: Computer Science
Write a python program to read from a file the names and grades of a class of students to calculate the class average, the maximum, and the minimum grades. The program should then write the names and grades on a new file identifying the students who passed and the students who failed. The program should consist of the following functions: a) Develop a gradesInput() function that reads data from a file and stores it and returns it as a dictionary. The function has one argument which is the name of the file where the data is entered. Each line on the file should contain the record of one student holding his or her name and the corresponding grade.
b) Write a second function gradesAssess() that iterates over the dictionary and determines the statistics on the average, minimum, and maximum of the grades and return these statistics as a list.
c) Write a third function gradesReport() that will iterate over the dictionary and write on a new file named Class_Results.txt the names of students whose grades are greater or equal to 60, preceded by the message “Passing Students”. Then the names of students whose grades are lower than 60 should be written on the file, preceded by the message “Failing Students”. Finally, the class statistics should be written on the file, also preceded by the message “Class Statistics”.
d) Write a main program that coordinates the operation of the three developed functions. The program should inform the user of what is its function and request from the user the name of the file where class names and grades are written. Form you own data file, Class_Data.txt that has the following entries : Raja, 90 Yahya, 50 Jad, 70 Hussein, 71 John, 97 Tony, 98 Nasser, 78 Maroun, 70 Pamela, 78 Maroun, 70 Ali, 74 Firas, 85
In: Computer Science
Write a program in python to calculate the value of cos(?) using its Taylor series expansion:
?2 ?4 ?6 ?8 cos(?)=1− + − + ...
The program should consist of the following functions:
a) Develop and test a cosCalc() function that receives as an argument, of type float, the value of the variable and returns the result as a float also. Include 20 terms maximum from the series, or until the value of a term is less than 1e-8. b) Write a main program to invoke the function and calculate and print the values of
2! 4! 6! 8!
?2?
cos (− ), cos(−?), and sin ( ).
In: Computer Science
In: Computer Science
Create one Main Use Case Diagram & five detailed use case diagrams(*use any online or offline tool while creating*) for BigBasket platform. These are the functional requirements or features I have picked out from the Bigbasket platform, you need to prepare use cases for these on:
FE-1: Order variety of products from Web-based/Mobile based application which is to be delivered.
FE-2: Dynamically add, delete, view, and modify the selected items from the cart.
FE-3: BB wallet - It’s a closed system pre-paid
payment instrument issued by IRCPL, alternatively, the customers
can save cards for future transactions or can also pay
through
UPI and other wallets like Paytm.
FE-4: BB star - Buy a subscription to become a premium member of Big Basket in order to enjoy added benefits.
FE-5: Chabot - Get customers query resolved by a trained bot and if the issue persists then redirect to Big basket front desk executive for better solutions to the issue.
FE-6: Different filters (shop by category, brand, price, discount, weight) must be there for ease of shopping.
Also, please write a detailed description of each one of the use case diagrams.
****** This is the complete information of the task to be done, there is no further information ******
In: Computer Science
In one of the buildings that your company has installed a network, some of the devices have stopped working completely. The devices do not even turn on. Your manager has requested that you investigate the possible causes of the damaged devices. Advise on what can be installed so that other devices can be protected. Explain two ways to achieve this
In: Computer Science
6.explain characterizing schedules based on recoverability and serialibality.(50marks)
Need own answer and no internet answers r else i il downvote nd report to chegg.Even a single is wrong i il downvote.its 50marks question so no short answer minimum 10page answer required and own answer r else i il downvote.
Note:Minimum 10page answer and no plagarism r else i il downvote and report to chegg.Minimum 10 to 15page answer required r else dnt attempt.strictly no internet answer n no plagarism.
its 50marks question so i il stricly review nd report
In: Computer Science
Without using extra data structures, write a recursive
method
recursiveProdcutQueue ( Queue <Integer> q) in Test class
(in
stacks_queues package) that receives a queue of integers and return
the
product of the integers inside the queue. Then don’t forget to test
the
method in the main.
Make sure not to change values in queue after calling the method
use java eclipse please
In: Computer Science