CS001 Mid Term Past Paper Spring 2010

By: // No comments:

CS001 Mid Term Past Papers

Here You can Read and Download CS001 Computer Proficiency Mid Term Past Papers of Spring 2010. You Can Also Download Solved Mid Term Papers, Short Notes, Assignment Solutions, Lecture Wise Questions Answers Files, Solved MCQs, Solved Quiz , Solved Mid Term Subjective Papers , Solved Mid Term Objective Papers from Virtual Study Solutions For Preparation of Mid Term Papers.

Also Read: Virtual University Admission Schedule - Spring 2017

Download C001 Midterm Past Paper

CS001 MidTerm Past Paper Spring 2010.doc

CS001 Mid Term Past Paper Spring 2010

Semester : Spring 2010

Subject : CS001- Computer Proficiency

Time: 60 min

Marks: 58

CS001 Mid Term Paper Question No: 1

In excel the intersection of a row and a column is called:
► data
► a field.
► a cell.
► an equation.
CS001 Mid Term Paper Question No: 2

The cell labeled F5 refers to
► row F column 5
► column F row 5
► functions available in cells
► Function key F4
CS001 Mid Term Paper Question No: 3

Which of the following describes how to select all the cells in a single column ?
► Right click on column and select Pick From List
► Use the Data – Text to Columns menu item
► Left click on the gray column title button
► Pressing CTRL + A on the keyboard
CS001 Mid Term Paper Question No: 4

What is the format of a spreadsheet?
► Round
► Rows and Columns
► Square
► Wide
CS001 Mid Term Paper Question No: 5
Which one is a relative address?
► $C$4
► 256
► C4
► None of these

You should Also Read:



CS001 Mid Term Paper Question No: 6 

What do you use to create a chart?
► Chart Wizard
► Pie Wizard
► Excel Wizard
► Data Wizard
CS001 Mid Term Paper Question No: 7

On an Excel sheet the active cell is indicated by ____.
► a dark wide border
► a dotted border
► a blinking border
► All of these
CS001 Mid Term Paper Question No: 8

News Groups are…
► provided only by large international news services
► are online discussions about various topics
► are only available from 9 am to 5 pm EST
► All of these
CS001 Mid Term Paper Question No: 9

A(n) ____ line has transfer rates of 128 Kbps to 8.45 Mbps.

► DSL
► ISDN
► ATM
► Fractional T1
CS001 Mid Term Paper Question No: 10

____ refers to the amount of data, instructions, and information that can travel over a communications channel.
► Latency
► Transfer rate
► Bandwidth
► Broadband

CS001 Subjective Mid Term Paper Question No: 1


What is electronic mailing? Give its basic concept and usage.

Electrical mailing is also know as E-mail. It works same as usual mail but for using e-mail both the persons sender and receiver have to have computer to read it or send it.

Sender compose a e-mail by licking it on the compose mail and writer the receiver e-mail address into the To and type the message and send it to the receiver computer.

Usage,

It is the fastest way of communication in the world.

Business mans are using the benefits of e-mails

Its case very low pries

Quick and fast



CS001 Subjective Mid Term Paper Question No: 2

What are Computer Viruses?

It is software which is develop to kill, damage the Windows.

It can damage the hardware’s.

It puts negative effect on computer and internet speed.


CS001 Subjective Mid Term Paper Question No: 3


What is slide transition? What is the method of adding a transition in PowerPoint slides?

It is the most important part of presentation. Because of Transition we don’t need to click with mouse to go to the next slide.

Transition,

When we need to give a presentation, we can select the auto time on it. The different between the slides it could be 10 seconds. When we go to animation and there we can find transition.


CS001 Subjective Mid Term Paper Question No: 4


How we can modify column widths and row heights?

Column Widths

Select the column and right click from the mouse there is a option of column width click on it and it ll show you the current width of the column you put your require width in it. Same ways for one columns or all.

Row height,

Select the number of rows you want to change the height right click at the border area of the rows there is a option of change row height. Click on it, it ll show you the current height of the rows there you can put the require height of the row you need.


CS001 Subjective Mid Term Paper Question No: 5

What is the difference between closing and exiting?

Close

It is only document close but not the software e.g. Microsoft word, excel…etc.

Exit

When we press exit it close the whole document, excel…Etc along with software.

Tags: CS001, CS001 Current Mid term Paper, CS001 Midterm past papers, CS001 midterm solved papers, download mid term past papers, solved midterm papers, VU, Virtual University.

if You like this Post Please share with Your Friends. Thank You

