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

Design a C program to remove the symbol @ present in the sting and then count total number of Capital and Small case of alphabets from the given input string.

Runtime Input :

funDam@EntalS

Output :

3 9


Write a program to carry out the following:

 To read a text file “TRIAL.TXT” consisting of a maximum of 50 lines of text, 

each line with a maximum of 80 characters.

 Count and display the number of words contained in the file.

 Display the total number of four letter words in the text file.

Assume that the end of a word may be a space, comma or a full-stop followed by one 

or more spaces or a newline character.


Write a program to carry out the following:

(a) Read a text file ‘INPUT.TXT’

(b) Print each word in reverse order

Example,

Input: PAKISTAN IS MY COUNTRY

Output: NATSIKAP SI YM YRTNUOC

Assume that each word length is maximum of 10 characters and each word is 

separated by newline/blank characters.


Write a program which writes student name, registration number, semester, section 

and CGPA of a student in a file entitled “student.dat” using structure. Repeat file 

writing for as much number of students as user want.


Write a program which generates the table of a number given by user and then write 

the table in a file named “table.dat”.


Write a program which read characters from keyboard and write in a file until user 

input “enter key” from keyboard.



assign a letter grade based on the test percentage according to the following rules

80 to 100 A

70 to 79 B

60 to 69 C

50 to 59 D

0-49 F

display an appropriate message with the test percentage and letter grade for the student . Accumulate the number and total of all the percentages . after all the input calculate the average percentage from valid percentages entered .display the average percentage, number of passes, number of fails and number of invalid percentages


code a program to get an unknown number of test percentages from the user. accept percentage until the user enter a percentage of -99. this number -99 indicates the end of the data and must not be used as part of the calculations.


Create a structure named student consists of members name ,age and mobileno. create structure variable to use both dot and arrow operator to access structure members.

Runtime Input :









Read two strings from a user to perform concatenate and length operations of a string including and excluding space. Write a program to handle string operations using pointers as reference to the function and without using library functions.

Runtime Input :

Pointers

Are Easy

Output :

Pointers Are Easy

Length of String Including Spaces =17

Length of String Excluding Spaces = 15


LATEST TUTORIALS
APPROVED BY CLIENTS