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
Charra [1.4K]
2 years ago
8

Does anyone know the code for codeHS 5.4.7 teenagers?

Computers and Technology
1 answer:
Over [174]2 years ago
6 0

Answer:

function start(){

var age = readInt("Age: ");

if(age == 15){

println("Yes, you are a teenager.");

}else{

println("No, you are not a teenager.");

}

}

Explanation:

You might be interested in
Angular when to use reactiveformsmodule.
WITCHER [35]

Answer:

Image result for Angular when to use reactiveformsmodule.

In summaries, if forms are very important for your app, or reactive pattern are used in your app, you should use reactive forms. Otherwise your app have basic and simple requirement for forms such as sign in, you should use template-driven forms

Explanation:

Each form has a state that can be updated by many different interactions and its up to the application developer to manage that state and prevent it from getting corrupted. This can get hard to do for very large forms and can introduce a category of potential bugs

3 0
2 years ago
State what’s printed for each println in the code below:
allochka39001 [22]

Answer:

Explanation:

Each of the following println statements will print the following values

ystem.out.println(floozy); // Problem 1:   97.4

System.out.println(theObj.gravy); //Problem 2:  107.43

System.out.println(xray[2]); //Problem 3:  100

System.out.println(s); //Problem 4: Hello

This is because out of all of the variables that the myMethod gives a value to, the only variable that is being saved back to the global variable in the main method is a[2]. The other variables are being saved as instance variables and not being returned. Therefore, when the println statements are called they target the local variables in the main method.

7 0
3 years ago
Why is wind power a never ending source of power?
sleet_krkn [62]

Answer:

"Wind is caused by the heating of the atmosphere which is caused by the sun. Since we have the sun we have wind, since we will never lose the sun, we will never lose the wind which means it is a never-ending source of power." It's also the reason why wind power is a form of solar energy, along with that wind power does not contribute to the heating of the Earth's surface like burning fossil fuels. Very healthy for the environment of the planet.

Hope this helps.

8 0
2 years ago
Write a main program that prompts users for 5 integers. Use two separate functions to return (NOT print) the highest and lowest
Soloha48 [4]

Answer:

import java.util.Arrays;

import java.util.Scanner;

public class LatinHire {

   public static void main(String[] args) {

       Scanner in = new Scanner (System.in);

       System.out.println("Enter Five integers");

       int num1 = in.nextInt();

       int num2 = in.nextInt();

       int num3 = in.nextInt();

       int num4 = in.nextInt();

       int num5 = in.nextInt();

       int [] intArray = {num1,num2,num3,num4,num5};

       System.out.println(Arrays.toString(intArray));

       System.out.println("The Maximum is "+returnMax(intArray));

       System.out.println("The Minimum is "+returnMin(intArray));

   }

   public static int returnMax(int []array){

       int max = array[0];

       for(int i=0; i<array.length; i++){

           if(max<array[i]){

               max= array[i];

           }

       }

       return max;

   }

   public static int returnMin(int []array){

       int min = array[0];

       for(int i=0; i<array.length; i++){

           if(min>array[i]){

               min= array[i];

           }

       }

       return min;

   }

}

Explanation:

  1. This is implemented in Java Programming Language
  2. Two Methods are created returnMax(Returns the Maximum Value of the five numbers) and returnMin(Returns the minimum of the five numbers)
  3. In the Main method, the user is prompted to enter five numbers
  4. The five numbers are saved into an array of integers
  5. The returnMax and returnMin methods are called and passed the array as parameter.
  6. The entire array of numbers inputted by the user as well the Max and Min are printed

6 0
3 years ago
the handles the overall activity of the computer and provides services such as memory management, input/output activities, and s
Alisiya [41]

The operating system controls the overall activity of the computer and furnishes services such as memory management, input/output activities, and storage management.

<h3>What is operating system?</h3>

An operating system (OS) is the programme that controls all other application programmes in a computer after being installed into the system first by a boot programme. Through a specified application programme interface, the application programmes seek services from the operating system (API).

It controls the memory, operations, software, and hardware of the computer. You can converse with the computer using this method even if you don't understand its language. A computer cannot function without an operating system.

An operating system performs three primary tasks: managing the computer's resources, including the CPU, memory, disc drives, and printers; creating a user interface; and running and supporting application software.

Hence, The operating system controls the overall activity of the computer and furnishes services such as memory management, input/output activities, and storage management.

To learn more about operating system refer to:

brainly.com/question/19999569

#SPJ4

4 0
1 year ago
Other questions:
  • A company ABC asked you to design a simple payroll program that calculates and employee's weekly gross pay, including any overti
    9·1 answer
  • Off topic lol but does anyone know of a free app that lets you track family and friends like their location? Thx
    15·2 answers
  • I only want someones opinion on this not anything you would find in a book.
    7·1 answer
  • You need to install a customized console on 10 computers. what is the best way to do that?
    5·1 answer
  • Archie wants to optimize an XFS filesystem and minimize the chance of future corruption. Which of the following commands will co
    12·2 answers
  • The following is part of a log file taken from the machine on the network with the IP address of 192.168.1.106:__________.
    6·1 answer
  • Kim would like to have a simple method for entering data into a database. She should create a _____.
    14·2 answers
  • How do I modify objects in power point 2016 for an assignment
    11·1 answer
  • Given the arra
    15·1 answer
  • Given three floating-point numbers x, y, and z, output x to the power of y, x to the power of (y to the power of z), the absolut
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!