To write 10 lines of code on paper:

It must include
2 Print statements
an IF statement
2 integers/floats with a calculation

Answers

Answer 1

print("enter numbers between 1 and 10")

num1=float(input("enter the first digit to add together"))

num2=float(input("enter the second digit to add together"))

if num1 and num2 >=10:

answer=num1+num2

print(answer)

else:

print("answer not accepted please try again later")

exit()


Related Questions

What is the decimal representation of the following signed binary numbers?
10000000
11001100
10110111

Answers

Answer:

(10000000)₂ = -128 in decimal

(11001100)₂ = -52 in decimal

(10110111)₂ = -73 in decimal

Explanation:

NOTE: If Most Significant Bit is 0, it is positive number and if MSB is 1, it is negative number. If number is positive we can simply convert it to decimal. But if number is negative, follow following formula:

(complement of the number) +1

EXAMPLE 1

  (10000000)₂

  (01 1 1 1 1 1 1)₂   ↔  complement of the number

+                    1

  (10000000)₂ = 1 ×[tex]2^{7}[/tex]= 128 (magnitude in decimal)

But we remember MSB was 1 so answer is -128.

EXAMPLE 2

  (1 1 0 0 1 1 00)₂

  (0 0 1 1 0 0 1 1)₂

+                       1  

  (0 0 1 1 0 1 0 0)₂ = 52 (magnitude in decimal)

But we remember MSB was 1 so answer is -52.

EXAMPLE 3

  (1 0 1 1 0 1 1 1)₂

  (0 1 00 1 000)₂

+                      1  

  (01 00 1 00 1‬)₂ = 73 (magnitude in decimal)

But we remember MSB was 1 so answer is -73.

Final answer:

To convert signed binary numbers to their decimal representation, check if the first bit is 1 (indicating a negative number) and then find the two's complement of the rest of the bits. After converting the two's complement to decimal, prefix the number with a negative sign. For example, 10000000 represents -128, 11001100 represents -52, and 10110111 represents -73 in decimal.

Explanation:

The question asks about converting signed binary numbers into their decimal representations. Signed binary numbers use the leftmost bit as a sign indicator, where 0 usually means positive and 1 means negative. To convert them into decimals, one must understand two's complement notation, which is a method used to represent negative binary numbers.

Steps for converting signed binary numbers to decimal:

Check the first bit (most significant bit). If it is 0, the number is positive. If it is 1, the number is negative and you will proceed with finding the two's complement of the rest of the bits.To find the two's complement, invert all the bits (change 1s to 0s and vice versa) and then add 1 to the least significant bit.Convert the resulting binary number to a decimal number.If the original most significant bit was 1, prefix the result with a negative sign to show it is a negative decimal number.

Following these steps:

10000000: This represents -128 in decimal as it is the two's complement of 128 (the most significant 1 indicates a negative number).11001100: The first bit is 1, so this is a negative number. Its two's complement is 00110100, which is 52 in decimal, thus the original number is -52.10110111: The first bit is 1, so this is a negative number. Its two's complement is 01001001, which is 73 in decimal, thus the original number is -73.

Brianna is a multimedia specialist who works for a large fast food chain. What task
might Brianna perform as part of her job?

A. recording and publishing training videos for new employees

B. connecting the fast food chain's cash registers to the network

C. writing a program for ordering supplies online

D.answering calls from customers about their food

Answers

Answer:

Recording and publishing training videos for new employees

Explanation:

Multimedia specialists design and create IT-based multimedia products such as websites, DVDs, and computer games that combine text with sounds, pictures, graphics, video-clips, virtual reality and digital animation

Answer:

A. recording and publishing training videos for new employees

Explanation: I did the test and got it right.

People use a computer connected to the internet to manage financial accounts

Answers

Answer:

No however, if financial accounts are on website, then that is done, however, not on public network.

Explanation:

This should not be done on the public network, or some other computer. And in general its no. However, if the internet is required, then this must only be done on a private network and under strict firewall rules. Do not ever use the VPN for this as well, as your information can be leaked. You need to do all this, as these are monetary usage, and at times it can be very heavy, and result in very heavy loss. However, this is especially required by small children who use bank accounts regularly. They and all should keep this in mind.


Which address does a host have to find out in order to send a data packet to another host (whose IP address they know!) If the person is on the same network? When the person is on a different network?​

Answers

Answer:

1. Ethernet network address

2. native address, and the router

Explanation:

Each PC is connected to the Ethernet network through the Ethernet NIC or the network interface card. And anybody from the same network can send the data packet to this host through the Ethernet network address. And when the PCs are not on the same network then they are connected through the router and are being identified through their native addresses.

What process can be used to make difficult decisions when faced with a situation in which there is no clear right or wrong answer?


Answers

Answer:

You should be crystal clear on what you are expecting. At times, you might sense that you are made-up to and that what you must do. Though, you must not be like that. And then think what is ethically right. In situations when you are not clear, thinking on moral grounds can make the picture clear. Also, preserve in mind that doing roughly is healthier than doing nothing at all. And make a custom to be conclusive as that is the key positively. And if you make a routine like this, then you are certainly going to make the difficult decision faster, and when there is no clear right or wrong answer.

Explanation:

Please check the answer.

Cameron is having a party and needs to write step-by-step directions on the invitation. Which type of list would you
recommend he use for the invitation?
a Directional list
b. Numbered list
C Bulleted list
d Outline list
Please select the best answer from the choices provided

Answers

Answer:

He should use Numbered List.

Explanation:

