Posts

Projects

Image
Library Management System #include<stdlib.h> #include<iostream.h> #include<string.h> #define MAX    100 class bookEntry{ public:     int copies;     char name[30];     char author[30]; }; class library{ public:     int numBooks;     bookEntry database[MAX];     library(){         numBooks = 0;     }     void insertBook( char bookName[], char author[], int c);     void deleteBook( char bookName[]);     bookEntry *search( char bookName[]); }; void library::insertBook( char bookName[], char author[], int c){     strcpy( database[numBooks].name, bookName);     strcpy( database[numBooks].author, author);     database[numBooks].copies = c;     cout << "Book Inserted Successfully.\n";     ++numBooks; } void library::deleteBook( char bookName[]){  ...

PROGRAMMING USING CLASS

Image
Program #include <iostream> #include <string> #include<windows.h> using namespace std; int g=1,l,f=4,n=0; float sum=0; class Student {    int con,sem;     char name[50],DOB[50],section[50]; float gpa; public: void getName() { cin.ignore(); cin.getline(name,50); } void getgpa() { cin >> gpa; } void getDOB() { cin.ignore(); cin.getline(DOB,50); } void getsec() { cin >> section; } void getcon() { cin >> con; } void getsem() { cin >>sem; } void getdata(int k){ cout<<k<<"\t\t"<<name<<"\t\t"<<con<<"\t\t"<<sem<<"\t\t"<<section<<"\t\t"<<gpa<<"\t\t"<<DOB<<endl; } void displayAll() { cout << "Name : " << name << endl; cout << "GPA : " <...
Image
Online Shopping: https://sastivariety.com/

Essential of Business communication 18 Edition

Image
Essential of Business communication click here to Download

Examples for Mid

C++ "Hello, World!" Program C++ Program to Print Number Entered by User C++ Program to Add Two Numbers C++ Program to Find Quotient and Remainder C++ Program to Find Size of int, float, double and char in Your System C++ Program to Swap Two Numbers C++ Program to Check Whether Number is Even or Odd C++ Program to Check Whether a character is Vowel or Consonant. C++ Program to Find Largest Number Among Three Numbers C++ Program to Find All Roots of a Quadratic Equation C++ Program to Calculate Sum of Natural Numbers C++ Program to Check Leap Year C++ Program to Find Factorial C++ Program to Generate Multiplication Table C++ Program to Display Fibonacci Series C++ Program to Find GCD C++ Program to Find LCM C++ Program to Reverse a Number ...

CUST Assignment

Image
Program #1 #include<iostream> #include<windows.h> using namespace std; class student{ public: char FirstName[30],LastName[30],SC[20],grade; int RollNo,marks; void CALCULATE_GRADE(){ if(marks>=80) grade='A'; else if(marks>=65&&marks<80) grade='B'; else if(marks>=50&&marks<65) grade='C'; else if(marks>=40&&marks<50) grade='D'; else if(marks<40) grade='F'; } void Display(){ cout<<" First Name:"<<FirstName<<endl;      cout<<" Last Name:"<<LastName<<endl;      cout<<" Roll #:"<<RollNo<<endl;      cout<<" Section:"<<SC<<endl;      cout<<" Marks:"<<marks<<endl;         cout<<" Grade:"<<grade<<endl; } }; int main(...

Assignment #1

Image