CS001 Current / Past Mid Term Past Paper

By: // No comments:

CS001 Past Mid Term Past Paper

Here You can free download CS001 Computer Proficiency Mid Term Current Paper of Fall 2016 And Mid Term Past Papers 2017.

Also Read: Virtual University Admission Schedule - Spring 2017

Download CS001 Past Mid Term Past Paper

CS001 MidTerms Paper by Touseef.doc, 86 KB

CS001 Mid Term Paper Question 1 

There are three types of data found in a spreadsheet.
  • Data, words, numbers
  • Equations, data, numbers
  • Words, numbers, labels
  • Numbers, formulas, labels

CS001 Mid Term Paper Question 2 

A Constant is another name for this type of data:
  • Number
  • Equations
  • Formula
  • Description

CS001 Mid Term Paper Question 3

Which is an absolute address?
  • $C$4
  • 10700-105 Ave.
  • C4
  • None of these

CS001 Mid Term Paper Question 4

What Program do you use to create a spreadsheet?
  • Word
  • Excel
  • Access
  • PowerPoint

CS001 Mid Term Paper Question 5

Which Button on the standard toolbar gives you quick access to the Sum, Average, Count, Min and Max functions?
  • AutoSume
  • Insert Function
  • Auto Fill
  • Paste
Also Read: How to Apply Online for VU Free Certificate Course

CS001 Mid Term Paper Question 6

What do you use to create a chart?
  • Chart Wizard
  • Pie Wizard
  • Excel Wizard
  • Data Wizard

CS001 Mid Term Paper Question 7

Which Type of chart shows the pattern or relationships between sets of data points?
  • Line
  • Pie
  • Area
  • XY (scatter)

CS001 Mid Term Paper Question 8

On an Excel sheet the active cell in indicated by ------?
  • A dark wide border
  • A dotted border
  • A blinking border
  • All of these

CS001 Mid Term Paper Question 9

A user wishes to remove a spreadsheet from a workbook. Which is the correct sequence of events that will do this?
  • Do to FILE - SAVE AS – SAVE AS TYPE – Excel. Work sheet
  • Right click on the spreadsheet tab and select DELETE
  • Right click on the spreadsheet and select INSERT – ENTIRE COLUMN
  • None of these

CS001 Mid Term Paper Question 10

The Word Wide Web (WWW) is….
  • A part off the Internet
  • The Internet
  • Not a part of internet
  • ALL of these
Also Read: WHAT IS THE PURPOSE OF VIRTUAL UNIVERSITY LEARNING MANAGEMENT SYSTEM (VULMS)

CS001 Mid Term Paper Question 11

Uniform Resource Locator (URL) is….
  • The same as search engines
  • The addresses of specific documents and resources on the WWW
  • Never more that 11 characters long
  • All of these

CS001 Mid Term Paper Question 12

The-----standard defines how data transmits across telephone lines or other means.
  • TCO/IP
  • EDI (Electronic Data Interchange)
  • Electronic funds transfer (EFT)
  • Ethernet

CS001 Mid Term Paper Question 13

A (n) ------line typically costs $1,000 or more per month.
  • ISDN
  • T3
  • ATM
  • T1

CS001 Mid Term Paper Question 14

A----------is a Web site that uses encryption techniques to secure its data.
  • Digital certificate
  • Secure HTTP (S-HTTP)
  • Wallet program
  • Secure site

CS001 Mid Term Paper Question 15

The process of converting readable data into unreadable characters to prevent unauthorized use is called----------,
  • Normalization
  • Decryption
  • Validation
  • Encryption
Tags: CS001, CS001 Midterm past papers, CS001 midterm solved papers, CS001 Current Mid term Paper, download mid term past papers, VU, Virtual University

Also Read: HOW TO MAKE DATESHEET FOR EXAM at VU

You Can Also Download CS001 Solved Mid Term Papers, Short Notes, Assignment Solutions, Lecture Wise Questions Answers Files, Solved MCQs, Solved Quiz , CS001 Solved Mid Term Subjective Papers ,CS001 Solved Mid Term Objective Papers from Virtual Study Solutions For Preparation of CS001 Mid Term Papers.

Virtual University Fee Structure For Spring 2017

By: // No comments:

Virtual University Fee Structure

You can Calculate Your free Using Virtual University Fee Calculator. Tuition fee will be charged for the full semester instead of per credit hour. 50% discount on Enrollment Fee per Semester and Tuition Fee per credit hour will remain valid for all continuing students of B.Ed (1-Year) program. However, all other dues (if any) will be charged at prescribed rates of the university. 

