i am doing 7th grade coding 3.02 assignment can anybody help me it says bad input on line 3 and this is what it is can someone help me
grade = int(input("What grade are you in?"))

Answers

Answer 1

Answer:

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

if grade == 9:

print ("Freshman")

elif grade == 10:

print ("Sophomore")

elif grade == 11:

print ("Junior")

elif grade == 12:

print ("Senior")

else:

print ("Invalid")

Explanation:

You fail to provide the complete code. So, I will rewrite the code from scratch

The complete question requires that the level is printed based on the input grade.

The code has been added in the answer section.

The explanation is as follows:

[Thus gets input for grade]

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

[If grade is 9, this prints Freshman]

if grade == 9:

print ("Freshman")

[If grade is 10, then level is sophomore]

elif grade == 10:

print ("Sophomore")

[If grade is 11, then grade is Junior]

elif grade == 11:

print ("Junior")

[If grade is 12, then level is senior]

elif grade == 12:

print ("Senior")

[All other inputs are invalid]

else:

print ("Invalid")


Related Questions

A computer is assigned an IP address of 169.254.33.16. What can be said about the computer, based on the assigned address?

Answers

Group of answer choices.

A. It can communicate with networks inside a particular company with subnets.

B. It can communicate on the local network as well as on the Internet.

C. It has a public IP address that has been translated to a private IP address.

D. It cannot communicate outside its own network.

Answer:

D. It cannot communicate outside its own network.

Explanation:

Dynamic Host Configuration Protocol (DHCP) is a standard protocol that assigns IP address to users automatically from the DHCP server.

Basically, a DHCP server is designed to automatically assign internet protocol (IP) address to network devices connected to its network using a preconfigured DHCP pool and port number 67.

When a computer that is configured with DHCP cannot communicate or obtain an IP address from the DHCP server, the Windows operating system (OS) of the computer automatically assigns an IP address of 169.254.33.16, which typically limits the computer to only communicate within its network.

Generally, a computer cannot communicate outside its own network when it is assigned an IP address of 169.254.33.16.

Determine whether the phrase below is a sentence or a fragment.

While we were in Greece, we ate a lot of feta cheese.
a.
Sentence
b.
Fragment

Answers

sentence.


i believe it is sentence

In contrast to data in a database, data in a data warehouse is described as subject oriented, which means that it _____.

Answers

Answer:

focuses on a certain subject

Explanation:

it means that it focuses on that one subject and none others

Hope it helps c:

The DuPage Freight Shipping Company charges the following rates: Weight of Package Rate per Pound 2 pounds or less $1.10 Over 2 pounds, but not more than 6 pounds $2.20 Over 6 pounds, but not more than 10 pounds $3.70 Over 10 pounds $3.80 Design a program that does the following: asks the user to enter the weight of a package and displays the shipping charges. 1. Prompt the user for the weight of a package 2. Determines the rate per pound in a getRate module 3. Calculates and displays the total shipping charge in a getTotal module Hint - you may want to use a global variable for this! Please submit three things:

Answers

Answer:

The program in Python is as follows:

def getRate(weight):

   if weight<=2.0:

       rate = 1.10

   elif weight>2 and weight<=6:

       rate = 2.20

   elif weight>6 and weight<=10:

       rate = 3.70

   else:

       rate = 3.80

   return rate

def getTotal(weight,rate):

   total = weight * rate

   print("Total: ",total)

weight = float(input("Weight: "))

rate = getRate(weight)

getTotal(weight,rate)

Explanation:

This defines the getRate function

def getRate(weight):

The following if conditions determine the corresponding rate based on the value of weight passed to the function

   if weight<=2.0:

       rate = 1.10

   elif weight>2 and weight<=6:

       rate = 2.20

   elif weight>6 and weight<=10:

       rate = 3.70

   else:

       rate = 3.80

This returns the rate back to the main method

   return rate

The getTotal module begins here

def getTotal(weight,rate):

This calculates the total charges

   total = weight * rate

This prints the calculated total

   print("Total: ",total)

The main begins here

This gets input for weight

weight = float(input("Weight: "))

This gets the rate from the getRate function

rate = getRate(weight)

This passes values to the getTotal function

getTotal(weight,rate)

What penetration testing tool combines known scanning and exploit techniques to explore potentially new attack routes

Answers

Answer:

metasploit.

Explanation:

Cyber security can be defined as preventive practice of protecting computers, software programs, electronic devices, networks, servers and data from potential theft, attack, damage, or unauthorized access by using a body of technology, frameworks, processes and network engineers.

Metasploit is a penetration testing tool that combines known scanning and exploit techniques to explore potentially new attack routes. It's officially and formally licensed to Rapid7, a company based in Boston, Massachusetts.

