What will be the output of the following lines of code and the user’s response?

>>> answer = input("What does your dog weigh? ")
What do you weigh? 85.7
>>> weight = int(answer)
>>> print("The weight is" , weight)
An error occurs.
The weight is 85.7
The weight is 85
The weight is 86

Answers

Answer 1

Answer:

An error occurs.

Explanation:

You cannot pass a string representation of a float ("85.7") into an int conversion, you'd have to convert it into a float first.

So weight = int(float(answer)) would work.

Answer 2

Answer: an error occurs

Explanation: got it right on edgen


Related Questions

Which structure carries the semen to the penis?

sperm duct
glands
scrotum
testes

Answers

Answer:

i think sperm duct im taking the test right now on edge 2020

Explanation:

I think

Answer:

Sperm duct

Explanation:

Which pane in PowerPoint contains images of the slides in the order they appear in the presentation

Answers

Answer:

When you insert a picture, you have to click on it a few times to get different designs.

Explanation:

Answer:

thumbnail pain

Explanation:

i just took the review

(in order of a-z)
Telephone Dog chips Snake Airplane Balloons Glove Pen Notebook Flowers Bookmark Hat Orange Turtle Lamp Scissors Poster Cup Boot​

Answers

Answer:

Airplane

Balloons

Bookmark

Boot

Chips

Cup

Dog

Flowers

Glove

Hat

Lamp

Notebook

Orange

Pen

Poster

Scissors

Snake

Telephone

Turtle

Which statement will remove 5:'softball' from the dictionary?

sports = {2:'football', 3:'soccer', 4:'volleyball', 5:'softball'}
sports.remove()

sports.pop()

sports.pop(5)

sports.remove('softball')

Answers

Answer:

sports.pop(5)

Explanation:

edg 2020

Answer:

sports.pop(5)

Explanation:

What happens when you press the Enter key at the end of a line of bulleted text? A bullet-style change results. A new bullet point is added. The next line is demoted. The next line is promoted.

Answers

Answer:

a new bullet point is added

Explanation:

im not sure what class this would be for but here

Answer:

If you press enter at the end of a bulleted line you would be adding another bullet for another bulleted line.

Explanation:

see watch>

First bulleted line (press enter)See new bulleted line

This is for B.I.M (Business.Information.Management)

Hope that helps

Plz give brainlist

Check all of the file types that a Slides presentation can be downloaded as.

.JPEG
.doc
.xls
.PDF
.pptx
.bmp

Answers

Answer:

.JPEG

.PDF

.pptx

General Concepts:

Google

Slides has an option to download a wide multitude of formats

Explanation:

If we go into File, and then under Download, we should be able to see which file types that a Slides presentation can be downloaded as.

Attached below is an image of the options.

The answers are:
.JPEG
.PDF
.pptx

Hope this helped :D

Add criteria to this query to return records where the student lastname field begins with the letter



a. run the query. font size

Answers

Answer:

To query the access database to return a group of records with lastname starting with A, change the LastName field's criteria to A, and then click the run button in the results ribbon group of the design ribbon tab.

Explanation:

Microsoft Access is a database management software used to create, manage, and query a database. Just like a spreadsheet and in relational databases, it stores data in records (rows) and fields (columns). To output the result of a query, the run button in the design ribbon tab is clicked.

__________ (10 letters) is space between lines of program code that makes the code easier to read and that the compiler ignores.

Answers

Answer:

Whitespace. I hope this helps

4.20 [5] <§4.5> Add NOP instructions to the code below so that it will run correctly on a pipeline that does not handle data hazards. ADDI X1, X2, #5 ADD X3, X1, X2 ADDI X4, X1, #15 ADD X5, X3, X2

Answers

Answer:

Following are the solution to this question:

Explanation:

The following is the sequence of instructions to ensure proper implementation after adding NOPs:  

[tex]ADDI \ Xl,X2, \#5\\NOP\\NOP\\NOP\\ADD \ X3, X1,X2\\ADDI \ X4, X1, \#15\\ADD \ X5, X3,X2\\[/tex]

The value of the X1 is identified in the first ADDI order X1, X2, #5, mostly on the WB level, which appears in clock cycle five. Before the second instructions, three NOPs are added because as second instruction should wait for X1 to be correct.

