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.
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.
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.
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.