Also Read: Virtual University Admission Schedule - Spring 2017

Virtual University Fee Structure for Local Students

Virtual University Fee Structure For Spring 2017
Virtual University Fee Structure For Spring 2017 
Important Notes :
  • Admission fee includes degree verification fee from the previous institution. 
  • Entry Test (where applicable) will be charged @ Rs. 1,000/- and will be non-refundable. 
  • Tuition fee @ Rs. 1,100/- per credit hour will be charged from MS students enrolled in deficient course(s). 
  • Lab fee for practical(s) will be charged (where applicable) at following rates: 
  • Deficiency Semester & Zero Semester @ Rs. 2,000/- per credit hour 
  • BS @ Rs. 2,000/- per credit hour 
  • Masters @ Rs. 2,000/- per credit hour 
  • MS @ Rs. 5,000/- per credit hour 
  • Thesis fee will be charged at following rates (in addition to per credit hour tuition fee): 
  • MS @ Rs. 15,000/- 
  • Ph.D @ Rs. 25,000/- 
  • Research fee will be charged at following rates: 
  • MS in Bioinformatics, Biotechnology, Genetics, Zoology and Molecular Biology @ Rs. 15,000/- 
  • Ph.D @ Rs. 50,000/- Research fee will be charged at the time of enrollment of research work and will be in addition to the Thesis fee. 
  • Convocation fee @ Rs. 2,000/- will be charged in the final semester of the respective batch; the payment is mandatory to get transcript, degree and other certificates from the University. 
  • Endowment fund contribution will be charged@ Rs. 1,000/- one time during entire degree program. 
  • Fee collection charges @Rs. 100/- per semester. 
50% discount on Enrollment Fee per Semester and Tuition Fee per credit hour will remain valid for all continuing students of B.Ed (1-Year) program. However, all other dues (if any) will be charged at prescribed rates of the university.

Tuition fee will be charged for the full semester instead of per credit hour
Also Read: How to Apply Online for VU Free Certificate Course

Virtual University Fee Structure for Over Seas Students

Fee Structure for Over Seas Students (in US $)
Fee Structure for Over Seas Students (in US $)

Important Notes:
  • Admission fee include degree verification fee. 
  • Entry Test (where applicable) will be charged @ USD 50/- and will be non-refundable. 
  • Tuition fee @ $45/- per credit hour will be charged from MS students enrolled in deficient course(s). 
  • On the enrollment of research /thesis work in MS programs, thesis fee @ $200/- will be charged in addition to per credit hour tuition fee. 
  • Convocation fee @ $50/- will be charged in the final semester of the respective batch; the payment is mandatory to get transcript, degree and other certificates from the University. 
  • Endowment fund contribution will be charged @$10/- one time during entire degree program. 
20% discount on Tuition Fee per credit hour will remain valid for all continuing students of B.Ed (1-Year) program. However, all other dues (if any) will be charged at prescribed rates of the university.

Tuition fee will be charged for full semester instead of per credit hour basis.

Schedule of Other Charges


Disclaimer: The University reserves the right to change fee structure from time to time.

How to Apply Online for VU Free Certificate Course

By: // No comments:

Virtual University Free Certificate Course

The Virtual University Of Pakistan has introduced Free Certificate Course(s). This Free Courses are only for Students who updated his Alumni profile. Each Certificate Course comprised of one semester duration 18 weeks. 

Latest News : Virtual University Admission Schedule - Spring 2017

The purpose of these is to retrain professionals in new emerging areas of Science & Technology as well as provide the public with an opportunity to learn basic subjects which may be of general interest. Certificate Courses are offered in five disciplines: Computer Science, General Science, Humanities, Management and Mathematics.

You can Also View : Virtual University Fee Structure For Spring 2017

 Apply Online for VU Free Certificate Course
 Apply Online for Vitual University Free Certificate Course
The students’ study progress evaluation mechanism is based on continuous assessment throughout the semester by giving assignments, online quizzes, Graded Moderated Discussion Boards (GMDBs), mid-term and final term examinations.

Also Read: VU Course Selection - Rules and Procedure

Each Certificate Course is of three credit hours (except Islamic Studies and Pakistan Studies). The earned course credit hours are transferable towards degree/diploma program of the University. Course Certificate would be awarded by VU Academic Department (professional_certificate@vu.edu.pk) to the candidate after successful completion of course work requirements.

Also Read: How to be Successful in Interviews - Rules and Tips