Basically, metasploit is a framework that's mainly focused on availing end users such as ethical hackers, with information about security vulnerabilities in a system, development of intrusion detection system (IDS) signature and modular penetration testing.

plz help me to do 4 number

Answers

Answer:

A is an abbaccus.  B is Blaze Pascal.  C is The Jacquard Loom.  D is Charles Babbage.  E is The Manchester Baby.

Explanation:

Which type of infrastructure service stores and manages corporate data and provides capabilities for analyzing the data

Answers

Answer:

Data management.

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to effectively and efficiently create, store, modify, retrieve, centralize and manage data or informations in a database. Thus, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

Generally, a database management system (DBMS) acts as an intermediary between the physical data files stored on a computer system and any software application or program.

Hence, a database management system (DBMS) is a software that enables an organization or business firm to centralize data, manage the data efficiently while providing authorized users a significant level of access to the stored data.

In conclusion, data management is a type of infrastructure service that avails businesses (companies) the ability to store and manage corporate data while providing capabilities for analyzing these data.

What temperature is most commonly used in autoclaves to sterilize growth media and other devices prior to experimentation

Answers

Answer:

The most effective temparature used in autoclave is 121°C

The logical structure in which one instruction occurs after another with no branching is a ____________.

Answers

Answer:

sequence

Explanation:

The logical structure in which one instruction occurs after another with no branching is a sequence.

Write a python application that allows a user to enter any number of student test scores until the user enters 999. If the score entered is less than 0 or more than 100, display an appropriate message and do not use the score. After all the scores have been entered, display the number of scores entered and the arithmetic average.

Answers

Answer:

This program is as follows

total = 0; count = 0

testscore = int(input("Score: "))

while testscore != 999:

   if testscore < 0 or testscore > 100:

       print("Out of range")

   else:

       total+=testscore

       count+=1

   testscore= int(input("Score: "))

print(count,"scores entered")

print("Arithmetic Average:",total/count)

Explanation:

This initializes total and count to 0

total = 0; count = 0

This gets input for score

testscore = int(input("Score: "))

The following iteration stop when 999 is entered

while testscore != 999:

This prints out of range for scores outside 0 - 100

   if testscore < 0 or testscore > 100:

       print("Out of range")

Otherwise

   else:

The total score is calculated

       total+=testscore

The number of score is calculated

       count+=1

Get another input

   testscore = int(input("Score: "))

The number of score is printed

print(count,"scores entered")

The average of score is printed

print("Arithmetic Average:",total/count)

50 POINTS! PLEASE HELP!
________ is a VMware Network setting that does not put the virtual machine directly on the physical network of the computer.


Host Only

MAT

NAT

VNAT

Answers

Answer:

NAT

Explanation:

The Network Address Translation (NAT) is a Virtual Machine Software which allows organizations to make use of a single Internet Protocol by altering the private network addresses to a private one. It makes it possible to Map multiple network addresses to a public address thereby providing security. The NAT VMware allows a single device such as a router provide an information transfer interface between a private and public network. Hence, it does not use the physical network of the computer.

Answer:

NAT

Explanation:

I took the test :D Hope this helps!

If you set the Decimal Places property to 0 for a Price field, and then enter 750.25 in the field, what does Access display in the datasheet

Answers

Answer:

The answer is "750".

Explanation:

Throughout this question the even though it used to provides the precise decimal which is used as the representation or rounding requirement in software such as billing, it also used to represents only the 750, demonstrating the nearest rounding of the given technique, that's why the solution is 750.

In the context of computer and network security, _____ means that a system must not allow the disclosing of information by anyone who is not authorized to access it.

Answers

Answer:

Confidentiality

Explanation:

Cyber security can be defined as a preventive practice of protecting computers, software programs, electronic devices, networks, servers and data from potential theft, attack, damage, or unauthorized access by using a body of technology, frameworks, processes and network engineers.

In Cybersecurity, there are certain security standards, frameworks, antivirus utility, and best practices that must be adopted to ensure there's a formidable wall to prevent data corruption by malwares or viruses, protect data and any unauthorized access or usage of the system network.

In the context of computer and network security, confidentiality simply means that a computer system used for performing certain functions such as exchange of data must not allow the disclosing of information to and by anyone who is not authorized to access it.

Confidentiality refers to the act of sharing an information that is expected to be kept secret, especially between the parties involved. Thus, a confidential information is a secret information that mustn't be shared with the general public.

In conclusion, confidentiality requires that access to collected data be limited only to authorized staffs or persons.

which one of the following is not hardware​

Answers

