Program specifications:
Declare an array to store up to 10 integer percentage values.
Ask the user to input 10 percentages (range 0–100).Verify that the input is valid.Note that only valid (0–100)percentages.
If the user enters an invalid percentage:display an error message and do not store or process the invalid value.After the error message,prompt for the next input.
Once all 10 valid percentages are entered, calculate the average percentage and display it.
Calculate and display the highest and lowest percentage obtained.
Then display all percentages that are equal to or more than the average.
Lastly,display all 10 values entered by the user together with their letter grade values,one percentage and letter grade per line.
Determine the letter grade based on test percentage
TEST PERCENTAGE GRADE
From 80 to 100 ‘A’
From 70 to 79 ‘B’
From 60 to 69 ‘C’
From 50 to 59 ‘D’
0-49 'F'Develop a C program to copy the content of one file and store that content in another file
Write a C program to print the string and its length using functions
Write a following program and observe result:void main (void){char ch='A',str[]="My SMIU";int num= 2;float fnum= 12.47;clrscr();printf("character= %c\n",ch);printf("string= %s\n", str);printf("integer= %d\n", num);
Write a program which take input Name, Age, Height, Gender and print them by using Escape Sequences and Format Specifiers.
In online journal system, the user has to give detail information about their abstract of the manual script before upload of source document. The abstract submitted by the author should not more than 300 words. The journal system uses program to count the number of vowels, consonants, digits and symbols in a given paragraph. Write a C program to count the number of vowels, consonants, digits and symbols using pointers.
Runtime Input :
1=>see-programming.blogspot.com
Output :
No. of vowels: 8
No. of consonants: 17
No. of digits: 1
No. of symbols: 1
Others: 4
Create array of structure for students to store 40 student details. The
student structure should contain studid , studname, mark1, mark2
and mark3. Compute grade based on subject mark, The criteria for
grade is sample for mark1
< 50 grade = ‘F’
50 to 59 grade = ‘D’
60 to 69 grade = ’C’
70 to 79 grade = ‘B’
80 to 89 grade = ‘A’
90 to 100 grade = ‘S’
These grade has to be computed for 40 students and the entire array
of structure is copies to the file T1.Txt using fwrite() command. and
the content from the file T1.txt is read using fread() and all student
information’s are displayed in the system.
The address of memory location num1 and num2 are passed to function and the pointers *a and *b accept those values. So, the pointer a and b points to address of num1 and num2 respectively. When, the value of pointer is changed, the value in memory location also changed correspondingly. Write a program to swap the values in num1 and num2 using *a and *b. Use + and - operator for swapping
Runtime Input :
5
6
8
Output :
5
Write a file program to merge the content of source1.txt file and
source2.txt file to destination.txt file and display the fallowing from
the destination file.
• Count number of lines
• Count number of words
• Count the frequency of occurrence of the words
source1.txt
Hello Welcome to KSRCT
Hello Welcome to KSRCE
source2.txt
Hello Welcome to KSRIET
Hello Welcome to KSRCAS
Destination.txt
Hello Welcome to KSRCT
Hello Welcome to KSRCE
Hello Welcome to KSRIET
Hello Welcome to KSRCAS
Output display after reading from destination.txt file
Number of lines : 04
Number of words: 16
Frequency of words
Hello appears 4 times
Welcome appears 4 times
to appears 4 times
KSRCT, KSRCE, KSRIET and KSRCAS appears 1 times
Mr. Rajesh and his friends plans for trip for Deepavali Holidays, as there are multiple opinions, they have some choices, depending on the choice they plan to go to that particular place. The choices are given below
Choice
Place
Kerala
2
Hyderabad Film City
Kodachadri
3
Otherwise
Following are the requirements
Read the choice
1. 2. Compare the choice
number
with the given
3. Display the Place name appropriately for the choice
selected