How to Apply Online for Free Certificate Course


  • Go to www.vu.edu.pk
  • Select admissions and select apply online.
  • Choose student status from radio buttons i.e. (within Pakistan or Outside Pakistan)
  • Select program short courses under degree program drop down menu.
  • Select certificate course under study program drop down menu.
  • Select your certificate course through check buttons.
  • Provide your free coupon number.
  • Fill up all other mandatory information as required for the admission and complete the form and other formalities.
NOTE: This Free Courses are only for Students who updated his Alumni profile.

Free Certificate Course for Spring 2017

The Virtual University has offered the following Certificate Courses in following disciplines for Spring 2017.
  • ACC501-Business Finance
  • BNK601-Banking Laws & Practices
  • BNK603-Consumer Banking
  • CS001-VU-Computer Proficiency License
  • CS101-Introduction to Computing
  • CS201-Introduction to Programming
  • CS202-Fundamentals of Front End Development
  • CS206-Introduction to Network Design & Analysis
  • CS301-Data Structures
  • CS302-Digital Logic Design
  • CS304-Object Oriented Programming
  • CS311-Introduction to Web Services Development
  • CS312-Database Modeling and Design
  • CS401-Computer Architecture and Assembly Language Programming
  • CS402-Theory of Automata
  • CS403-Database Management Systems
  • CS408-Human Computer Interaction
  • CS411-Visual Programming
  • CS501-Advance Computer Architecture
  • CS502-Fundamentals of Algorithms
  • CS504-Software Engineering - I
  • CS506-Web Design and Development
  • CS507-Information Systems
  • CS508-Modern Programming Languages
  • CS601-Data Communication
  • CS602-Computer Graphics
  • CS604-Operating Systems
  • CS605-Software EngineeringII
  • CS606-Compiler Construction
  • CS607-Artificial Intelligence
  • CS609-System Programming
  • CS610-Computer Network
  • CS614-Data Warehousing
  • CS615-Software Project Management
  • ECO401-Economics
  • ECO402-Microeconomics
  • ECO403-Macroeconomics
  • ECO404-Managerial Economics
  • ECO501-Development Economics
  • ECO601-Business Econometrics
  • EDU101-Foundations of Education
  • EDU201-Learning Theories
  • EDU301-General Methods of Teaching
  • EDU303-Child Development
  • EDU304-Introduction to Guidance and Counseling
  • EDU305-Classroom Management
  • EDU402-Curriculum Development
  • EDU405-Classroom Assessment
  • EDU406-Critical Thinking and reflective Practice
  • EDU411-Teaching of Urdu
  • EDU501-School, Community and Teacher
  • EDU512-Teaching of Islamic Studies
  • EDU515-Teaching of Geography
  • EDU516-Teaching of English
  • EDU601-Philosophy of Education
  • EDU602-Educational Leadership and Management
  • EDU654-Addressing problems of learning through technology and pedagogy
  • ENG001-Elementary English
  • ENG101-English Comprehension
  • ENG201-Business and Technical English Writing
  • ENG301-Business Communication
  • FIN611-Advanced Financial Accounting
  • FIN621-Financial Statement Analysis
  • FIN622-Corporate Finance
  • FIN623-Taxation Management
  • FIN625-Credit & Risk Management
  • FIN630-Investment Analysis & Portfolio Management
  • GSC101-General Science
  • GSC201-Teaching of General Science
  • HRM513-Performance and Compensation Management
  • HRM613-Performance Management
  • HRM617-Training and Development
  • HRM624-Conflict Management
  • HRM627-Human Resource Development
  • ISL201-Islamic Studies
  • IT430-E-Commerce
  • MCM101-Introduction to Mass Communication
  • MCM301-Communication skills
  • MCM304-Mass Media in Pakistan
  • MCM310-Journalistic Writing
  • MCM311-Reporting and Sub-Editing
  • MCM401-Fundamentals of Public Relations
  • MCM411-Introduction to Broadcasting
  • MCM501-Advertising for Print and Electronic Media
  • MCM511-Theories of Communication
  • MCM514-Feature & Column Writing
  • MCM515-Radio News Reporting & Production
  • MCM516-TV News Reporting & Production
  • MCM604-International Communication
  • MCM610-Mass Communication Law & Ethics
  • MGMT611-Human Relations (alt. code=HRM611)
  • MGMT614-Supply Chain Management
  • MGMT622-Management Skills
  • MGMT623-Leadership & Team Management - MGMT623 (alt. code=HRM623)
  • MGMT625-Change Management
  • MGMT627-Project Management
  • MGMT628-Organizational Development (alt. code=HRM628)
  • MGMT629-Crisis Management
  • MGMT630-Knowledge Management
  • MGT101-Financial Accounting
  • MGT111-Introduction to Public Administration
  • MGT201-Financial Management
  • MGT211-Introduction To Business
  • MGT301-Principles of Marketing
  • MGT401-Financial Accounting II
  • MGT402-Cost & Management Accounting
  • MGT404-Managerial Accounting
  • MGT411-Money & Banking
  • MGT501-Human Resource Management
  • MGT502-Organizational Behaviour
  • MGT503-Principles of Management
  • MGT504-Organization Theory & Design
  • MGT510-Total Quality Management (alt. code=MGMT510)
  • MGT511-Strategic Marketing Management
  • MGT520-International Business
  • MGT601-SME Management
  • MGT602-Entrepreneurship
  • MGT603-Strategic Management
  • MGT604-Management of Financial Institutions (alt. code=BNK604)
  • MGT605-Advanced Cost and Management Accounting
  • MGT610-Business Ethics
  • MGT611-Business & Labor Law
  • MGT612-Corporate Law
  • MGT613-Production / Operations Management
  • MGT621-Administrative Law and Accountability
  • MKT501-Marketing Management
  • MKT530-Consumer Behaviour
  • MKT610-Customer Relationship Management
  • MKT611-Marketing Research
  • MKT621-Advertising & Promotion
  • MKT624-Brand Management
  • MKT625-Services Marketing
  • MKT630-International Marketing
  • MTH100-General Mathematics
  • MTH101-Calculus And Analytical Geometry
  • MTH202-Discrete Mathematics
  • MTH301-Calculus II
  • MTH302-Business Mathematics & Statistics
  • MTH401-Differential Equations
  • MTH501-Linear Algebra
  • MTH601-Operations Research
  • MTH603-Numerical Analysis
  • PAK301-Pakistan Studies
  • PHY101-Physics
  • PHY301-Circuit Theory
  • PSC201-International Relations
  • PSC401-Public International Law
  • PSY101-Introduction to Psychology
  • PSY401-Clinical Psychology
  • PSY403-Social Psychology
  • PSY404-Abnormal Psychology
  • PSY405-Personality Psychology
  • PSY406-Educational Psychology
  • PSY407-Sport Psychology
  • PSY408-Health Psychology
  • PSY409-Positive Psychology
  • PSY502-History & Systems of Psychology
  • PSY504-Cognitive Psychology
  • PSY510-Organizational Psychology
  • PSY511-Environmental Psychology
  • PSY512-Gender Issues in Psychology
  • PSY513-Forensic Psychology
  • PSY514-Consumer Psychology
  • PSY610-Neurological Bases of Behavior
  • PSY631-Psychological Testing & Measurements
  • PSY632-Theory & Practice of Counseling
  • SOC101-Introduction to Sociology
  • SOC401-Cultural Anthropology
  • STA301-Statistics and Probability
  • STA630-Research Methods
  • URD101-Urdu