Number list is used usually when we have write the steps of procedure that needs to followed in an order. In this list No. are assigned in ascending order to tells the user or reader that follow the instructions in this order.

As Cameron wants to write step b step directions of the part and want to follow it in a specific order, He should use number list for the invitation.

From the following list choose all the tasks an operating system performs.

manages files
manages memory
powers up
works as an intermediary between the hardware and the software
stores files
runs tests
manages which program gets access to memory and for how long

Answers

Manage memories - Operating system has utilities that could help users to manage their memories. Such utilities include Disk Maintenance and Disk Degfragmentation which are helpful to detect problems within your disk storage. Works as an intermediary between the hardware and the software - OS has a special program called kernel. Basically, a kernel can recognize a command in relation to hardware. For example, when the user click on Ctrl and P keys on the keyboard, the kernel would send alert to the corresponding hardware which is the printer then do the task. Manages which program gets access to memory and for how long - OS manages tasks. It supports multi tasking which means several processes can happen at a time. In order to do that, OS manage the computation and priorities of tasks to ensure that the user can have a good experience.
Other Questions
To lower the rate of employee attrition within the organization by 5 percent through the use of effective employee retention and motivation techniques." Which of the following is a valid criticism of this objective? A) It is not stated in a simple fashion.B) It does not provide a time frame for achieving objectives.C) It is not related to specific actions. D) It is not achievable.E) It does not pinpoint expected results. The hostilities between two racial subgroups of a riverfront community were dramatically reduced when the threat of the river flooding its banks required that they work together to save their town. This best illustrates the impact of________. How many solutions in the equation y=x-3 and 4x-10y=6 The radius of a circle is 4 millimeters. What is the circle's circumference?Will give brainiest will make brainliest if answer correctly.Why would you expect strontium to be chemically more similar to calcium?They are in the same family/group.They are in the same period.They have the same atomic number.They have the same atomic mass. Write an inequality for x that would give this rectangle a perimeter of at least 300ft Functionalist mile Durkheim viewed society as: a. an even playing field composed of the educated and uneducatedb. split between two classes categorized by education, kinship, and religionc. the product of class struggle, requiring social revolutions to correct rampant class inequalityd. an organism in which each portion plays a vital role in keeping the organism stable and healthy Some organisms are not able to live in an environment where there is oxygen; these types of organisms are called obligate anaerobes. Which explanation is most plausible for how they survive without oxygen? Which question is the scientist most likely trying to answer about the bacteria A business journal reports that the probability that Internet users in the United States will use a mobile payment app is 0.60. The journal claims this indicates that out of 5 randomly selected Internet users, 3 will use the mobile payment app. Is this business journal interpreting the probability correctly? What is a landscape by O'Keeffe that you are familiar with? Write a short essay of approximately 300 words about that landscape and describe it in such a way that an artist might want to paint it. What features stand out? What colors are most common? What is the light like? Use complete sentences and cite all of your resources. Please answer asap! will mark brainliest!Describe the solution of f(x) shown in the grapha parabola opening up passing through 0 comma 2, 1 comma zero and 2 comma zero For what value of a does (one-seventh) Superscript 3 a + 3 Baseline = 343 Superscript a minus 1?101no solution 1.Complete the sentence with the correct form of the conditional tense.J'________ aller en France cet t, si j'avais le temps. (aimer) (2 points)aimaisaimeaimeraiaimerais2.Complete the sentence by choosing the correct form of the conditional tense.Si nous gagnions la loterie, nous ________ riches! (tre) (2 points)seronsserionstionssommes3.Complete the sentence by choosing the correct form of the conditional tense.Nous ________ beaucoup de courses si nous avions de l'argent. (faire) (2 points)ferionsfaisonsferonsfaisions4.Complete the sentence by choosing the correct form of the conditional tense.Je ________ mes devoirs vite si j'allais au concert. (finir) (2 points)finiraifiniraisfinisfinissais5.Complete the sentence by choosing the correct form of the conditional tense.Tu ________ tous les soirs si tes parents disaient oui. (sortir) (2 points)sorssortaissortirassortirais6.Complete the sentence by choosing the correct form of the conditional tense.Ils ________ dans un restaurant chic s'ils allaient Paris. (manger) (2 points)mangeraientmangerontmangentmangeaient7.Complete the sentence by choosing the correct form of the conditional tense.J'________ aller en France cet t. (aimer) (2 points)aimeaimaisaimeraisaimerai8.Complete the sentence by choosing the correct form of the conditional tense.Tu ________ franais si tu tais en France. (parler) (2 points)parlesparlaisparlerasparlerais9.Complete the sentence by choosing the correct form of the conditional tense.Tu ________ le film si tes parents disaient oui. (regarder) (2 points)regarderaisregardesregarderasregardais10.Complete the sentence by choosing the correct form of the conditional tense.Je ________ si j'avais de l'argent. (voyager) (2 points)voyageaisvoyageraisvoyagevoyagerai What computer generated document helps organize and display data? Appraise the results of operations of Prestige Data Service. Is the subsidiary really a problem to Prestige Telephone Company? Consider carefully the differences between reported costs and cost relevant for decisions that Daniel Rowe is considering. According to the empirical rule, if the data form a bell-shaped normal distribution, __________ of the observations will fall within two standard deviations around the mean. In the function f(x) = 6x + b, what must be the value of b, if f(5) = 1? A roller coaster starts down the slope at 4 m/s. But 3 seconds later at the bottom of the slope it's speed is 22 m/s. What is the average acceleration? -99 less than a number Steam Workshop Downloader