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
Daniel [21]
2 years ago
5

Edit the following statement so it uses the constant named YEAR:

Computers and Technology
1 answer:
Alenkasestr [34]2 years ago
4 0

Using the knowledge in computational language in C++ it is possible to write a code that will calculate the age of someone through the difference of years.

<h3>Writing code in C++ has:</h3>

<em>#include <iostream></em>

<em>using namespace std;</em>

<em>int main()</em>

<em>{</em>

<em>//Declare variables</em>

<em>int myCurrentAge=29;</em>

<em>int myNewAge;</em>

<em>const int YEAR = 2050; //Declare constant YEAR=2050</em>

<em>int currentYear=2014;</em>

<em>myNewAge=myCurrentAge+(YEAR-currentYear); //calculate new age</em>

<em>cout<<"My Current Age is "<<myCurrentAge<<endl;</em>

<em>cout<<"I will be "<<myNewAge<<" in "<<YEAR<<"."<<endl; //display values on console</em>

<em>return 0;</em>

<em>}</em>

See more about C++ at brainly.com/question/19705654

#SPJ1

You might be interested in
Define a function print_feet_inch_short(), with parameters num_feet and num_inches, that prints using ' and " shorthand. End wit
Crazy boy [7]

def print_feet_inch_short(num_feet, num_inches):

#function named print_feet_inch_short takes in two arguments.

print(str(num_feet)+"'",str(num_inches)+"\"")

#output the feet and inch value supplied with the shorthand sign of feet and inch using string concatenation.

num_feet = int(input())

#allows user to specify a feet value and stores it in num_feet

num_inches = int(input())

#allows user to specify an inch value and stores it in num_inch

print_feet_inch_short(num_feet, num_inches)

#calling the function with the number of feets and inches given by user.

Learn more : brainly.com/question/18318709

4 0
3 years ago
Read 2 more answers
Which of the following examines the organizational resource of information and regulates its definitions, uses, value, and distr
hichkok12 [17]

Answer:C)Information management

Explanation: Information management is the technique through which the organization and handling of the the data/ information takes place.This technique is made for helping the organization and their business for the supporting the function and processes.

The facilities provided by the information management system is  development, management, designing, innovation etc.

Other options are incorrect because they are used for the coding process,technology and governing of the data, hence no management activity is done by them.Thus, the correct option is option(C).

4 0
3 years ago
Points!!!!!!!! pls help
siniylev [52]
D. Rasterize

This answer makes the most since
7 0
3 years ago
Read 2 more answers
The rhythmic note that three beats is called a____half note.
aev [14]

Answer:

it is called a dotted half note

7 0
3 years ago
Read 2 more answers
Sam needs to create a spreadsheet for his coworkers. They will need to follow across a long row of data. Sam would like to make
castortr0y [4]
The answer youre looking for is A.
3 0
3 years ago
Read 2 more answers
Other questions:
  • The actual database of active directory shared resources is stored on one or more computers designated as:
    10·1 answer
  • In Alphatech Systems, email software screens incoming messages by organizing them into mailboxes and identifying junk mail. As a
    13·1 answer
  • What is the value of length after the code that follows is executed?int[][] nums = { new int [] {1, 2, 3},new int [] {3, 4, 5, 6
    8·1 answer
  • Consider the following C program: int fun(int *i) { *i += 5; return 4; } 352 Chapter 7 Expressions and Assignment Statements voi
    11·1 answer
  • Able to make a survey form using VB (Visual basics 6.0) to represent ways of conservation of
    8·2 answers
  • Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integer
    9·1 answer
  • The best way to safeguard your document is to save it
    11·1 answer
  • Who is the intended audience of a pseudocode document?
    14·1 answer
  • Full form of NCP?............
    5·2 answers
  • Give an explanation of one network connection (it will every helpful​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!