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
grigory [225]
2 years ago
6

How many inputs are included in the following requirement? REQUIREMENT: Write a program that asks the employee for their age. Th

e program must subtract the age from 65, and display the age, followed by the number of years left to retirement.
Computers and Technology
1 answer:
wolverine [178]2 years ago
4 0

Answer:

The correct answer for the given question is 1

Explanation:

Following are the program in c language  

#include<stdio.h> // header file

#include<conio.h>  //header file

void main()  // main method

{

int age,retiredAge;  // variable

clrscr();  // clear screen

printf("Enter Age : ");

scanf("%d",&age);  // input age

printf("************************");

retiredAge = (65-age);  // calculating retired age

printf("\nYour Age is %d",age);

if(retiredAge<0)  // checking condition

{

printf("\nYou are already cross the retired age. Or Enter Invalid Age.");

}

else

{

printf("\nNo of Years Left to retired is %d",retiredAge);  // dsiplay age

}

getch();

}

Output:

Enter Age : 50

************************

Your Age is 50

No of Years Left to retired is 15

Here Age is the only required input to calculate the retirement age of employee. if entered age is greater than 65 then a message is printed " You are already cross the retired age. Or Enter Invalid Age. " if entered age is valid then retiredAge is calculated with the formula retiredAge = (65-age). and finally display the age,followed by the number of years left to retirement.

Therefore  1 input are required for the above program.

You might be interested in
What is the first character for a file or directory names if they should not be displayed by commands such as ls unless specific
riadik2000 [5.3K]

Answer: The .(dot) character

Explanation: in Linux, the period (dot) is short hand for the bash built in source. It will read and execute commands from a file in the current environment and return the exit status of the last command executed.

The .(dot) character is the first character for a file or directory names if they should not be displayed by commands such as ls unless specifically requested

4 0
3 years ago
Who is known as the father of computer? ​
juin [17]

Answer:

Charles babbage ok my boy

8 0
3 years ago
Read 2 more answers
The web today is an amazing visual and interactive stew, teeming with images, photos, videos, and whizzy web apps. Some of the w
mariarad [96]

Answer:

The correct answer to the following question is "true".

Explanation:

The answer is true because if we open any web site or web app on our mobile phone there is are a lot of information about that site. In these sites, there is a login option that option is used for providing further details. If we login on site. It stores our detail and sends the notifications in our device.

So the correct answer is "true".

3 0
3 years ago
A window frame will expand to fill the entire desktop when you _______
ValentinkaMS [17]
Hi there, It is either b or d
5 0
3 years ago
Read 2 more answers
The variable that keeps track of how many times a loop has executed is called the conditional variable. True False
VashaNatasha [74]

Answer:

A for-loop has two parts: a header specifying the iteration, and a body which is executed once per iteration. The header often declares an explicit loop counter or loop variable, which allows the body to know which iteration is being executed.

Explanation:

5 0
2 years ago
Read 2 more answers
Other questions:
  • Why is brainly not working it say im logged out rn but im not i cant acces anything but this
    12·2 answers
  • A company uses the account code 669 for maintenance expense. However, one of the company's clerks often codes maintenance expens
    15·1 answer
  • How do you change your age on here? I accidentally put that i was 15 but i am only 13. How do I change this?
    12·1 answer
  • Why is population composition by age important give reason​
    13·1 answer
  • Devon would like to install a new hard drive on his computer. Because he does not have a SATA port available on his motherboard,
    7·1 answer
  • What is modularity? Help asap
    9·1 answer
  • How many lines are on a standard sheet of typing paper?
    8·1 answer
  • In a _error,solution is working but not giving required results
    14·1 answer
  • ____ a device receiving a process variable
    12·1 answer
  • Which of the following statements best compares and contrasts hot and cold type?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!