Write an expression that will print "in high school" if the value of user_grade is between 9 and 12 (inclusive).

Answers

Answer 1

Answer:

C#

if(user_grade >=9 && user_grade <=12)

{

   Console.WriteLine("In Highschool");

}

Python

if user_grade >= 9 & user_grade <= 12:

  print("In Highschool")

Java

if(user_grade >=9 && user_grade <=12)

{

   System.println("In Highschool");

}

Explanation:


Related Questions

Are Dogs are better than video games?

Answers

sometimes bc dogs are very lovey but video games also have there moments

Answer:

In some cases yes.

Explanation:

Some days I really enjoy my video games and other days I enjoy being with my dog but sometimes they are annoying especially if they have way more energy than you

Write a function named findmax()that finds and displays the maximum values in a two dimensional array of integers. The array should be declared as a 10 row by 15 column array of integers in main()and populated with random numbers between 0 and 100.

Answers

Answer:

import java.util.*;

public class Main

{

public static void main(String[] args) {

    Random r = new Random();

    int[][] numbers = new int[10][15];

   

    for (int i=0; i<10; i++){

        for (int j=0; j<15; j++){

            numbers[i][j] = new Random().nextInt(101);

        }

    }

   

    for (int i=0; i<10; i++){

        for (int j=0; j<15; j++){

            System.out.print(numbers[i][j] + " ");

        }

        System.out.println();

    }

   

    findmax(numbers);

}

public static void findmax(int[][] numbers){

    int max = numbers[0][0];

   

    for (int i=0; i<10; i++){

        for (int j=0; j<15; j++){

            if(numbers[i][j] > max)

                max = numbers[i][j];

        }

    }

    System.out.println("The max is " + max);

}

}

Explanation:

*The code is in Java.

Create a function called findmax() that takes one parameter, numbers array

Inside the function:

Initialize the max as first number in the array

Create a nested for loop that iterates through the array. Inside the second for loop, check if a number is greater than the max. If it is set it as the new max

When the loop is done, print the max

Inside the main:

Initialize a 2D array called numbers

Create a nested for loop that sets the random numbers to the numbers array. Note that to generate random integers, nextInt() function in the Random class is used

Create another nested for loop that displays the content of the numbers array

Call the findmax() function passing the numbers array as a parameter

Other Questions
100.0 mL of 4.0C water is heated until its temperature is 37C. If the specific heat of water is 4.18 J/gC, calculate the amount of heat energy needed to cause this rise in temperature. bruh ur no help its not even a answer dumbo Translate: I love you a lot.Te amo muchamente.Te amo poco.Te amo muyTe amo mucho. at 6:00 PM its 24F at midnight the temperature was 636F lower than Apple what will the temperature at midnight Did the Articles of Confederation have checks and balances? How many 1000-Watt lights can be plugged into a standard 120-Volt, 15-Amp outlet? (Hint: W/V=A) * Giving brainiest explain answer Which of the following contains the most atoms?24.305 g Mg39.098 gk21.62 g B9.0122 g Be Which sets of values belongs to the domain and range of a relation The car traveled 42.5 miles per gallon of gas. If the gas tank in the car could hold 16.5 gallons, how far can the car travel on one tank of gas? (Don't round answer)Please, help I am really confused! LOOKING BACKChildren, I have here different school scenarios. Supposed to be that youare going to role play the characters with your classmates in the picture. Thinkof questions to ask to initiate conversation with your peers.What are some questions that you could ask to yourclassmate to start conversationQUESTIONSWhoWhatWhereWhenWhyHowDoDidCanisAreHave A skier rides horizontally off of a 200 meter high cliff. If he lands 25 meters away fromthe base of the cliff, how fast was he skiing as he went off the edge? President Theodore Roosewer's foreign policy served to increase US involvement in -China's Boxer RebellionHawai's pineapple industrylatin american affairs European alliance systems Translate the mRNA into the corresponding amino acids. A checking account is overdrawn if it has anegative balance. Marc's account is overdrawn by$45. What will the balance be after he deposits$170 and writes a check for $59? I NEED HELP can someone find the slope from these equations why does a deletion mutation usually cause more defects during protein synthesis than a point mutation? PLEASE HURRY!!!Examine the leaves of a palm tree.Which statement most specifically describes a palm tree? Choose one answer.Palm trees are dicots.Palm trees are monocots.Palm trees are angiosperms.Palm trees are flowering plants. An airplane travels 550 miles from North Carolina to Tennessee in 90 minutes. At this rate, how many minutes will it take the airplane to travel 6,600 miles? Solve for X.Just type the number only, the answer is a positive whole number