2.3 Code Practice: Question 1

Answers

Answer 1

Answer:

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

b=int(input("Enter a divisor: "))

quotient=a/b

remainder=a%b

print("Quotient is: " + str(int(quotient)))

print("Remainder is: " + str(int(remainder)))

Explanation:

Hope this helps lovely :)

Answer 2

Answer:

Answer is in explanation

Explanation:

num = int(input("Enter Numerator "))

den = int(input("Enter Denominator "))

one=int(num/den)

two=int(num%den)

print(one + two)


Related Questions

Write a program that prompts the user to input a positive integer. It should then output a
a message indicating whether the number is a prime number.
(Note: An even number is prime if it is 2. An odd integer is prime if it is not divisible by any odd
integer less than or equal to the square root of the number.)

Answers

num = -1

count = 0

while num < 0:

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

if num % 2 == 0:

   if num == 2:

       print(str(num)+" is a prime number")

   else:

       print(str(num)+" is not a prime number")

else:

   for x in range(1, int(num**0.5)+1,2):

       if num % x == 0:

           count += 1

   if count > 1:

       print(str(num)+" is not a prime number")

   else:

       print(str(num)+" is a prime number")

I hope this helps!

please help! ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

Answers

I think the answer the the question is C

Edhesive 8.7

Use the following initializer list:
w = ["Algorithm", "Logic", "Filter" "Software"
"Network", "Parameters" "Analyze", "Algorithm", "Functionality", "Viruses"]

Write a loop to print the words that start with "A"

Answers

w = ["Algorithm", "Logic", "Filter" "Software"

"Network", "Parameters", "Analyze", "Algorithm", "Functionality", "Viruses"]

for x in w:

   if x[0] == "A":

       print(x)

We check to see if a word begins with "A" and if it does, we print it to the console.

network does not provide security to us​

Answers

Answer:

May this answer be helpful for you

Explanation:

1.False.

1.False. 2.Network security has many policies which ensure the secure surfing of the internet.

1.False. 2.Network security has many policies which ensure the secure surfing of the internet. 3.The policies do not allow unauthorized access. 4.Thus, network does provide security to us.

What is the result when you run the following line of code after a prompt??
>>>print(3 + 11)

Answers

Answer:

The following output is 14

Explanation:

When you print something, python interprets it and spits it out to the console. In this case, python is just interpreting 3 + 11, which equals 14. Thus, making the answer 14.

hope i helped :D

Answer:

14

Explanation:

inputs and outputs that allow a user to interact
with a piece of software

Answers

I do not understand what you are asking

Which of the following is a type of input device?


Speakers


Touchscreen


Monitor


Hard drive

Answers

Answer: Touchscreen

Explanation:

The type of input device is a touchscreen.

The following information should be considered:

It is the device that is applied for providing the data & controlling the signals to the system like keyboards, mouse, touchscreen, etcThe monitor, speakers & hard drive are not considered as the input device.

Therefore we can conclude that the type of input device is a touchscreen.

Learn more about the device here: brainly.com/question/6277363

full form of DMBM

plz.. give me answer.....​

Answers

Explanation:

database management system

nice to help .... but I think it is a computer ans

A thesaurus is an example of a(n)

A)blog.
B)e-book.
C)e-zine.
D)online reference.

Answers

Answer:

D. online reference

Explanation:

An "online reference" refers to a digital reference that end users may utilize for their work or other daily activities. For example, if a person is looking for the synonym of a particular word, she may then refer to the thesaurus.

A blog is a website where you can find personal journals from different writers.

An e-book is an "electronic book." This allows people to read book digitally.

An e-zine is an "electronic magazine." This is a magazine in its digital form.

Answer:

online reference :)))

Explanation:

A Document's Format is??

Answers

Answer:

A text or binary file format for storing documents on a storage media, especially for use by computers.

Explanation:

Answer:

The shape, size, design, and arrangement of its physical elements

Explanation:

HURRY! PLEASE ANSWER! What additional lenses would be most beneficial to add to your collection and why?

Answers

Are you talking about camera lenses? If so every photographer should have the common focql lengths for prime lenses , a wide angle lense especially and a macro lense is great for magnification of subjects

If like dog get point..

Answers

I like dogs.

I have got one named Snupy.

Answer: Husky’s just saying..They are pretty animals.

Explanation:

Explain the difference between file and folder (in your own words)

Answers

Answer:

the difference is one is online and one is not

Explanation:

A file is usually what you find online. And a folder is what you put papers into.

