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

We want to calculate the total marks of each student of a class in Physics, Chemistry and Mathematics and the average marks of the class. The number of students in the class are entered by the user. Create a class named Marks with data members for roll number, name and marks. Create three other classes inheriting the Marks class, namely Physics, Chemistry and Mathematics, which are used to define marks in individual subject of each student. Roll number of each student will be generated automatically.
A man goes for shopping to buy vegetables. He picks up the basket and goes to the shelf of vegetables. The tray can hold up to 10kg only. So he carefully picks up the vegetables needed for one week and fills his basket. When he reaches the end of shelf, he finds he had filled only 8.5 kg. So he decides to refill with some more vegetables for his need. Write a C program to implement the refilling process using linked list.

Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Write an array of 10 students in the collage. Write two functions; one for input, second for output and determine following in main() (a) write a program to print names of all students who joined in a particular year. (b) Write a program to print the data of a student whose roll number is given assignment


Write a program to find the maximum difference between two adjacent numbers in an array of positive integers


Implement a program to read a set of integers into a file and find odd and even numbers and store into separate files. Note: Data.txt Even.txt Odd.txt


Runtime input :

1

2

3

4

5

6

7

8

9

10

-1


Output :

1 3 5 7 9

2 4 6 8 10


Write a program to read character by character from the user and write them into a file. Read the same data from the file and display that on the screen(use fputc(), fgetc(), rewind() functions).

given an input string Ayodhya your C program to count the number of vowels and consonants and print the frequency of occurrence of each vowel and consonant delete the vowels in the same input string and display the updated string

Sample input:

Enter the input string: Ayodhya

Sample output:

No of vowels:3

Frequency of occurrence:A-2;o-1

No of consonants:4

Frequency of occurrence:y-2;d-1;h-1


write a C program to convert the string "CEASER " to "HJFXJW "without using inbuilt function


given a matrix of size m×n with values ranges from 100 to 150 . write a C program to generate

0-1 Matrix based on threshold value of 125 . If the matrix element is greater than the threshold set the element to 1 else set the element to 0. print the input Matrix and generate the 0-1 Matrix (use function with 2D array and threshold as arguments)

Sample input:

Input matrix: 120 117 136

110 150 128

135 114 149

Sample output:

0 0 1

0 1 1

1 0 1


determine the cumulative sum of n floating point numbers read a new number into the computer during each call to recursive function

Sample input:

n=3

Enter the number:0.8

Enter the number:0.1

Enter the number:0.2

Sample output:

Cumulative sum=1.1


LATEST TUTORIALS
APPROVED BY CLIENTS