Questions: 1 680

Answers by our 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 & Filtering

quiz about string



Write a C Program that does the following:

1. Declares a C-String called ‘m1’ and initializes it with the text “Programming is great fun!”.

2. Uses C-function puts() to print this string.

3. Asks the user to enter a string named ‘m2’ (Hint: Use gets() function for this.)

4. Concatenates the two strings and stores the result in ‘m3’.

For example, if the user enters m2 as “Not Really!”, m3 should be “Programming is great fun! Not really!”

5. Inserts the user entered array (m2) into m1 after “Programming is ...”

For the above example, the resultant String would become “Programming is Not really! great fun!”


1.Roll a dice 100 times and store the results in an array.

2.Roll a dice 100 times again and store the results in a different array.

3. The sums of the faces in each time are stored in another array.

4. Show the frequencies of the sum array on the screen. 


Write a C program which does the following; You are given two arrays int array_A[12]; int array_B[8];  Use random number generator to fill the arrays  Display the content of the arrays  Ask the user for a search key and also ask for the searching method o If user choice is L or l, use Linear Search o If user choice is B or b, use Binary Search  Display the index of the search key entered by the user or display the error message if the search key is not found. You should have 5 separate functions for 1. Random Number Generator 2. Displaying the arrays 3. Linear Search 4. Bubble Sort 5. Binary Searc


A record contains name of a footballer, his age, number of games he has played and 

the average number of goals has scored in each match. Create an array of structure to 

hold records of 20 such players and then write a program to read these records. 

Program would able to tell the name of player that has played maximum number of 

matches, the name of youngest player and a player name who scored is lowest.


. If we have the structure of the student given as and suppose we have ten students

 struct student

{

 char name[20];

 int eng;

 int math;

 int phys;

 double mean;

};

a) We want to calculate mean of three subjects of each person. 

b) We want to determine grade based on mean of three subjects and table shown in 

below. Confirm by executing it.

Mean Grade

90 <= x <= 100 S

80 <= x < 90 A

70 <= x < 80 B

60 <= x < 70 C

x < 60 D


Write a menu driven program that depicts the working of a library. The menu options 

should be: 

1. Add book information

2. Display book information

3. List all books of given author

4. List the title of specified book

5. List the count of books in the library

6. List the books in the order of accession number

7. Exit

 Create a structure called library to hold accession number, title of the book, author 

name, price of the book, and flag indicating whether book is issued or not.


 Write a function of print_customer and print list of customers whose age is between 18 and 30, or whose gender is female. Attributes of customer are name, age and gender


Write a function that accepts three arguments a number n, and two characters s and t. The function convert n from s unit to t unit of similar physical quantities. You can choose one of the following types to use in your program:

1. Length

2. Temperature

3. Area

4. Volume

5. Weight

6. Time


i want to time change in this question



Design a C program to remove characters from the first string which are present in the second string.


LATEST TUTORIALS
APPROVED BY CLIENTS