A tornado destroyed many
CORRECT ANSWER GETS BRAINLIEST PLEASE HELP !
structures in a small Texas
town. Which type of engineer should be called in to collect
evidence in order to prevent this level of damage in the future?
A.chemical engineer
B.biomedical engineer
C.materials engineer
D.forensic engineer

Answers

Answer:

D is your answer because I'm an expert

Answer:

D. forensic engineer

Explanation:

Because I know the answer I got it right

Question 2: Did every packet arrive in the correct order? Describe what went wrong and whether your partner was able to read the message. If neither you nor your partner had an issue try sending another message.

Answers

Answer:

No, the packets did not arrive in the right order but the TCP protocol reordered the packets. The transmission took a while, but the message was finally delivered.

Explanation:

Packets are chunks of data from a data source or message transmitted from one computer device to another. Protocols like TCP or transmission control protocol and UDP (user datagram protocol) are used for data transfer, with TCP as the more reliable protocol (it checks for errors, retransmit lost packets, and reorders received packets in the destination device) and slow protocol.

Assignment 4: Evens and Odds
Need help on this

Answers

Answer:

any even number plus 1 is odd

some people believe that one day space travel will be for everyone what do you think.​

Answers

Answer:

It could be true. When we go into the future we see settling on mars. Soon there may be a type of rocket travel for the public to use.

Explanation:

Assignment 4: Evens and Odds

Write a program that will ask a user for how many numbers they would like to check. Then, using a for loop, prompt the user for a number, and output if that number is even or odd. Continue doing this as many times as the user indicated. Once the loop ends, output how many even numbers were entered and how many odd numbers were entered.

Hint: For a number to be even, when the number is divided by 2, there should be no remainder - so you will want to use the modulus (%) operator.

Hint: You will need two count variables to keep track of odd and even numbers.

Sample Run 1
How many numbers do you need to check? 5
Enter number: 20
20 is an even number.
Enter number: 33
33 is an odd number.
Enter number: 4
4 is an even number.
Enter number: 77
77 is an odd number.
Enter number: 8
8 is an even number.
You entered 3 even number(s).
You entered 2 odd number(s).
Sample Run 2
How many numbers do you need to check? 3
Enter number: 10
10 is an even number.
Enter number: 3
3 is an odd number.
Enter number: 400
You entered 2 even number(s).
You entered 1 odd number(s).

Benchmarks
Prompt the user to answer the question, “How many numbers do you need to check? “
Create and initialize two count variables - one for odd and one for even.
Based on the previous input, create a for loop that will run that exact number of times.
Prompt the user to “Enter number: “
If that number is even, output “[number] is an even number.”
Update the even count variable.
Or else if the number is odd, output “[number] is an odd number.”
Update the odd count variable.
Output “You entered [number] even number(s).”
Output “You entered [number] odd number(s).”

Answers

n = int(input("How many numbers do you need to check? "))

odd = 0

even = 0

i = 0

while i < n:

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

   if num % 2 == 0:

       even += 1

       print(str(num)+" is an even number")

   else:

       odd += 1

       print(str(num)+" is an odd number")

   i += 1

print("You entered "+str(even)+" even number(s).")

print("You entered "+str(odd)+" odd number(s).")

I hope this helps!

The program allows user to enter a specified number of values and displays if the number is even or odd ; The program written in python 3 goes thus :

num_inputs = int(input('number of inputs : '))

#prompts user to enter a specified Number of inputs

count = 1

#keeps of the number of inputs supplied

while count <= num_inputs :

#iterate using a while loop

your_num = int(input('Enter a number : '))

#prompts user to enter an integer value

count+=1

#increase counter by 1

if your_num%2 == 0 :

#checks if number is even

print('even number')

else:

print('odd number')

A sample run of the progam is attached below.

Learn more :https://brainly.com/question/20720413

Can u write a python program with this output

Answers

Answer:

Not exact, but it will help.

Explanation:

do something like this.

       print("""

       this program will help you plan your garden.

       First, we need some information about the dimensions you want.

       """)

       while True:

           try:

               response = int(input("Please enter the side length for your garden (in feet) : "))

           except ValueError:

               print("(!)Please Enter A Number(!)")

               print("")

               continue

           if str(response) == "":

               continue

           else

               length = int(response)

               break

repeat stuff like that up above for the rest, and then you can decide what to do with the variables and how they need to be multiplied for the output. Good luck!

                       

if a network security professional wants to connect some computers in the same building without it using a router what type of network is being used

Answers

Answer:

 the MAC addresses of wireless NICs