Its second primary example with cycle 5, but ends through cycle 9. clock. Since X3 quality doesn't execute its third command, no NOP is inserted.

Its third instruction begins at clock cycle 6 and finishes at clock cycle 10. Because the fourth order is not required to execute an X4 value, no NOP is inserted, and the fourth instruction begins in cycle 7 and finishes at clock cycle 11.

The online underground is used___.
Select 3 options.

Answers

Answer:

I think its the 4th one but im not that sure tho sorry!

Explanation:

Answer:

1,3,4

Explanation:

By cybercriminals to sell ransom services,by cybercriminals to purchase malicious software,for networking by criminal organizations

The length of time that a slide appears before automatically advancing to the next slide can be set in the

A. Timing group under the Transitions tab.
B. Transition to This Slide group under the Transitions tab.
C. Timing group in the Master Slide view.
D. Transition to This Slide group in the Master Slide view.

Answers

Answer:

A.

Explanation:

The transition time between slides can be specified in a presentation. The duration of transition can be set by going to the 'Transitions Tab' then in 'Timing Group/Section'. In the timing group, duration can be increased or decreased, as per the desire. The time is set in seconds in duration section.

So, the length of time between two slides can be changed by going to the 'Timing group' under the 'Transitions Tab'.

Therefore, option A is correct.

Answer:

A

Explanation:

what is 38 - -93 + 2 x 4.6?
and what’s 9,220 - -2.3 x U

Answers

Answer:

the first equation is 140.2

what's the last eqaution U???

Explanation:

A digital computer has a memory unit with 26 bits per word. The instruction set consists of 756 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory. a. How many bits are needed for the opcode? b. How many bits are left for the address part of the instruction? c. What is the maximum allowable size for memory? d. What is the largest unsigned binary number that can be accommodated in one word of memory?

Answers

Answer:

a. the number of bits needed for the opcode = 10

b. address part is = 16 bits

c. maximum allowable size of memory = 65536

d. Maximum memory size per word = 67108864

Explanation:

The memory size of the instruction set is 756 which is less than 2^10 (that is 1024).

Since the word size is 26 bits and the instruction takes 10, the remaining 16 is for the address part which is 65536 memory address. The maximum number of memory size for a word is 67108864.

Write the code which prints "Access granted!" if the correct password, "swordfish" is entered, and "Access denied!" otherwise.

JAVA IM DESPERATE!!!!

Answers

im not sure but use some "if" things and do it like "if swordfish is entered display 'access granted' " then like "if swordfish not entered display 'access denied' "

idrk how to write java tho

What is net pay?
What is net pay?

Answers

Answer:

Net pay is an employee’s earnings after all deductions are taken out. Obligatory deductions such as the FICA mandated Social Security tax and Medicare are withheld automatically from an employee’s earnings. Other deductions come in the form of benefits, which may be optional. Health, dental and vision insurance, life insurance, or a retirement fund may be offered through an employer. These costs will come in the form of a deduction from the employee’s gross pay, or salary.

Net pay refers to the amount an employee takes home, not the amount it cost to employ them. Retirement plan contributions, employee benefits, and employer FICA taxes are deducted before an employee receives their net pay.
I hope this helps!! :))

Mississippi law codes state that bullying and cyberbullying are against the law. A court can decide to incur ____________________ time or a_____________________ or both depending on the degree and the frequency of the infraction, and the age of the perpetrator.

Answers

Answer:

1) Imprisonment

2) Fine

Explanation:

By the 2013 Mississippi Code, on Cybercrimes and Identity Theft, it is against the law to make use of electronic mail or other forma of electronic communication to engage in cyber bullying, which involves the use of threatening language of inflicting arm or with an aim to extort money from another person

The punishment for cyber bullying, includes imprisonment time or a fine or both.

Therefore, for the question, we have; Mississippi law codes state that bullying and cyberbullying are against the law. A court can decide to incur imprisonment time or a fine or both depending on the degree and the frequency of the infraction, and the age of the perpetrator.

who loves wwe and which game of it

Answers

Answer:

Literality me

Explanation:

Answer:

i do :)

Explanation:

i like to watch the wwe monday night raws with my dad

Which of the following describes why graphical interfaces quickly became popular after their introduction to the mass market?

A.superior usability
B.form over function
C.strong ISO standards
D.contextual design analysis of a market demographic

