1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nadusha1986 [10]
3 years ago
13

In this lab, you declare and initialize variables in a C++ program. The program, which is saved in a file named NewAge.cpp, calc

ulates your age in the year 2050.​
Computers and Technology
1 answer:
Ne4ueva [31]3 years ago
6 0

Answer:

#include <iostream>

using namespace std;

int main() {

int currentYear = 2020;

int myCurrentAge = 23;

int myNewAge=myCurrentAge+(2050-currentYear);

cout << "My Current Age is " << myCurrentAge << endl;

cout << "I will be " << myNewAge << " in 2050." << endl;

}

Explanation:

  • Initialize the currentYear with 2020 and myCurrentAge with 23.
  • Add myCurrentAge with the the result of (2015 - currentYear) and assign this result to myNewAge variable.
  • Finally display my current age and after that display the new age in 2050.

Output:

My Current Age is 23

I will be 53 in 2050.

You might be interested in
An administrator has added a firewall within an Azure virtual network. What do we know for sure about the firewall?
slavikrds [6]

Answer:

its a host based firewall

Explanation:

because the administrator put it ntentionally and the only way do disable the firewall is by signing in as the admin (if you're the admin) and turn it off manualy

or if you're not the admin, ask them to do so.

5 0
3 years ago
How can you access the Help and Support system?
Ne4ueva [31]
By going to the person on the bottom and there should be a tab
5 0
3 years ago
Read 2 more answers
3. State whether the given statements are true or false. a. The computer is called a data processor because it can store, proces
andriy [413]

Answer:

a,b,c,d,f,g are true only e is false

6 0
3 years ago
Discuss how classification systems have undergone several changes over a period of time.
katen-ka-za [31]

With time, the classification systems have undergone numerous alterations. Aristotle made the first attempt at classification. He divided plants into three categories: trees, shrubs, and herbs.

On the other side, red blood cell presence or absence was used to categorise animals. The known organisms cannot all be categorised using this technique.

As a result, Linnaeus provided a two-kingdom classification scheme. Kingdom Plantae and kingdom Animalia are its constituent parts. However, this approach did not distinguish between eukaryotes and prokaryotes or between unicellular and multicellular creatures. As a result, there were numerous species that fell outside of the two kingdoms.

Thus, in order to classify the three kingdoms, Ernest Haeckel divided unicellular eukaryotic organisms into a separate kingdom called Protista.

Learn more about classification systems:

brainly.com/question/28391550

#SPJ4

4 0
1 year ago
What is the major problem with using pneumatics for robots, and how do we correct it?
Pepsi [2]
Well m<span>ost pneumatic system issues are caused by attempts to make a cylinder and related compressed air system components do something outside of the hardware’s design parameters. In order to fix this, use a filter regulator, do not oversize the cylinder, also ensure proper plant supply pressure, make sure you are using a manual, lockable air dump valve as well.
Hope this helps!</span>
4 0
3 years ago
Other questions:
  • Which of the following apply to the definition of Wide Area Networks? Check all of the boxes that apply.
    7·2 answers
  • Where could an identity theft access your personal information?
    9·2 answers
  • The emergence of MP3 (iPod) technology is an example of creative destruction because a. It is less expensive than compact discs
    14·1 answer
  • Which tool is best used to test an electrical current for a power source?
    8·1 answer
  • 1. What are the benefits and drawbacks of keeping separate journals for individual accounts?​
    8·1 answer
  • Free Response: Efficiency in the Real World This lesson introduced the notion of "efficiency" in programming, and that it might
    12·1 answer
  • Look at (c), is it accurate? ​
    9·2 answers
  • Which tags do you use to write the header and items of an ordered list on a web page?
    14·1 answer
  • Que compone una maquina Rube Goldberg (operadores mecánicos- maquinas simples – mecanismos)
    8·1 answer
  • (50 POINTS!) Type the correct answer in the box.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!