1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
artcher [175]
4 years ago
9

Write a program that prompts the user to input two numbers, a numerator and a divisor. Your program should then divide the numer

ator by the divisor, and display the quotient and remainder.
(this is python and i really need help. this is the code i have so far and it won’t accept it.)
Computers and Technology
1 answer:
fredd [130]4 years ago
5 0

Answer:

#first section

a= float(input(" enter Numerator: " ))

b= float(input(" enter Divisor: "))

#second section

c = a//b

d = a%b

 

#third section

print(c, "is the quotient")

print(d, "is the remainder")

print ( c," remainder ",d)

Explanation:

In python (programming language) there are other ways to divide other than using the normal division "/".

we have floor division "// " and % modulo

<h3>floor division "//" gives you just the QUOTIENT </h3><h3>modulo gives you  the REMAINDER.</h3><h2></h2>

now the program is divided into 3 sessions to make it easy for you to understand.

The first session - This is the input session, it prompts you to in put two values respectively, one for the Numerator and one for the divisor.

The second session - this is where the calculation happens, we carry out a floor division first and then a modulo division.

The third session -  This is the Output session prints your answer to the screen, firstly it tells you which number is the quotient and which number is the remainder, after that it combines both the quotient and the remainder into one output

You might be interested in
PLEASE HELP ASAP ILL GIVE YOU 5 STARS AND BRAINLEST
alexdok [17]

Answer:

growth mindset means that you believe your intelligence and talents can be developed over time. A fixed mindset means that you believe intelligence is fixed—so if you're not good at something, you might believe you'll never be good at it.

7 0
3 years ago
Read 2 more answers
How have computers changed overtime
sattari [20]
So in the beginning, a regular computer took up the space of an entire room it was literally that big in size. now and days computers are this small object that you can carry around with you in your bag.
4 0
3 years ago
Read 2 more answers
Why we need to measure the amperage of an electric current?​
Romashka [77]

Answer:

Explanation:It is very important to have a way to measure and quantify the flow of electrical current. When current flow is controlled it can be used to do useful work. The flow of electrons is measured in units called amperes. The term amps is often used for short

5 0
3 years ago
Which of the following would most likely happen if cost were a constraint during the design process of a new product?
Dmitry_Shevchenko [17]
The answer would be “A”
8 0
3 years ago
Read 2 more answers
Create the code that will find
frez [133]

Answer:

function findLongestWord(str) {

 var longestWord = str.split(' ').sort(function(a, b) { return b.length - a.length; });

 return longestWord[0].length;

}

findLongestWord(InputHere);

Explanation:

Replace InputHere with the input

7 0
3 years ago
Other questions:
  • Website reputation is an important part of page quality (PQ) rating. Reputation can justify the Highest rating and the Lowest ra
    15·1 answer
  • Which utility would you use to return the common name of the computer you're at? Execute this command and submit screen shots.
    11·1 answer
  • Paula needs to ensure that an animation she has created is repeated. Which option should she use to achieve this?
    6·1 answer
  • In a large company today, you will often find an infrastructure that includes hundreds of small LANs linked to each other as wel
    7·1 answer
  • Jeremy is designing a website for a florist. He intends to discuss the web design with his client. Which tool should Jeremy use
    6·1 answer
  • Consider the classes below:
    13·1 answer
  • A computer "nibble" consists of four "bits," each bit being either a 0 or a 1. If characters are represented using a code that u
    12·1 answer
  • Rube Goldberg project NEED HELP ASAP
    13·1 answer
  • Create a while loop to try making a video game turn based battle.
    9·1 answer
  • Can anyone help me with these assignments??? Hands On Assignments- Insertion of Symbols, Special Characters, and Images.... and
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!