Edhisive 3.5 code practice

Answers

Answer 1
Answer:

Answer:

x = int(input("What grade are you in? "))

if (x == 9):

   print ("Freshman")

elif (x == 10):

   print("Sophomore")

elif (x == 11):

   print ("Junior")

elif (x == 12):

   print("Senior")

else:

   print ("Not in High School")

Explanation:


Related Questions

Many organizations have policies that require users to: a. retain their passwords for a minimum of 30 days. b. include at least three consecutive letters of part of their name in their passwords. c. change their passwords on a regular basis. d. share their passwords with the administrator.
Assign True to the variable has_dups if the string s1 has any duplicate character (that is if any character appears more than once) and False otherwise.Here is the answer I wrote:i = []for i in range(len([s1])):if s1.count(s1[i]) > 1:has_dups = Trueelif s1.count(s1[i]) = 1:has_dups = FalseHere is the message I got from the system:Solutions with your approach don't usually use: elifPlease Help me to correct it.
A ____ statement is a a control flow statement that repeatedly executes a statement or a series of statements while the value of a specific condition is truthy or until the value of a specific condition becomes truthy.a. decision-makingb. forkc. breakd. loop
What are the similarities and differences between the editor-in-chief, managing editor, assignment editor, and copyeditor? Your response should be at least 150 words.
NAT ________. allows a firm to have more internal IP addresses provides some security both allows a firm to have more internal IP addresses and provides some security neither allows a firm to have more internal IP addresses nor provides some security

An example of negative self-talk is:

Answers

Answer:

when you call yourself fat or ugly......but that was my answer but pls dont ever be negative abt yalls selfs i love yall the way u are and if u eva wanna talk ill do it in the comments

Explanation:

Answer:

for example, when there is a bad driver on the road near you does something dumb and the little voice in your head always says you idiot watch where you are going. It also can be when you put yourself down like saying that you are dumb or that you will never get a job

In almost all cases, touching power lines or coming into contact with energized sources will result in what? Select the best option. First degree burns
Severe injuries or death
Neurological damage
Amputations

Answers

In almost all cases, touching power lines or coming into contact with energized sources will result in Severe injuries or death. Thus, option second is correct.

What is energized sources?

Electrical, mechanical, chemical, pneumatic, chemical, thermal, and other energy sources in machinery and equipment can be harmful to employees.

De-energization may entail turning off a machine and unplugging it, or removing a switch before applying a lock to prevent the equipment from being accidentally starting up. Lockout can be enforced once energization is complete.

Touching electricity lines or making contact with electrical sources will almost always result in severe injury or death. As a result, option two is correct.

Learn more about sources here:

brainly.com/question/2000970

#SPJ2

Answer:

Severe injuries or death

Explanation:

How many thermal performance control modes are there in Alienware Area 51m to support different user scenarios?

Answers

It should be noted that the number of thermal performance mode is 5.

From the complete information, it should be noted that there are five thermal performance control modes are there in Alienware Area 51m to support different user scenarios.

The modes are:

  • Full speed mode.
  • Performance mode.
  • Balanced mode.
  • Quiet mode.
  • Cool mode.

In conclusion, the correct option is 5

Learn more about modes on:

brainly.com/question/25604446

Answer:

3

Explanation:

The Dell Alienware Personal Computers refers to a range of PC's which are known for their strength, durability and most commonly their graphical performance. Th ecomputwrs are built to handle very high and intensive graphic demanding programs including gaming. The Alienware area 51m is a laptop which has been loaded with the capability and performance of a high graphic demanding desktop computers boasting massive memory size and greater graphic for better game play and high graphic demanding programs.

The laptop features an improved thermal and performance capability to handle the effect of different graphic demanding programs. Therfore, the laptop has 3 different thermal a d performance system modes which altenrtes depending on graphic demands in other to handle intensive demands.

When do you need to apply for program completion andreview?a. 1-2 semesters before program completion

b. one month before program completion

c. a couple of weeks before program completion

d.Never, you don’t need to complete any paperwork to prepare for program completion

Answers

Answer:

d. Never, you don’t need to complete any paperwork to prepare for program completion

Explanation:

Program completion is depends on completion of your course work and successful thesis defense. If all the requirements to complete the program are successfully completed with required grades university/ Institute will automatically  complete your program. In case you have any requirement left or any course having grade 'F' your program will not be considered as completed. In case if you want to improve some grade or revise some course you should write to the university that you want improve some course or grade.

So, there is no need to complete any paper work to prepare for program completion.

Whichof following can be thrown using the throw statement?ErrorThrowableExceptionRuntimeExceptionAll of Given

Answers

Answer: Exception

Explanation: A throw statement is a statement that whenever it gets executed ,it stops the flow of the execution immediately. The throw statement has a throw keyword for stopping of the execution which is denoted as the exception. A checked or unchecked exception can only be thrown. The compiler of a program has the function of giving warning if there are chances of exception.

(Palindrome integer) Write the methods with the following headers // Return the reversal of an integer, i.e., reverse(456) returns 654 public static int reverse(int number) // Return true if number is a palindrome public static boolean isPalindrome(int number) Use the reverse method to implement isPalindrome. A number is a palindrome if its reversal is the same as itself. Write a test program that prompts the user to enter an integer and reports whether the integer is a palindrome.

Answers

Answer:

import java.util.Scanner;

public class PalindromeInteger {

public static void main(String[] args) {

 // Create an object of the Scanner class to allow for user's inputs

 Scanner input = new Scanner(System.in);

 // Create a prompt to display the aim of the program.

 System.out.println("Program to check whether or not a number is a palindrome");

 // Prompt the user to enter an integer number.

 System.out.println("Please enter an integer : ");

 // Receive user's input and store in an int variable, number.

 int number = input.nextInt();

 // Then, call the isPalindrome() method to check if or not the

 // number is a  palindrome integer.

 // Display the necessary output.

 if (isPalindrome(number)) {

  System.out.println(number + " is a palindrome integer");

 }

 else {

  System.out.println(number + " is a not a palindrome integer");

 }

}

// Method to return the reversal of an integer.

// It receives the integer as a parameter.

public static int reverse(int num) {

 // First convert the number into a string as follows:

 // Concatenate it with an empty quote.

 // Store the result in a String variable, str.

 String str = "" + num;

 // Create and initialize a String variable to hold the reversal of the  

 // string str. i.e rev_str

 String rev_str = "";

 // Create a loop to cycle through each character in the string str,

 // beginning at  the last character down to the first character.

 // At every cycle, append the character to the rev_str variable.

 // At the end of the loop, rev_str will contain the reversed of str

 for (int i = str.length() - 1; i >= 0; i--) {

  rev_str += str.charAt(i);

 }

 // Convert the rev_str to an integer using the Integer.parseInt()

 // method.  Store the result in an integer variable reversed_num.

 int reversed_num = Integer.parseInt(rev_str);

 // Return the reversed_num

 return reversed_num;

}

// Method to check whether or not a number is a palindrome integer.

// It takes in the number as parameter and returns a true or false.

// A number is a palindrome integer if reversing the number does not

//  change the  number itself.

public static boolean isPalindrome(int number) {

 // check if the number is the same as its reversal by calling the

 //reverse()  method declared earlier. Return true if yes, otherwise,

               // return false.

 if (number == reverse(number)) {

  return true;

 }

 return false;

}

}

Explanation:

The source code file for the program has also been attached to this response for readability. Please download the file and go through the comments in the code carefully as it explains every segment of the code.

Hope this helps!