Answers

A.superior usability

What will be the output of the following lines of code and the user's response?

Answers

Answer:

The answer is C. 85

Explanation:

The int() function is usually used to turn a float, to an int. When you use the int() function, it just cuts of everything past the decimal. It doesn't round the float. Leaving you with the option C. 85

hope this helped you :D

Which of the following statements best describes the
location of the Options bar?
Select one:
At the top of the workspace window, home for
essential commands, adjustments and actions
Directly beneath the Menu bar, it displays available
options for the tool selected in the Tools Panel
At the left of the workspace window, it is a column
of icons for creating and editing
At the right of the workspace, the contains the
groups of controls for working with images

Answers

The statements that best describes the location of the Options bar is

Directly beneath the Menu bar, it displays available options for the tool selected in the Tools Panel.

What is option bar?

Option bar serves as a tool bar, where some functional tools can be gotten when running a program.

Therefore, option bar is located Directly beneath the Menu bar, it displays available options for the tool selected in the Tools Panel

Learn more about options bar at;

https://brainly.com/question/1360051

In microsoft word, you can change the look of paragraphs by: select all that apply
a. changing page margins
b. organizing lists of information into bullets
c. changing text spacing
d. changing text alignment​

Answers

Answer:

Changing Text Alignment, D

Explanation:

what is the name of the statement used for providing calculations in pseudocode​

Answers

Answer:

processing statement

Explanation:

processing statement is used to perform calculation or assignment.

Explain how an off-site computer can be used to modify a drawing held at another computer location.

Answers

Answer:

Through a remote network shared by both computers

two devices that may be used for creating,storing,and transmitting documents input devices

Answers

Answer:

electronic notebook or a pc?

Explanation:

sorry if its wrong of doesnt help

What will happen when you drag and drop a worksheet tab into another workbook WITHOUT holding the Ctrl key down?
Choices:
A. The worksheet will be MOVED.
B. The worksheet will be COPIED.
C. Nothing will happen.

Answers

Answer:

Its defeintly not C so pick either A or B depending on what control does

Explanation:

Answer:

A

Explanation:

I went into excel and tried. The sheet gets moved.

Select all that apply.
What features must be completed from the Master Page screen?
Inserting headers or footers
Inserting a watermark
changing the template
Inserting a table

Answers

Answer:

Inserting headers or footers Inserting a watermark

Explanation:

A Master Page is a page which can be used with the majority of the documents of your paper as a reference. Master pages may have visuals elements, such as headlines, footers, column headings, etc that occur on all publishing pages.

Choose the best type of loop for each situation.

1. You are finding the batting average of 13 baseball players.
a- for
b- while

2. You are asking your users for the names of all the stores where they shopped to find their friend's birthday
present. They will show they are done by entering the word "done."
a- for
b- while

Answers

Answer:

1. Option A: for loop is correct

2. Option B: while loop is correct

Explanation:

Two loops are used commonly. For and while

For is used when the number of iterations are already known and while is used when number of iterations is not known and the loop has to be terminated based on any condition.

1. You are finding the batting average of 13 baseball players.

For loop will be used as the number of iterations is already known. The score of 13 players has to be used to calculate the average so there will be 13 iterations. Hence, for loop will be used.

2. You are asking your users for the names of all the stores where they shopped to find their friend's birthday  present. They will show they are done by entering the word "done."

While loop will be used as the termination of loop depends on the input given by the user so the number of iterations are not already known.

Hence,

1. Option A: for loop is correct

2. Option B: while loop is correct

Answer: 1.for 2. while

Explanation: got it right on edgen

What’s 9- 4 x y + 44 - -8
and what is 77 - 1.3 + -22

Answers

Answer:

1. -4y + 61

2. 53.7

evaluate:15+5*(8-5)/14

Answers

Answer:

225/14

Explanation:

By BODMAS

15 + 5 × (8-5) ÷ 14

= 15 + 5 × 3 ÷ 14

= 15 + 5 × 3/14

= 15 + 15/14

= 210/14 + 15/14

= (210 + 15)/14

= 225/14

Write a program that asks the user to enter 2 words, then prints "Great!" if the two words are identical, "Close enough" if they are the same length and all but the last letter matches, and "Try again" otherwise.

java, desperate fr

Answers