Firewall is not hardware. It is only software.

Answer:

There r no options

Explanation:

I think the application r not the hardware.

Other Questions
4-11Cunto cuesta? Write the given prices in Spanish1.un pequeo apartamento en Espaa (227.824 euros)2. un ao de estudios en una universidad privada de Estados Unidos (38.500 dlares)3.un auto en Espaa (17.500 euros)4.un televisor de plasma (1.300 dlares)5.una nevera (1.999 dlares)6.un estreo (987 dlares) Yusef believes that his town is a very friendly community because it is situated in a valley, making it more challenging to travel in and out. He thinks the cultural characteristics arise out of natural geography. What theory is Yusefs idea MOST aligned with? The area (A) of a circle is a function of its radius (r) and is given by the function A=f(r)=pie r^2. What is the domain of this function A. All positive real numbersB. All real numbersC. All positive real numbers including 0D. All real numbers excluding fraction Pam hires Will to acquire and deliver a shipment of doodlebugs within two weeks, with time being of the essence. Will receives the shipment of doodlebugs, but Tony offers Will more money for the doodlebugs than Pam offered. Will does not expect to receive any more doodlebugs before his delivery date for Pam. Will decides to deliver the doodlebugs to Tony and collect the larger payment. Will's choice is an example of... What does the author of "The Neglected Senses" expect to learn byblindfolding herself for a walk through Lhasa?A. She expects to learn how the people of Lhasa react to the blindstudents.B. She expects to learn how the blind students navigate the city soconfidently.C. She expects to learn what Yapgchen and Choden did when theywere not in school.D. She expects to learn why Yangchen and Choden seemed to enjoywalking through Lhasa. In an experiment the mass of a calorimeter is 36.35 g . Express in micrometer ,millimetre and kg. Hardy Company manufactures a single product by a continuous process involving two production departments. The records indicate that $140,000 of direct materials were issued to and $200,000 of direct labor was incurred by Department 1 in the manufacture of the product. The factory overhead rate is $25 per machine hour; machine hours were 5,000 in Department 1. Work in process inventory in the department at the beginning of the period totaled $35,000; and work in process inventory at the end of the period was $25,000. The transfer of production costs to Department 2.Instructions: Prepare entries to record (a) The flow of costs into Department 1 for (1) direct materials (2) direct labor (3) overhead (b) The transfer of production costs to Department 2. Which of the following is NOT a purposethat the flower serves in an angiosperm?A. protects the seed in the ovaryB. collects pollen for fertilizationC. attracts pollinatorsD. transfers seeds away from plant to grow What is the first step in solving the equation x2 - 25 = 0?What is the second step in solving the equation? Which phrase best describes how flash fiction writers use pacing to manipulate time? They hint at something that will happen later. They spend more time on important events or scenes. They describe an event from before the story began. They leave out some stages of the storys plot. Margo is purchasing a home for $520,000. The property appraised at $550,000 and Margo is financing $416,000. What's the loan-to-value ratio Helppp and explain !!!! 7 of 8Write the number three million and eighty-two thousand in figures Darla posts notices in her neighborhood promising to pay $1,000 for the return of her missing Snowshoe Siamese cat. Two days later, Noelle finds the missing cat and returns it to Darla. What type of contract is this? a) A bilateral contract b) A subrogation contract c) An executory contract d) A unilateral contract e) This is not a valid contract what is the sum of all the exterior angle of a polygon Giving Brainliest Answer!!1. Knowing what you know about the topic, do you think that the Cold War is an appropriate name for the time period? Why? If you do not think it was appropriate, what do you think it should have been called? 2. To carry out the Truman Doctrine, the United States adopted the policy of containment. Do you think it was a good foreign policy? Why/why not?3. Why would the United States want to help economically rebuild Europe? What's in it for us?4. Do you think someone like Senator Joseph McCarthy could have considerable power today? Freddy offers to supply water bottles to Jerrys Gym at a cost of $40a case. The signed contract says that Jerrys Gym will buy one case of water a month for 12 months. Three months into the contract, Freddy calls Jerry And tells Jerry that the price has gone up to $70a month because Freddys product is in such high demand. Jerry refuses to pay. Jerry finds a new supplier, Wally, who will provide one case of water for 9 months at a cost of $50a case. Jerry sues Freddy for breach of contract. What type of damages is Jerrys Gym entitled to and how much money does Freddy have to pay Jerrys Gym Math pweasee 15 points CierreActividad 3/ActivLee en internet la Declaracin Universal de los Derechos de los Animales. Posteriormente, responde losiguiente:Cul de los artculos te parece el ms importante? Por qu? Is it possible for number of moles to be less than one?