C Answers

Questions answered by Experts: 1 680

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

Your group visit a shop to get your assignment typed and printed. Draw a flowchart to calculate bill of a job work based on following rates.
• Rate of typing is Rs. 3/- per page
• Rate of Printing is Rs. 5/- per page
User should enter the number of pages in assignment and no. of print out copies your group want.
Obtain two numbers from the keyboard, and determine and display which (if either) is the larger of the two numbers.
WAP in C to represent a sparse matrix in three tuple method.
I need a program that takes many numbers from the user and returns their sum.
Write a program in C programming language, that will open a bitmap image file in read mode, reads its contents, and display it on the screen
Cyber Security is a key issue to protect our daily documents and applications stored

and submitted in various platforms. Having a robust encryption system to our

generated password is very essential in this perspective. Your task is to create a nice

and smooth encrypted password generator. Follow the instructions carefully to build

the password generator.


a. Take a 5 digit integer number from user. If the number is not exactly

of 5 digits, give a warning message to user and exit/abort the program.

b. In case of a 5 digit number, convert the number to a corresponding

character.

c. Finally, generate a 5 length password and show it on screen.
Suppose you have some words and you want to right justify them, that is, align them to

the right. Create a program that reads a word and print it all right justified, in the same

order as they appear in the input.


Input:

The first line of the input will contain an integer N (1 ≤ N ≤ 50) indicating the number

of following words. Each word is composed of up to 50 letters (‘A’-‘Z’ or 'a'-'z') and

will contain at least one letter.


Output:

Print the words padded on the left with space characters so that they are all the same

length as the longest word found in that text.


Sample Input Sample Output

3

Bob

Tommy

Jim


Bob

Tommy

Jim
Suppose you have some words and you want to right justify them, that is, align them to

the right. Create a program that reads a word and print it all right justified, in the same

order as they appear in the input.


Input:

The first line of the input will contain an integer N (1 ≤ N ≤ 50) indicating the number

of following words. Each word is composed of up to 50 letters (‘A’-‘Z’ or 'a'-'z') and

will contain at least one letter.


Output:

Print the words padded on the left with space characters so that they are all the same

length as the longest word found in that text.


Sample Input Sample Output

3

Bob

Tommy

Jim


Bob

Tommy

Jim
Suppose that a customer in a store bought plates and cups. Write a program that reads

the number of the plates and the price of one plate, the number of the cups and the

price of one cup, and the amount the customer paid. The program should display the

change the customer got back.
write a program in c to mimic the “deluser” command on linux. this command will delete system user. it has to handle 2 files “passwd” and “shadow”. both these files will be in some folder specified by an environment variable pfile. the program has to take all arguments as command line arguments (refer man pages for the command line arguments).
LATEST TUTORIALS
APPROVED BY CLIENTS