Write a program that:
a) Asks the user if they want to multiply two numbers that they entered, if their answer equals yes then multiply the numbers else write a message saying "peace out".

Answers

Answer 1

Answer:

num1 = int(input("Enter number 1: "))

num2 = int(input("Enter number 2: "))

choice = input("Do you want to multiply them?: ")

if choice.capitalize() == "Yes":

   print(num1 * num2)

else:

   print("Peace out.")

Explanation:

Gg ez.

(I wrote the it in python because I don't know what language you want it in. Next time, say what language you want.)


Related Questions

Convert the binary number 100101 to decimal. Show your solution

Answers

100101 is 37 in decimal form

Write code that assigns bigValue with the return value of calling the function GetBiggestValue passing number1 and number2 as arguments (in that order). Then, assign bigValue with the return value of calling GetBiggestValue passing bigValue and number3 as arguments (in that order).

Answers

Code:

Function GetBiggestValue(integer value1, integer value2) returns integer result
if value1 > value2
result = value1
else
result = value2

Function Main() returns nothing
integer userVal1
integer userVal2
integer userVal3
integer bigValue

userVal1 = Get next input
userVal2 = Get next input
userVal3 = Get next input

bigValue = GetBiggestValue(userVal1, userVal2)
bigValue = GetBiggestValue(bigValue, userVal3)

Put "Max value: " to output
Put bigValue to output

Briefly explain the conceptual of effective computer based instruction for adults outlining the three units output process and input

Answers

Based on the research analysis, the concept of effective computer-based instruction for adults is the integration of the key organs of computer-based instruction to deliver desired guidelines for research in CBI for adults.

The three units output process and inputOutput processExternal supportCBI DesignInstructional Strategy design

Input ProcessSelf DirectednessComputer Self EfficacyLearning Goal Level

Hence, in this case, it is concluded that computer-based instructions can be practical for adult learning.

Learn more about CBI here: https://brainly.com/question/15697793

) Give the assembly language instruction sequence to enable external interrupt 0 (INT0) as an interrupt source and to make it falling-edge triggered. What signal (port and port pin) must be low to trigger a falling-edge trigger event for INT0

Answers

Your solution is attached with the picture below

Does technology always follow the science, yes or no and explain the reason your choice

Answers

Answer:

NO

Explanation:

because Technology does not always follow science but it may actually lead science in some instances. An example is weather forecasting.Mark me brainliest plz

Q) Look at the code and determine the output

y=-10
while(y<10):
print('$', end="") y += 5

(a) $$$$$$$$$$
(b) $$$$
(c) $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
(d) Nothing will be printed

Answers

Answer:

B.

Explanation:

why is it important to o save a file when using a computer

Answers

Answer:

I think that it's important to save a file when using a computer so you won't lose it. Much like a document usually files are important and mark progress. Like if you're writing an essay and get tired simply save it to a file or document and continue it later. But if you weren't to do that you could lose all your saved work.

Explanation:

Hope that helps. there's not a lot of information to go off of

I think that it's important to save a file when using a computer so you won't lose it.

Consider a system which has a memory access time of 300 nsec. An average page fault takes around 10 millisecond to get serviced. If the page fault occurs with a probability of 4% in the system, then find out the effective memory access time of that system. If somehow, you manage to reduce the probability of page fault to 2%, then by how much the system performance improves as compared to the previous case?

Answers

Answer 72 ncs is the answer im pretty sure

You can find the answer in the attached photo

codes python Coordinate Pairs pls helpComplete the distance function! It should take two arguments, each of which is a tuple with two elements. It should treat these tuples like points in a 2d coordinate plane. It should return the distance between them using the Pythagorean Theorem:1. Square the difference between the x values.2. Square the difference between the y values.3. Add the two squares.4. Take the square root of the result.In order to compute the square root of something, you need to use the sqrt function. This function belongs to a module in Python called math. The first line of the code provided imports this module, so that you can use the functions in it. To take the square root of a number, simply do something like the following:number = ...result = math.sqrt(number)You can also use the built-in Python function pow to take the square of a number, like this:number = ...square = pow(number, 2)

Answers

Answer:

the ansewer is I have no idea

This code calculates the distance between points (1, 2) and (4, 6) using the Pythagorean Theorem, which yields a result of 5.0.

