Questions: 1 978

Answers by our Experts: 1 850

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.   Write a Linux shell script to perform the following tasks: 

 

a.   Display current date and time 

b.   Display current working directory 

c.   To check whether a sample file is a directory 

d.   Display details of all files/directories in current working directory 

e.   To check whether a sample file is readable, writable, and executable. 

 

Provide the shell script along with the sample output screenshot. Refer to the attached rubrics as a guide. Print a copy of the rubrics to be attached with this lab report.  


Write a program to read two alphabetical characters and print all the characters in-between them including the given ones. Consider the 26 alphabets in cyclic order.

Note: use lower case letters for input and output.

For example:


Test Input Result

1 k o k l m n o

2 y a y z a


For a given number N(0<N<100), little johnny wants to find out the minimum positive integer X divisible by N,where the sum of digits of X is equal to N,and X is not equal to N

A MPU6050 accelerometer is to be used to determine if the vehicle is level or titled by 5, 10, 20 and 30 degrees in X or Y direction. 


Write a code for:

An audible warning is required when the angle exceeds 30 degrees. A non-contact sensor (LDR) is to be used to check if the load is positioned in the egg holder 6 and a visual indicator (LED) must specify the status.


if the vehicle is level or titled by 5, 10, 20 and 30 degrees in X or Y direction


write a code include a visual indicator of the angle (RGB LED) whereby the colour changes based on the tilt angle at the intervals specified.




Write a menu driven program which has the following options:

1. Factorial of a number

2. Prime or not

3. Odd or Even

4. Exit

Once a menu item is selected the appropriate action should be taken and once 

this action is finished, the menu should reappear. Unless the user selects the “Exit” 

option the program should continue to work.


While purchasing certain items, a discount of 10% is offered if the quantity

 purchased is more than 1000. If quantity and price per item are input through the

 keyboard, create a program on it


A man takes a job for 30 days. His pay for the first day is calculated as square

of his joining date. Assume he’s

joining on 3rd of the month, then his starting

pay is Rs 9/. After that his pay for the consecutive days are twice the pay of

previous day .i.e. each day’s pay is twice the pay of previous day. Write a c

program using functions to find his total pay for 3

0 days.



An online retailer sells five different products, whose retail prices are shown in

the following table:

Product number

Retail price

1

$2.98

2

$4.50

3

$9.98

4

$4.49

5

$6.87


Write a C program that reads a series of pairs of input as follows:

a.

Product number

b.

Quantity sold for one day

Write a program to help and determine the retail price for each product. Calculate

and display the total retail

value of all produ



Identifying a compressed gas cylinder is

based on the first letter of the

cylinder’s color printed on the cylinder. For Example

‘Y’ or ‘y’ for yellow, ’O’

or ‘o’ for orange and so on. Cylinder colors and associated contents are as

follows.

Orange

--

Ammonia

Brown

--

Carbon monoxide

Yellow

--

Hydrogen

Green

--

Oxygen.

Write a C program using switch case to identify the type of gas compresse

d

in a given cylinder.



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS