Student Management System using Function Overloading using OOP in C++
Create a class for students containing data members: – Roll_no, name, marks1, marks2, and marks3.
Create a class for students containing data members: – Roll_no, name, marks1, marks2, and marks3.
Calculator that performing as calculator which allows all Arithmetic Operators with operands as input #include<iostream.h> #include<stdlib.h> #include<conio.h> int calculator(int a,char c,int b) { int h,w,x,z; float y,m=0.0; z=(a+b); x=(a*b); w=(a-b); h=(a%b); y=(a/b); m=y; switch(c) { case ‘+’: cout<<a<<“+”<<b<<“=”<<z<<endl; break; case ‘-‘: … Read more
/* Fill up an array,print the array,count number of values,count the number of odd,count the number of even,sum of odd ,sum of even,average,find largest value,find smallest */ #include<iostream.h> int fill_up(int array[],int size); void main() { int array[10],size; cout<<“Enter the size of an array:”<<endl; cin>>size; fill_up(array,size); } int fill_up(int array[],int size) { … Read more
A program is a sequence of logical instructions that can be executed by a compiler in a computer. All programs are written to solve any problem by programming language. The best way to learn a programming starts from the root of that language. Therefore, here we will try to write our first program: Step-1: // … Read more