A Python function that calculates the distance between two coordinate pairs using the Pythagorean Theorem:

```python

import math

def distance(point1, point2):

   # Unpack the coordinate pairs into variables

   x1, y1 = point1

   x2, y2 = point2

   # Calculate the squared differences between x and y coordinates

   x_diff_sq = pow(x2 - x1, 2)

   y_diff_sq = pow(y2 - y1, 2)

   # Add the squared differences and take the square root of the result

   distance = math.sqrt(x_diff_sq + y_diff_sq)

   return distance

```

You can use this function by passing two tuples representing the coordinate pairs as arguments. For example:

```python

result = distance((1, 2), (4, 6))

print(result)  # Output: 5.0

```

This code calculates the distance between points (1, 2) and (4, 6) using the Pythagorean Theorem, which yields a result of 5.0.

Know more about Pythagorean Theorem:

https://brainly.com/question/28361847

#SPJ5

You would like the word "Employee" to appear in cells A1, B1, C1, D1, and E1. To be efficient, you should
type the label in Al and drag down column A
use the merge and center command
type the label in Al and use autofill
type the label in each of the cells

Answers

To be efficient, type the label in Al and use autofill. Check more about excel below.

What is Excel used for?

Microsoft Excel is known to be a kind of software that helps its users to be able to edit, organize and calculate data through the use of a spreadsheet.

Note that one can be able to duplicate a word such as "Employee" on excel by typing the label in Al  and use autofill.

Learn more about Excel from

https://brainly.com/question/25879801

#SPJ2

In the year, , the American Department of Defense put a military research network, called ARPANET online.

Answers

Answer:

November 21st of 1969.

Explanation:

In the year, 1969, the American Department of Defense put a military research network, called ARPANET online.

You can change the ____ or position of text within a document's margins.
a. fielding
b. proportion
c. location
d. alignment​

Answers

Answer:

Alignment

Explanation:

That should be correct

You can change the alignment or position of the text within a document's margins. Thus, the correct option for this question is D. This is because it refers to the way text is arranged in the document between the margins.

What is alignment in a text?

Text alignment may be characterized as a type of paragraph formatting attribute that determines the appearance of the text in a whole paragraph. It is a term that describes how text is placed on the screen.

The changes in the text alignment are made by the following action:

Place the insertion point anywhere in the paragraph, document, or table that you want to align.Do one of the following: To align the text left, press Ctrl+L. To align the text right, press Ctrl+R. To center the text, press Ctrl+E.

Therefore, you can change the alignment or position of the text within a document's margins. Thus, the correct option for this question is D.

To learn more about Text alignment, refer to the link:

https://brainly.com/question/7512060

#SPJ2

Each JavaScript command line ends with a(n) ____ to separate it from the next command line in the program.

Answers

The answer is :
semicolon (;)

Which item would a small business most likely used to meet its daily operational needs ?

Answers

They could use a Budget software

Answer:

Commercial, ready-to-use software

Explanation:

Please answer these questions.

Answers

For question 15 the answer is option C. I don't know the answers to the other questions

I want know answer for best way to copy formula on MS Access

Answers

Answer:

copy and paste is alternate

Which of the four factors of production are hit the hardest when high unemployment occurs ?


A. Land

B. Labor

C. Capitol

D. Management

Answers

Answer:

Land

Explanation:

people start to farm so that they earn money by selling those vegetables

Unemployment may result in increased payments from the state and federal governments for things like food stamps because unemployed persons tend to spend less and may accumulate more debt. Thus, option A is correct.

What hardest when high unemployment occurs?

High unemployment causes a decline in inflation. Voters and policymakers do not like dropping prices; they seek low unemployment and low inflation. They typically have to choose between the two and cannot usually have both.

Unemployed workers go through financial difficulties, which has an impact on their families, interpersonal relationships, and communities. If neglected, this can lead to a recession or even a depression as consumer spending, one of an economy's key sources of growth, falls.

Therefore, Land production is hit the hardest when high unemployment occurs.

Learn more about unemployment here:

https://brainly.com/question/18801727

#SPJ2

PLEASE ANSWER AND HURRY I'LL MARK YOU BRAINLIEST!!


Answers

Answer:

what's the question?

