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

  1. The number of lines that can be printed on a paper depends on the paper size, the point size of each character in a line, whether lines are doublespaced or single-spaced, the top and bottom margin, and the left and right margins of the paper. Assume that all characters are of the same point size, and all lines are either single-spaced or double-spaced. Note that 1 inch ¼ 72 points. Moreover, assume that the lines are printed along the width of the paper. For example, if the length of the paper is 11 inches and the width is 8.5 inches, then the maximum length of a line is 8.5 inches. 


Write a program that calculates the number of characters in a line and the number of lines that can be printed on a paper based on the following input from the user: 

a. The length and width, in inches, of the paper. 

b. The top, bottom, left, and right margins. 

c. The point size of a line. 

d. If the lines are double-spaced, then double the point size of each character.





Give an array of integers representing measurements in inches, write a program to calculate the total of measurement in feet ignore the measurement those who are less than a feet (e.g10)

Rahul lives in City A and would like to travel to City B for work. There is a shuttle service for people in these cities which has a fixed schedule. The schedule for City A is a list of boarding times(at City A) and departure times(from City A) for each bus.

Note: No one is allowed to board a shuttle after the boarding time.

He arrives at time t and sometimes has to wait at the station. You are given a list of arrival times for n days.

  1. Devise an algorithm to find him the shuttle with the least waiting time. (waiting time = boardingj - t , where j is the next shuttle. And boardingj >= t ) for each ti
  2. If he also has access to the travel time of each shuttle. Can you help him find the shuttle which will help him reach his destination at the earliest ?

Return an array of shuttle indexes that Rahul took for n days.



Task 2:

Write C++ program, with multiple functions, that reads text, txt, from the file and accepts two patterns, pat and rpat, from the user. The program replace all occurrences of pat from the txt with rpat. The program output shall be as shown below in the example.


COVID-19 has triggered panic buying from Ghanaians with the expectation
that there will be declaration of lockdown after the closure of school across the
country. Retailer are increasing the prices of their goods on the shelf based on
the time it stays on the shelf. The management of “Brutus Stores” have decided on this price policy. The price of any item which is expected to sell within a
week should be increased by 20%. However, if an item stays on the shelf after a week but less than or equal to two weeks the price should be increase by 15%. The price of any other item that stays on the shelf for more than two weeks should be increase by 2%. As a programmer you have been consulted to
develop a program that will:

a. Request for item name, current price in GHc, expected duration on shelf
b. Compute the retail price of the item
c. Display the results
d. Explain your results

Design an 8-bit carry save array multiplier using Verilog HDL. Simulate it with 4 test cases. Prepare a .PDF by including the Verilog codes along with the screen shots of the simulation outputs. Attach the .PDF.


What the difference between EIGRP and RIP Routing Protocol. Explain it detail (5 marks)


give two practical examples in business environment how feedback fits into input-processing- output-storage chain in a computer based information systems


Suppose that overSpeed and fine are double variables. Assign the value to fine as follows: If  0 < overSpeed <= 5, the value assigned to fine is $20.00; if 5 < overSpeed <= 10, the  value assigned to fine is $75.00; if 10 < overSpeed <= 15, the value assigned to fine is  $150.00; if overSpeed > 15, the value assigned to fine is $150.00 plus $20.00 per mile over  15.

Create a class complex which store real and imaginary part of a complex number. input

 5 complex number & display it.


LATEST TUTORIALS
APPROVED BY CLIENTS