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
scoundrel [369]
4 years ago
5

Assume that name and age have been declared suitably for storing names (like "Abdullah", "Alexandra" and "Zoe") and ages respect

ively. Write some code that reads in a name and an age and then prints the message "The age of NAME is AGE." where NAME and AGE are replaced by the values read in for the variables name and age. For example, if your code read in "Rohit" and 70 then it would print out "The age of Rohit is 70.".
Computers and Technology
1 answer:
Irina18 [472]4 years ago
3 0

Answer:

import java.util.Scanner;

public class num2 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter Name");

       String name = in.next();

       System.out.println("Enter Age");

       int age = in.nextInt();

       System.out.println("The age of "+name +" is "+age);

   }

}

Explanation:

Java programming language is used to write the code.

The scanner class is used to prompt and receive values for name and age which are stored in the appropriate variables.

The key idea here is using string concatenation in the output statement in order to print the desired output

You might be interested in
If you think a query is misspelled, which of the following should you do? Select all that apply.
Alik [6]

Answer:

The answer is: letter C, For obviously misspelled queries, base the utility rating on user intent.

Explanation:

The question above is related to the job of a "Search Quality Rater." There are several guidelines which the rater needs to consider in evaluating users' queries. One of these is the "User's Intent." T<u>his refers to the goal of the user. </u>A user will type something in the search engine because he is trying to look for something.

In the event that the user "obviously" misspelled queries, the rate should be based on his intent. It should never be based on why the query was misspelled or how it was spelled. So, no matter what the query looks like, you should assume that the user is, indeed, searching for something.

Rating the query will depend upon <u>how relevant or useful it is and whether it is off topic. </u>

4 0
3 years ago
Read 2 more answers
Write three statements to print the first three elements of array runTimes. Follow each statement with a newline. Ex: If runTime
Lady_Fox [76]

Answer:

Following are the program in c language

#include <stdio.h> // header file

int main() // main function

{

  int runTimes[5]={800,775,790,805,808}; // declared the array

  for (int k = 0; k < 3; k++) // itearting the loop

  {

     printf("\n%d",runTimes[k]); // display array

  }

  return 0;

}

Output:

800

775

790

Explanation:

Following are the description of program

  • Declared a array "runTimes[5]" as the" int " type and store the five integer value in it .
  • After that iterating the for loop from the 0 index to the less then 3 index .
  • Inside the for loop we print the corresponding value that are stored in the particular index in the nextline .
5 0
3 years ago
Place the stages of teamwork in the correct order and describe what occurs in each.
Phantasy [73]
Pretty sure we need a picture
5 0
4 years ago
True or false?
GaryK [48]

Answer:

True

Explanation:

The Federal communications commission (FCC), is responsible for evaluating the effect of radio frequency and electromagnetic radiations and emissions on the consumers of products which make use of these frequencies and radiation energy. Devices such as cell phones are not allowed to emit radiation higher than a certain safe standard or frequency, set by the Federal communications commission.

The Federal communications commission also provides bulletins and publications that present safety information and guidelines for industries and consumers involved with radio frequency and electromagnetic radiation.

4 0
4 years ago
When the coolant system thermostat is closed, coolant is allowed to flow to the
Sergio039 [100]
<h2>Answer:</h2>

When the coolant system thermostat is closed, coolant is allowed to flow to the Engine.

As soon as the indoor regulator is shut the coolant moves towards the engine and makes it warm this is referred as cold motor activity.


6 0
4 years ago
Other questions:
  • RADIAC instruments that operate on the ionization principle are broken down into three main categories based on what?
    15·1 answer
  • Learning about public speaking can help improve your ________________.
    15·1 answer
  • What is the main storage location of a computer
    13·1 answer
  • A computer retail store has 15 personal computers in stock. A buyer wants to purchase 3 of them. Unknown to either the retail st
    14·1 answer
  • The position of a _____ is a nontechnical position responsible for defining and implementing consistent principles for setting d
    15·1 answer
  • Which tool do you think would be the most useful if you were designing a logo for a business?
    6·2 answers
  • Explain in a few sentences the difference between analytical papers and argumentative papers.
    8·2 answers
  • (tco 8) the process of granting a user access to an application is called _____.
    15·1 answer
  • What type of photography is represented by a photograph of a dog on a beach ?
    11·1 answer
  • Debug the recursive reverseString method, which is intended to return the input String str reversed (i.e. the same characters bu
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!