Also Read: Distribution of Laptops to Students - Rules and Merit Criteria

You Can Also Download Solved Mid Term - Final Term Papers, Short Notes, Assignment Solutions, Lecture Wise Questions Answers Files, Solved MCQs, Solved Quiz , Solved Mid Term - Final Term Subjective Papers , Solved Mid Term - Final Term Objective Papers from Virtual Study Solutions For Preparation of Mid Term - Final Term Papers.

Virtual University Admission Schedule - Spring 2017

By: // No comments:

Virtual University Admission - Spring 2017

Here We have Complete info of Latest VU Admissions and Admission Procedure. Virtual University of Pakistan (VU) offers admission twice in an academic year. Virtual University has announced the admission for Spring 2017. 

Please Note : Last date of Admission in Bachelors and Masters Spring 2017 is: 30th March 2017.

Virtual University Admission Schedule - Spring 2017
Virtual University Admissions - Spring 2017

Admission Schedule - Spring 2017

DescriptionDayDate
Admissions Open - Spring 2017 (Online)ThursdayFebruary 16, 2017
Option to apply for Course Exemption / Transfer of Course CreditsThursdayFebruary 16, 2017
Orientation for newly admitted studentsMonday to FridayFebruary 20 - April 07, 2017
Offline Admission Open - Spring 2017 [Admission Form Printing]ThursdayFebruary 23, 2017
Last Date to apply for Course Exemption / Transfer of CreditsFridayMarch 10, 2017
Last Date to Apply for MS/M.Phil Admissions Spring 2017FridayMarch 10, 2017
Option to Apply for the Change / Conversion of Study Program for existing StudentsFridayMarch 10, 2017
Entry Test for MS/M.Phil Programs AdmissionsSundayMarch 19, 2017
Last Date to Apply for Admissions / Readmission Spring 2017 (All other programs)FridayMarch 24, 2017
Last Date to apply for Need based ScholarshipFridayMarch 24, 2017
Course Selection Link Open for enrollment Spring 2017ThursdayMarch 30, 2017
Last date to apply for Change of Study Program for existing and newly admit studentsFridayApril 07, 2017
Commencement of Classes - Spring 2017MondayApril 10, 2017
Last date for Course Selection to add/drop/replace course(s)ThursdayApril 20, 2017