Explanation:

Answer:

I would probably suggest Peer-to-Peer

Which is more compact?

- Binary
- ASCII decimal
- Hexadecimal
- BASE64

WHY?

Answers

Answer:

ASCII85 is the most efficient coding system – data size increases by just 20%. It has a couple of minor disadvantages. It uses a larger character set, and so it is only compatible with ASCII (unlike Base64, which supports various close relatives of ASCII). It is also slightly more demanding computationally, since it uses division rather than bit shifting. However, these factors are becoming increasingly irrelevant in the context of modern computer systems. The main reason that Base64 continues to be used more than ASCII85 is probably the simple fact that it has been around for longer.

Explanation:

What prevents someone who randomly picks up your phone from sending money to themselves using a messenger-based payment?

Answers

Answer:

Explanation:

There are various safety features in place to prevent such scenarios from happening. For starters phones usually have a pin code, pattern code, or fingerprint scanner which prevents unauthorized individuals from entering into the phone's services. Assuming that these features have been disabled by the phone's owner, payment applications usually require 2FA verification which requires two forms of approval such as email approval and fingerprint scanner in order for any transactions to go through. Therefore, an unauthorized individual would not have access to such features and would not be able to complete any transactions.

The feature which prevents someone who randomly picks up your phone from sending money to themselves using a messenger-based payment is:

Security features like passwords or authentication codes

In a messenger-based payment system, there exists various safety features which prevents unauthorised use of the system to send money fraudulently. Some of these features include:

PasswordsPersonal Identification Number (PIN)Two factor authentication (2FA)

As a result of this, we can see that these features prevent someone from making unauthorised money transfers.

Read more here:

https://brainly.com/question/19469131

How can we work together to fix problems with our websites

Answers

Add a Value Proposition. ...
Website Navigation. ...
Call to Action Text. ...
Call to Action Colors. ...
Try The 10-Foot Test. ...
Carousels. ...
Social Proof. ...
Testimonial Pages.

The question "How can we work together to fix problems with our websites" is not peculiar to programmers who are consulted to solve a website problem.

The best response to the question includes we will"

add a value propositioncreate a website navigationcall to action textcall to action colorstry the 10-foot testuse a social proofcreate a testimonial pages.

Read more about website problem

brainly.com/question/25537936

Please answer my question y'all!

Answers

Answer:

Explanation:1000 mp3s

Answer: It would be 50 MP3s

Explanation: 1000MB equals 1GB. 50 X 20 = 1000.

Searching a database for a particular record requires an extension.
O True
O False

Answers

Answer:

False

Explanation:

I think it is right, I am not good with a lot of stuff

Answer:

Its True I got it right on ED

Explanation:

What happens if you create multiple accounts just to get points faster?

Answers

I don’t think it will work sadly. You can probably accumulate points though on your pre existing account. Hope that helps!

When you create multiple accounts just to get points faster, it does not help as the points will be to the individual account and as such it will not be faster but slower.

Can having multiple accounts quickly hurt your points?

If a person has a lot of  accounts, you have to know that it may have negative effect on your score.

Conclusively, Credit scores or point are not influenced by the number of bank accounts or other account that you have in your name and as such having a lot of account will not increase your points.

Learn more about  multiple accounts from

https://brainly.com/question/25787382

Question #6
ent
Fill in the Blank
You have defined your player data type.
class player:
life = 3
magic = False
name = "
You created an instance of your player data type and assigned values.
myPlayer = player()
myPlayer.life = myPlayer.life - 1
myPlayer.life = 4
myPlayer.magic = True
myPlayer.name = 'Kris'
What will be the value displayed after this line of code?
print(myPlayer.life)
You will see

Answers

Answer:

The answer is 4

Proof

ALSO PLZZZ HELP :P Suppose you are purchasing a game at a local retail store that comes on DVD. In order to install it on your laptop, what must the laptop have?

A. a keyboard with a separate keypad for the arrow keys

B. an optical drive

C. an internet connection

D. an external monitor

Answers

I think the answer is B: an optical drive
Hope this helps have a great night

Rachel wants to copy eight rows of data from one spreadsheet to another. She opens the spreadsheet, highlights the appropriate data,
and selects the Copy command from the menu. What should she do next?

O Select the Cut command from the menu.

O Open the new spreadsheet.

O Double-click on the cells that are highlighted.

Select the Paste command from the menu,
Save and Exit

Answers

Answer:

Rachel should open the new spreadsheet first.  Then she can paste the cells she has copied.

