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
Marianna [84]
3 years ago
5

Plssssssssssssss Alexi is writing a program which prompts users to enter their age. Which function should she use?

Engineering
1 answer:
aleksandr82 [10.1K]3 years ago
7 0

Answer:

int()

Explanation:

float() is using decimals, so that can't be it, like float(input( "how much does this cost?"))

print() is used to print something, not a user asking, like print("hello")

string() means like a whole, like string( I am good)

By elimination, int() is correct.

Hope this helps!

You might be interested in
What is the difference between available and unavailable energy?
Anon25 [30]

Answer:

The heat absorbed portion that is transformed into work is therefore helpful and accessible for our use, hence it is termed as available energy. But the energy or heat which is of no use is termed as unavailable energy.

Explanation:

A engine requires heat from the reservoir and transforms portion of it into function. The extra heat is expelled (generally atmosphere) to  cold reservoir. The refused heat can't be equal to zero, as per the 2nd law of thermodynamics. The heat absorbed portion that is transformed into work is therefore helpful and accessible for our use, hence it is termed as available energy. But the energy or heat which is of no use is termed as unavailable energy.

5 0
4 years ago
Given two input integers for an arrowhead and arrow body, print a right-facing arrow. Ex: If the input is 0 1, the output is
Lyrx [107]

For printing a right facing with input 01, define the class for right facing arrow and give the value with appropriate space using '%6d'  and then display the right facing arrow.

Further Explanation:

The code to print the arrowhead and arrow body is as follows:

Import java.util.Scanner;

//Define the method.

public class RightfacingArrow

{

//Define the main method.

public static void main(String[] args)

{

//Create an object of Scanner class.

Scanner object = new Scanner(System.in);

//Declare the variables.

int baseChar;

int headChar;

//Prompt the user to enter the input values.

baseChar = object.nextInt();

headChar = object.nextInt();

 

//Display the headchar in position 6 from the  starting.

System.out.printf("%6d ", headChar);

//Display the arrows.

System.out.println(baseChar+""+baseChar+""

+baseChar+""+baseChar+""+baseChar+""

+headChar+""+headChar);

System.out.println(baseChar+""+baseChar

+""+baseChar+""+baseChar+""+baseChar

+""+headChar+""+headChar+""+headChar);

System.out.println(baseChar+""+baseChar

+""+baseChar+""+baseChar+""

+baseChar+""+headChar+""+headChar);

//Display the headchar in position 6 from the  starting.

System.out.printf("%6d ", headChar);

}

}

Output:

If the input is 01, the output will be as below:

    1

0000011

00000111

0000011

    1

Learn more:

1. A company that allows you to license software monthly to use online is an example of ? brainly.com/question/10410011  

2. Prediction accuracy of a neural network depends on _______________ and ______________. brainly.com/question/10599832  

Answer details:

Grade: College Engineering

Subject: Computer Science and Enginnering

Chapter: Java Programming

Keyword:

Java, input, output, programming, statements, if-else, loops, print, scan. right facing arrows, body, main body, char, int, variables, scanner class, abstract class, constructor, desctructor

8 0
3 years ago
Why must you compress the air-fuel mixture inside the combustion chamber?
8090 [49]

Answer:

all above bc heat is heat fuel is fuel

3 0
3 years ago
Read 2 more answers
You must yield the right-of-way to all of the following EXCEPT:
Elena-2011 [213]

Answer:

You must yield the right-of-way to a police car, fire engine, ambulance, or other emergency vehicle that uses a siren and flashing lights. Pull as close to the right of the road as possible and stop until the emergency vehicle(s) has passed. However, don't stop in an intersection because that would cause a wreck.

Explanation:

please have a good day. and also mark as brainllest bye

[o]-[o]

\___/

7 0
3 years ago
An intersection with a four phase signal has a displayed red time of 35 seconds, a start-up lost time of 2 seconds, a yellow tim
Temka [501]

Answer:

53 sec / cycle

Explanation:

Displayed red time = 35 seconds

Start up lost time = 2 seconds

Yellow time = 4 seconds

Red time = 1 second

Total lost time L = 2n + r

L = lost time

n = number of phase

R = red time

35+2+4+4*1

= 45

L = 2x4+45

= 53 sec/cycle

The total lost time is typically calculated as 53 seconds per cycle

3 0
3 years ago
Other questions:
  • A satellite orbits the Earth every 2 hours at an average distance from the Earth's centre of 8000km. (i) What is the average ang
    7·1 answer
  • Alberto's mom is taking a splinter out of his hand with a pair of tweezers. The tweezers are 3 inches long. She is applying .25
    12·2 answers
  • List 3 specific things you can do with a screw gun (not just screw in screws)
    9·1 answer
  • Also discuss how bandwidth is affected by increasing the number of signal elements.
    5·1 answer
  • Used ______ must be hot drained for 12 hours or crushed before disposal.
    13·1 answer
  • From the article "Time Travel Is A Fun Science Fiction Story But Could It Be Real?", Albert Einstein's Theory of Relativity is d
    11·1 answer
  • A ____________ is a term that originally was referring to a way to reproduce a technical drawing documenting an architectural or
    6·1 answer
  • In 1828, the diameter of the U.S. dime was changed to approximately 18 mm. What is this diameter when expressed in micrometers
    9·1 answer
  • Which of the following is defined as the progression of Ideas leading to the final delivery of a product?
    5·1 answer
  • What’s the answer to this I don’t understand
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!