Multiples of 3
You are given
The first line of input is an integer
N. The next N lines each contain an integer as input.
You are given
The first line of input is an integer
N. The next N lines each contain an integer as input.
You are given N inputs. Write a program to print the first prime number in the given inputs.
The first line of input is an integer
N. The next N lines each contain an integer.
Create a class student which stores name, roll number and age of a student. Derive a
class test from student class, which stores marks in 5 subjects. Input and display the
details of a student.Extend this program to include a class sports, which stores the marks in sports activity.
Derive the result class from the classes ‘test’ and ‘sports’. Calculate the total marks and
percentage of a student.
Create a class student which stores name, roll number and age of a student. Derive a
class test from student class, which stores marks in 5 subjects. Input and display the
details of a student.Extend this program to include a class sports, which stores the marks in sports activity.
Derive the result class from the classes ‘test’ and ‘sports’. Calculate the total marks and
percentage of a student.
Create a class student which stores name, roll number and age of a student. Derive a
class test from student class, which stores marks in 5 subjects. Input and display the
details of a student.Extend this program to derive a class from result from class ‘test’ which includes
member function to calculate total marks and percentage of a student. Input the data for a
student and display its total marks and percentage.
As programs get bigger and more complicated, they get more difficult to read.this is one reason why programmers should use comments in their code