Note: The University reserves the rights to make any changes in Admission Schedule, as required.

How to Apply for Admission in VU - Procedure

A candidate (Pakistani National) can obtain admission application form either from Virtual Campus or from VU website http://www.vu.edu.pk and apply for admission (subject to eligibility criteria) by submitting filled admission form with requisite documents including fee paid challan/Demand Draft (in original) to the nearest Virtual Campus or by mailing at Registrars’ Office (Admissions).

Virtual University Main Campus Address:
Virtual University of Pakistan M.A. Jinnah Campus,
Defense Road, Off Raiwind Road, Lahore. 
Tel: 042-111-880-880, Ext. 342~348, 441~443.

Upon receipt of filled admission application form at Registrar’s office, it is processed after necessary verification subject to admission eligibility criteria and candidate is intimated firstly through an email (if provided in admission application form). Secondly, via an email to his/her campus (in case campus based student) and finally, by mailing a hard copy admission offer letter and VU information material at his/her mailing address. A list of admitted candidates is also published and updated during admission session at VU website http://www.vu.edu.pk under admission link.

Please Note: MS/M.Phil Admissions will be processed on merit basis after VU Entry Test.

If You have any Query or Question Related to Admission schedule and Procedure. Let us know in Comments.

How to write C++ program to make a Simple Calculator

By: // No comments:

C++ program to make a Simple Calculator

Welcome to Virtual Study Solutions C++ Tutorial. Today we will learn How to make a Simple Calculator using switch statement in C++ programming language. This program use arithmetic operator (+, -, *, /) and two operands input from user and performs the operation on those two operands depending upon the operator entered by user.
Learn to write C++ program to make a Simple Calculator
Write C++ program to make a Simple Calculator

How to make a Simple Calculator in C++

To understand this Program , you should have basic Understanding of following C++ programming topics:
  • C++ switch Case Statement
  • C++ break and continue Statement
lets take a look on Example Code to make a Simple Calculator using switch statement.

Simple Calculator Using switch Case

C++ Program to Make a Simple Calculator to Add, Subtract, Multiply or Divide Using switch Case.

# include <iostream>
using namespace std;

int main()
{
    char sign;    float num1, num2;

    cout << "Enter operator either + or - or * or /: ";
    cin >> sign;

    cout << "Enter two operands: ";
    cin >> num1 >> num2;

    switch(sign)    {
        case '+':
            cout << num1+num2;
            break;

        case '-':
            cout << num1-num2;
            break;

        case '*':
            cout << num1*num2;
            break;

        case '/':
            cout << num1/num2;
            break;

        default:
            // If the operator is other than +, -, * or /, error message is shown
            cout << "Error! operator is not correct";
            break;
    }

    return 0;
}

Simple Calculator Program Output


Enter operator either + or - or * or divide : -
Enter two operands: 
3.4
8.4
3.4 - 8.4 = -5.0

Simple Calculator Program Logic

This program takes an operator and two operands from user.

The operator is stored in variable sign and two operands are stored in num1 and num2 respectively.

Then, switch case statement is used for checking the operator entered by user.

If user enters + then, statements for case: '+' is executed and program is terminated.

If user enters - then, statements for case: '-' is executed and program is terminated.

This program works similarly for * and / operator. But, if the operator doesn't matches any of the four character [ +, -, * and / ], default statement is executed which displays error message.

Have a look at Other C++ Example Programs:

How to write ALLAH Using C++ Program

How to write C++ program to find Fibonacci Series

How to Write C++ Program to Find Prime Number

How to write C++ Program to find factorial of Number
Show Love and Like Us on facebook