Explanation:

I see no question.

use JAVA

Create a HighestGrade application that prompts the user for five grades between 0 and 100 points and stores

the grades in an ArrayList. HighestGrade then traverses the grades to determine the highest grade and then

displays the grade along with an appropriate message.

Output:

Enter a grade (between 0 and 100): 87

Enter a grade (between 0 and 100): 65

Enter a grade (between 0 and 100): 98

Enter a grade (between 0 and 100): 89

Enter a grade (between 0 and 100): 55

The highest grade is: 98

Answers

Answer:

import java.util.*;

public class HighestGrade

{

       public static void main(String args[])

       {

                Scanner sc = new Scanner(System.in);

                 int n = 5;      

                ArrayList<Integer> grades = new ArrayList<Integer>(n);

               for (int i = 1; i <= n; i++)

                {

                       System.out.print("Enter a grade (between 0 and 100): ");

                       int num = sc.nextInt();

                       grades.add(num);

                }

                int max = grades.get(0);

                for (int i = 1; i < n; i++) {

                       if (grades.get(i) > max) {

                             max = grades.get(i);

                       }

                }

               System.out.print("The highest grade is: "+max);

       }

}

Explanation:

The class HighestGrade application rompts the user for five grades between 0 and 100 points and stores  the grades in an ArrayList. HighestGrade then traverses the grades to determine the highest grade and then displays the grade along with an appropriate message.

How many types of windows does Python use?



a.
four


b.
five


c.
one


d.
two

Answers

Answer:

Four types

Explanation:

The python windows starts form windows 7.

All types of python windows are

Windows 7Windows 8Windows 10Windows 11

¿Cuál es la capacidad pulmonar del hombre y la mujer?

Answers

Answer

El RV promedio en hombres es 1.2 L y para las mujeres es 1.1 L.

Explain the difference between the = symbol in Java and in mathematics.

Answers

Answer:

In maths the '=' sign tells us that the two integers or variables on either side are the same, wheras in Java the '=' sign means that you are assigning the variable on the left hand side it's value which will be on the right

what is the keyboard shortcut to display formulas on the worksheet

Answers

the keyboard shortcut is c=8

Write a program to test if an integer input from the keyboard is odd or even. Sample Run 1: Enter a Number: 78 Even Sample Run 2: Enter a Number: 17 Odd

Answers

Answer:

number = int(input("Enter a number: "))

if number % 2 == 0:

   print("Even")

else:

   print("Odd")

Explanation:

Currently taking python at school. On the last few lessons.

The problem below uses the function get_numbers() to read a number of integers from the user. Three unfinished functions are defined, which should print only certain types of numbers that the user entered. Complete the unfinished functions, adding loops and branches where necessary. Match the output with the below sample:


Enter 5 integers:

0 5

1 99

2 -44

3 0

4 12

Numbers: 5 99 -44 0 12

Odd numbers: 5 99

Negative numbers: -44

Answers

size=6

def get_numbers(num):
numbers = []
print('Enter %s integers:' % num)

for i in range(0,num):
print(i,end=' ')
user_input = int(input())
numbers.append(user_input) # Add to numbers list
return numbers

def print_all_numbers(numbers):
# Print numbers
print('\nNumbers:',end=' ')
for i in range(0,len(numbers)):
print(numbers[i],end=' ')

def print_odd_numbers(numbers):
# Print all odd numbers
print('\nOdd numbers:',end=' ')
for i in range(0, len(numbers)):
if numbers[i]%2!=0:
print(numbers[i], end=' ')


def print_negative_numbers(numbers):
# Print all negative numbers
print('\nNegative numbers:',end=' ')
for i in range(0, len(numbers)):
if numbers[i] <0:
print(numbers[i], end=' ')

nums = get_numbers(size)
print_all_numbers(nums)
print_odd_numbers(nums)
print_negative_numbers(nums)

how does the internet bring people farther apart
use a paragraph to answer the question​

Answers

Answer:

