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
Aneli [31]
3 years ago
10

CHALLENGE

Computers and Technology
1 answer:
Lorico [155]3 years ago
6 0

Answer:

Following are the program to this question:

#include <stdio.h>//using the header file

int main()//main method

{

int y;//defining integer variable y

printf("Enter year value:");//print message

scanf("%d", &y);//use input method for input year value

if (y>= 2101)//defining if block that checks year greater then 2101

   printf("Distant future");//print message

else if (y>= 2001)//defining else if block that checks year greater then 2001

   printf("21st century"); //print message

else if (y>= 1901)//defining else if block that checks year greater then 1901

   printf("20th century");//print message

else  //defining else block

   printf("Long ago");//print message

   return 0;

}

Output:

Enter year value:1998

20th century

Explanation:

In the given C language code, inside the main method, an integer variable "y" is defined, which allows the user to input the year value, and use the multiple conditions to check the given value and print message when the condition is matched.  

  • Inside the "if" condition block, it checks the "y" variable value is greater and equal to 2101. so, it will print "Distant future", otherwise go to the next condition.
  • In this, if "y" value is greater than equal to "2001", it will print the message "21st century", otherwise go to the next condition.  
  • In this, If the value of "y" is greater than equal to "1901", it will print the message "20th century", and if all the above condition is not true, then it will go to the else block, and it will print "Long ago" as the message.
You might be interested in
The three main objectives of information security are
kirill115 [55]

Answer:

confidentiality, integrity, availability

Explanation:

Confidentiality: Data and information assets must be confined to people who have authorized access and not disclosed to others

Integrity: Keeping the data intact, complete and accurate, and IT systems operational

Availability: An objective indicating that information or system is at disposal of authorized users when needed.

7 0
2 years ago
The _________ is an invisible horizontal line that goes across the center of the turtle graphics window.
Debora [2.8K]
I would pick c because it would make more sense
5 0
3 years ago
Does The operating system assigns the file, name and location inside
valina [46]

Answer:

The operating system assigns the file its name, location, and size. When you add information to a word-processing document, one of the roles that your operating system plays is that is saves your unsaved work to temporary storage.

Explanation:

7 0
3 years ago
What is the impact of ict on school policy<br>​
Montano1993 [528]

Answer:

It improves the effectiveness of education. It aids literacy movements. It enhances scope of education by facilitating mobile learning and inclusive education. It facilitates research and scholarly communication.

Explanation:

7 0
2 years ago
Read 2 more answers
Which areas can be used to create names in the Create from Selection feature in the Formula tab? Check all that
alina1380 [7]

Answer:

top row, left column, right column, bottom row and Apply or ok.

Explanation:

The question above wants to test our knowledge on the use of Excel app. (application) or software worksheet and this is in how create names in the Create from Selection feature in the Formula tab.

Check the steps in the creation of names in the Create from Selection feature in the Formula tab below;

(1). Highlight your range(note that this must include the rows and the columns) , (2). Click on FORMULAS, then select CREATE FROM SELECTION from the pop up options, (3). Then, in the section where you can see CREATE NAMES FROM SELECTION make sure you click on all the check boxes included, (4). Click on TOP ROW(If you have only the row at the header) and vice versa, (5). Click on TOP ROW and LEFT COLUMN(if both are involved) and vice versa, and (6). Click on APPLY or OK.

4 0
3 years ago
Read 2 more answers
Other questions:
  • For Official Use Only (FOUO) and Controlled Unclassified Information (CUI) may include all of the following except: (circle one)
    10·1 answer
  • After earning a learner license what test must be successful passed to earn an operator license?
    14·1 answer
  • When seeking information on the internet the most helpful place to look is?
    14·2 answers
  • The proper hand position for keyboarding.
    15·1 answer
  • Write a program that prompts the user to enter the center and a point on the circle. The program should then output the circle’s
    9·1 answer
  • This allows you to access structure members.
    10·1 answer
  • Which is a requirement for searching for a template
    14·1 answer
  • One of the differences between a career and a job is that a career?
    13·1 answer
  • Use the drop-down menus to match the description to the correct audio-editing technique or term. deleting unwanted sounds increa
    14·2 answers
  • Which three steps might be included in an algorithm for a digital thermostat?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!