Question

In: Computer Science

For each selected language, your report must shortly review its historical background, an overview of its...

For each selected language, your report must shortly review its historical background, an overview of its main features (such as data type, operations, potential application areas, etc. ), an evaluation that must include a short program written in the programming language you are introducing.

The Selected language is C++.

Solutions

Expert Solution

The C++ programing language was was developed in the year 1979 as an extension of the existing C language by Bjane Stroustrup. His goal was to develop a high-level, feature rich language which was on the same lines as the existing C language.

Main notable additions were function overloading, virtual functions, referencing operator, etc.

Data types:

Fundamental data types supported by C++ are:

Integer (int) - byte size = 2 or 4

Floating point (float) - byte size = 4

Double floating point (double) - byte size = 8

Character (char) - byte size = 1

Boolean (bool) - byte size = 1

Void - byte size = 0

Integer type variable can store values from -2147483648 to 2147483647.

Double type variables have double the precision compared to that of Float type variables.

Boolean type variables can store either true of false values.

Void data type indicates the absence of data.

Some modifiers that can be used along with integer, double and character are:

Long

Short

Signed

Unsigned

C++ supports a wide range of operators such as:

Arithmetic operators

Assignment operators

Comparison operators

Logical operators

Arithmetic operators consists of:

+ Addition

- Subtraction

* Multiplication

/ Division

% Modulus

++ Increment

-- Decrement

Some assignment operators are:

+, +=, -=, /=, *=, ^=, &=

Comparison operators consists of:

== Equal to

!= Not equal to

> Greater than

< Less that

>= Greater than equal to

<= Less than equal to

Logical operators are:

&& Logical AND

|| Logical OR

! Logical NOT

C++ has a potential use in the follow fields:

1 Gaming industry

2 GUI based interactive applications

3 Database server connectivity

4 Advance graphics and computation

5 Browser development

6 Embedded systems

Program to add two numbers using C++

#include<iostream.h>

#include<studio.h>

using namespace std;

void main() //main function

{

Int a,b,sum=0; //declaring variables

cout<<"Enter the first value to be added";

cin>>a; //input from user

cout<<"Enter the second value to be added";

cin>>b;

sum=a+b;

cout<<"The sum is "<<sum;

}


Related Solutions

Write an overview of the Return on Investment topic and a review of its historical roots
Write an overview of the Return on Investment topic and a review of its historical roots
The purpose of this assignment is to research and review the annual report for a selected...
The purpose of this assignment is to research and review the annual report for a selected company. Throughout the course you will be applying what you learn about the principles and practices of financial accounting by completing an ongoing project based upon a Fortune 500 company traded on the New York Stock Exchange (NYSE) or National Association of Securities Dealers Automated Quotations (NASDAQ). The project will include six assignments, each focusing on the analysis of financial information from various parts...
Historical background for electricity and magnetism Explain what each of the following materials are and how...
Historical background for electricity and magnetism Explain what each of the following materials are and how they are related to electrostatics or magnetism. Amber: Lodestone: Explain the following theories. Effluvium Theory: Benjamin Franklin’s One Fluid Theory Dufay’s Two Fluid Theory de Magnete: Gilbert categorized the properties as: Complete the chart below electric (i.e., amber) lodestone (magnetic) i)     i)     ii)    ii)    iii)   iii)   iv)   iv)  
describe relevant health, economic, finance, and historical background of cash budgeting and its importance to a...
describe relevant health, economic, finance, and historical background of cash budgeting and its importance to a small hospital ?
Continuing with the scenario from your product overview, report your findings and recommendations to the stakeholders...
Continuing with the scenario from your product overview, report your findings and recommendations to the stakeholders of your company.  Your job is to help the company launch a new pet food line. The food line will be for both cats and dogs, and the company is excited because the product is made of all natural ingredients. You will need to make some key strategic recommendations about how to launch and promote this new product line. Create a presentation to share...
Create a 1 page overview of the financial report for each of the 3 companies (Ford,...
Create a 1 page overview of the financial report for each of the 3 companies (Ford, GM and Fiat Chrysler) Please go to the websites and pull up the financial reports
You must complete a one-page minimum discussion with your overview of the article and your opinion....
You must complete a one-page minimum discussion with your overview of the article and your opinion. The topic for discussion is unemployment. You must post an article related to unemployment or the different types of unemployment; cyclical, frictional or structural. Explain the article Explain how it relates to what we are learning Explain your opinion about it, support with real-life experience Include link to article
My selected country is Poland. Historical Issues and Globalization Using your selected country, identify two significant...
My selected country is Poland. Historical Issues and Globalization Using your selected country, identify two significant multinationals in that country that are present in the market. Explain why those multinationals go into those countries. What challenges did they face? Touch on International Political Economy Briefly explain how your selected country has been affected by global trade blocks. Explain how your selected country participates in these world organizations: WTO, IMF, World Bank, BFIS, IDB Thank you.
Write an informal business report of your choice. The report must include all 3 sections of...
Write an informal business report of your choice. The report must include all 3 sections of an informal report - Introduction, discussion section and conclusion).
Project flow and Report Format The following information must be included in your report: Abstract Table...
Project flow and Report Format The following information must be included in your report: Abstract Table of Content List of Figures List of Tables LIST OF ABBREVIATIONS Part 1: Introduction Part 2: Literature Review Part 3: Methodology Part 4: Result and Discussion Part 5: Conclusions Part 6: References Appendix
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT