Program to implement setw manipulator in OOP Programming

C++ Implement Setw Manipulator in OOP

  • April 19, 2021
  • 0 Comments

How to implement setw in c++ programming.  Implement setw manipulator in object-oriented programming. UNIVERSITY                    LOCATION                    TU                     KATHMANDUKU                     DULIKHEL C++ Code #include<iostream.h>#include<conio.h>#include<iomanip.h>void main(){ cout<<setw(10)<<“UNIVERSITY”<<setw(19)<<“LOCATION”<<endl; cout<<setw(10)<<“TU”<<setw(17)<<“BALKHU”<<endl; cout<<setw(10)<<“KU”<<setw(20)<<“DHULIKHEL”<<endl; cout<<endl<<“Thank you”<<endl; cout<<endl<<“Press any key to continue…”; getch();}

Program to find the sum of two numbers [int a,b,c]. Programming

C++ Find the Sum of Two Numbers [int a,b,c].

  • April 19, 2021
  • 0 Comments

Write a C++ Program to find the sum of two numbers; C++ Code #include<iostream.h>#include<conio.h>void main(){ int a,b,c; cout<<“Enter two numbers:”; cin>>a>>b; c=a+b; cout<<“The sum of two numbers is:”<<c; cout<<endl<<“Thank you”; cout<<endl<<“Press any key to continue…”; getch();}

Program to find Sum, Multiplication, Division, Subtraction by Using Function Programming

C++ Find Sum, Multiplication, Division, Subtraction by Using Function

  • April 19, 2021
  • 0 Comments

Write a program to find Sum, Multiplication, Division, Substraction by Using Function. C Code #include<iostream.h>#include<conio.h>void add(int a,char c, int b); void sub(int a,char c, int b); void mul(int a,char c, int b); void div(int a,char c, int b);void main(){ int a,b; char c; cout<<“Enter 1st number:”; cin>>a; cout<<“nEnter operater:”; cin>>c; cout<<“nEnter 2nd number:”; cin>>b; switch(c){ […]

if else statement Programming

C – If, If-else and Nested If-else Statements

  • April 19, 2021
  • 0 Comments

If Statement For Decision making, C uses the keyword if. The general form of the if statement is if(text_expression)statement1; The test expression should always be enclosed in parentheses. If the test_expression is nonzero(true) then the statement statement1 is executed; Otherwise, statement1 is skipped and control passes to the next statement. Statement1 can be a single […]

double entry vs single entry Differences

Difference Between Double Entry System and Single Entry System

  • April 19, 2021
  • 0 Comments

The double-entry system of accounting or bookkeeping means that for every business transaction, amounts must be recorded in a minimum of two accounts. Double Entry System Under this system, both aspects of each transaction are recorded. Persona, real and nominal accounts are kept full. The cashbook, general ledger debtors ledger, and creditors ledger are maintained. […]