Answer:

Explanation:

Rachel should open the new spreadsheet first.  Then she can paste the cells she has copied.

what are spreadsheets in a excel workbook called? A. pages B. notepads C.graphs D.worksheets

Answers

D. Worksheets
I’m positive this is the correct answer
Other Questions
A $40 autographed and framed poster of the Spice Girls goes up in price to $50. What is the percent of increase in the price? Find the values of x and y. Read the passage carefully.The United States, with all their vast territory, are fillingup; and even now we hear of tens of thousands ofemigrants leaving the United States in order to take upthe fresh and rich lands of our colony in Canada. It seemsto me not at all an impossible assumption that before theend of this present century we may find our fellowsubjects beyond the seas as numerous as we are at home.I want you to look forward. I want you to consider theinfinite importance of this not only to yourselves but toyour descendants. Now is the time when you can exertinfluence. Do you wish that if these ten millions becomeforty millions they shall still be closely, intimately,affectionately united to you, or do you contemplate thepossibility of their being separated, going off each in hisown direction, under a separate flag? Think what itmeans to your power and influence as a country, thinkwhat it means to your position among the nations of theWhich statement best summarizes Chamberlain's callto action in the passage?O The British people should support the BritishEmpire to maintain political influence and a strongeconomyO British representatives should pass laws thatprevent emigration.The British people must support decolonizationimmediatelyO British representatives should look to the future andconsider their descendants in their decisions, -3 - (-5) as addition Al(s) + HCl(aq)AlCl3(aq) + H2(g) Identify the reactants for this reaction Pls help i will give crown A square and an equilateral triangle have the same perimeter. Each side of the triangle is 3 inches longer than each side of the square. Select the equation that will help you find the length of each side of the square. Your _____ to the classroom discussion were very good.ancestorcontributionscolonialheritage Read this chart about the jobs of architects andcarpentersWhich statement accurately describes a way in whichthe jobs of an architect and a carpenter compare?ArchitectsCarpentersPlan and design buildings and Construct and repair buildingstructures, such as houses frameworks and structures, fromapartments, and office buildings stairways and doorframes tohighways and bridgesSpend most of their time in offices Spend time working both indoorsand outWork with clients, other architects Work with clients, carpenters, andand engineersother architectsMust earn a degree in architecture, May learn through a formalcomplete an intership, and pass an apprenticeship or on the jobexamO An architect and a carpenter must both work withother people.O An architect and a carpenter must both complete anapprenticeship.O An architect is required to pass an exam, while acarpenter is notO An architect constructs buildings, while a carpenterdesigns buildings Electromagnetism consists of what two processes?o A. An electric current produces a magnetic field.B. A moving magnet produces an electric current.O C. Electric charges attract each other.D. Permanent magnets produce a magnetic field. Jill rode her bike for 2/3 hours at 18 mph and she walked 2/5 hours with a speed of 5 mph. By how much more distance did she ride her bike, then she walked\ Order the following numbers from least to greatest.Put the least value on the left. Mara carried water bottles to the field to share with her team at halftime. The water bottles weighed a total of 60x2 + 48x + 24 ounces.Which factorization could represent the number of water bottles and weight of each water bottle? A factory uses 1/6 of barrel of raisins in each batch of granola bars. Yesterday,the factory used 7/6 barrels of raisins. how many batches of granola bars did the factory make yesterday? Pat spent $25.89 for a new book bag, $3.15 for a notebook, and $4.59 for a new pack of pens. About how much did he spend?$32.00$33.63$30$34.00 During a medieval siege of a castle, the attacking army uses a trebuchet to heavy stones at the castle the trebuchet launches the stones with a velocity of + 48.5 m/s at an angle of 42.0 degrees how long does take the stone to hit the ground? For those settings, what is the maximum How high will the stones go Show all your work 1) Select the FIVE most common forms of nonfiction.A. short storiesB .essaysC. poetryD. autobiography, biography, and memoirE. articlesF. science fictionG. journals and lettersH. media accountsI. sonnetsJ. novellas What effect did trade have on the Phoenicians?O A.It helped them develop a single language and money system.B.It caused them to become warriors and battle other civilizations.O C.It helped them prosper and become wealthy.OD.It allowed them to spread out throughout Europe..E.It led to the spread of diseases that wiped out city-states. An employee named Bolarry in a restaurant makes $22.50 an hour. He gets a 12.5% raise (Markup). What does this man make for a weekly salary, if he works 6 hours a day, for 6 days a week? Chicken noodle soup?