Answer:

 System.out.println("Enter 2 strings:");

   Scanner scan = new Scanner(System.in);

   String a = scan.nextLine();

   String b = scan.nextLine();

   int c = a.length();

   int d = b.length();

   String e =  a.substring(0, a.length()-1);

   String f = b.substring(0, b.length()-1);

   if (a.equals(b)){

     System.out.println("Great!");

   }

   else if (c== d && e.equals(f)){

     System.out.println("Close enough");

   }

   else{

     System.out.println("Try again");

   }

 }

 

}

Explanation:

Following are the java program to comparing the words:

Program Explanation:

Import package.Defining the main class.Defining the main method.Inside the main method two string "f,s" is declared that uses input method to input value.After input value multiple conditional statement is declared that checks inputs value.In the if block, it checks first string value equal to second value, if it is true it will print a message "Great!".In the else if block it checks string value that has same length, for this it uses "l" variable that checks length value, and the print the message "Close enough".In the else block, it will print the message "Try again".

Program:

import java.util.*;//import package public class Main //defining a class {    public static void main(String[] ars) //defining main method    {        String f,s;//defining String variable        Scanner obc=new Scanner(System.in);//creating Scanner class object        System.out.print("Enter First word: ");//print message        f=obc.next();//input value        System.out.print("Enter Second word: ");//print message        s=obc.next();//input value        if(f.equals(s))//use if to check input string value are equal            System.out.println("Great!");//print message        else if(f.length()==s.length())//using else if block that checks string value has same length         {            int c=0;//defining integer variable             int l=f.length();//defining integer variable l that holds first string length value            for(int i=0;i<l;i++) //using for loop to compare string value            {                if(f.charAt(i)==s.charAt(i))//use if to compare string by using charAt method                    c++;//incrementing c value            }            if(c==l-1 && f.charAt(l-1)!=s.charAt(l-1)) //comparing string            {                System.out.println("Close enough");//print message            }        }        else //defining else        {            System.out.println("Try again");//print message        }    } }

Output:

Please find the attached file.

Learn more:

brainly.com/question/20875119

bvbmb

Other Questions
TRUE OR FALSE?-7 = (-5) - (-12) Command Economy is a economic system based on everyone has abusiness?TrueFalse ALEKS math plz help. Ill give brainliest. What is the measure of E, in degrees?#ChoiceA.849B.480C.Cannot be determinedD960 Mr. Peat does great magic tricks who is my next door neighbor. Which word should the adjective clause go next to? The following data were reported by a corporation: Authorized shares 28,000 Issued shares 23,000 Treasury shares 7,500 The number of outstanding shares is: In medium-sized stars such as the Sun, nuclear fusion almost always means the fusing of (1)________ nuclei to form (2)_________, but larger stars can produce elements as heavy as (3)_________. 1. HeliumHydrogenNitrogen2. HydrogenLithiumHelium3. CopperSilverIron Find the value of the following expression:(38 25 90)2 2 to the power of negative 2 over 3 to the power of 3, whole to the power of 4 328 (5 points)Write your answer in simplified form. Show all of your steps. (15 points) QUICK!!! Marking first answer brainliest!!! Which ranks these careers that employers are most likely to hire from the least to the greatest? what is the GCF of 7/3ab and -7/6b 1/3b 1/3ab 7b 7ab What is one way in which the University of Georgia is unique among American universities? will mark brainlist help me plz !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!owo PLS HELP : Use these in a sentenceDemocraticParliamentaryPresidentialCitizensGovernment 2. Why are citizens required to register before they can vote in most states? Which of the following resolved the issue of whether slaves could be used to determine the number of representatives a state could have? (5 points)Group of answer choicesConnecticut CompromiseElectoral CollegeGreat CompromiseThree-Fifths Compromise 1. I did not notice that you werehe office I I has behind he frontdesk all day. How far in advance is weather forecasting most accurate Certaines personnes aiment rester seules ; dautres, au contraire, aiment avoir de la compagnie (des ami(e)s)Et vous, que prfrez-vous ?Rdigez un texte dans lequel vous dveloppez votre avis laide darguments prcis. John increased the amount of water he drinks every day from32oz to 58oz By what percentage dd John increase theamount of water he drinks?4685% b) 58.1%c) 68.9% d) 81.25%O a 46.85%Ob 58.10 C 88.9%od 81.25%