First of all you may not be able to see your friend in person and it gets very sad. Sometimes you call them but they don't answer you because they don't have enough time to talk or they have something else to do. They won't always want to be on the internet you know, they want to go outside and get a life and not be like the FRE-KIN T-I-K T-O-K-E-R-S WHO ARE CHILDREN AND BEING VERY STU-PID AND ARE TOTAL IDIOTS AND SAY STUFF THAT MAKE NO SENSE AND TRY TO GET ATTENTION. OH DON'T BRING TOWARDS THE GA-CHA IT SO TRASH. I still hate gacha :) and I am happy. Another thing is what some people post, you see you meet friends in real life and sometimes you get to know them but you don't know what they might be doing on the internet and another thing is that they post stuff that makes you feel uncomfortable and disgusted.

why GUI operating system is more popular than CUI operating system these days? discuss
please give me long answer​

Answers

Answer:

Explanation:GUI operating system is more popular than CUI operating system these days because they support extra devices and multimedia system and also network and internet which CUI doesnot support. In CUI operating system we have to type commands to perform any task in the computer but in GUI operating system we can give vommands to the computer by clicking on icons, menus and buttons which is easier to us.

Hope It helps................

Explain network optimization challenges of internet providers.

Answers

Answer:

The internet was initially used to transfer data packets between users and data sources with a specific IP adress.Due to advancements,the internet is being used to share data among different small,resource constrained devices connected in billions to constitute the Internet of Thing (IoT).A large amount of data from these devices imposes overhead on the (IoT) network.Hence,it is required to provide solutions for various network related problems in (IoT) including routing,energy conservation,congestion,heterogeneity,scalability,reliability quality of service (QoS) and security to optimally make use of the available network.In this paper,a comprehensive survey on the network optimization in IoT is presented.


Which two of these can be stored in a float variable?
1
C
3.4
true
"hello"

Answers

Answer:

3.4

Explanation:

A float variable can only store a floating-point number which means it can store a number that has a decimal place or a decimal number.

Answer:

float variable is

3.41

Write an if/else statement that assigns 1 to the variable fever if the variable temperature is greater than 98.6; otherwise it assigns 0 to fever.

Answers

Answer:

temperature = int(float(input("Enter temperature: ")))

fever = 0

if temperature > 98.6:

   fever +=1

else:

   fever = 0

print(fever)

Explanation:

Other Questions
What is a government with delegates that represent the interests of constituents called? Almost 99% of the Earth's atmosphere is made up of two gases. What ere the two gases and the percents of each? A sequence begins with-3. Each term is calculated by multiplying the previous term by -4, then subtracting 1.Which option correctly represents the sequence described?A -3, 11, -45, 179, ...B {-3, -13, -53, -213, ...}C. {-3, 11, -45, 179, ...}D -3, -13, -53, -213,... Can I get some help The number of hours needed to assemble computers varies directly as the number of computers andinversely as the number of workers. If 16 workers can assemble 40 computers in 10.25 hours, how manyworkers are needed to assemble 68 computers in 16.40 hours? Marla was given the point (1, 3), (2, 1), and (-2, -15). She was asked to find a quadratic function that fit these 3 given points. Marla created a system of three equations with three variables to solve the problem and then used the matrix functions on her graphing calculator to find the equation. Which equation can be written given these 3 points? What are examples of conflict in the workplace What does it mean defect??? in the addition problem on the right, each letter stands for a digit and different letters stand for different digits. What digits do the letters H,E, and A each represent? H E H E H E+ H E____________ A E "Although space is extremely vast, most of the junkthat is worrisome is orbiting earth."0"This collision added another 2,000 pieces of junk tothe growing pile of space debris.""Currently, there are around 900,000 pieces ofdebris between 1 centimeter and 10 centimeters inlength orbiting in our space system, and this numberis growing.""In our modern world, we have become more andmore dependent on satellites to help us with manythings." listen to the a and b sections of rejoice greatly from handels messiah. which best describes the b section? How many moles of water is 5.02x1018 moleculesof water? please help me with this question. Please help due tomorrow PLEASE HELP!!!!According to the conversation between the Giver and Jonas, the community was not allowed to have choices because Pls answer this question Yesterday, 5/6 of the 120 students in a contest gave their speeches. How many students gave their speeches. which action prompted the united states to officially enter world war ii? 13. Which scenario most likely formed most largelakes in North America and Europe? Which one of these is not a diet-related disease?Breast CancerO HypertensionO Osteoporosiso Asthma PLEASE NO LINKS AND NO NEGATIVITY