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
murzikaleks [220]
3 years ago
7

Write a program that prompts the user to input two POSITIVE numbers — a dividend (numerator) and a divisor (denominator). Your p

rogram should then divide the numerator by the denominator, and display the quotient followed by the remainder.
Hint: If you use division (/) to calculate the quotient, you will need to use int() to remove the decimals. You can also use integer division (// ), which was introduced in Question 10 of Lesson Practice 2.3.


Once you've calculated the quotient, you will need to use modular division (%) to calculate the remainder. Remember to clearly define the data types for all inputs in your code. You may need to use float( ) , int( ), and str( ) in your solution.


float( ): Anything inputted by a user should be transformed into a float — after all, we are accepting ALL positive numbers, integers and those with decimals.


int( ): When you divide the numerator and the divisor using /, make sure that the result is an integer.


str( ): After using modular division, you can transform the quotient and remainder back into strings to display the result in the print() command.
Computers and Technology
1 answer:
Ber [7]3 years ago
5 0

Answer:

yes

Explanation:

You might be interested in
Which of the following enables robots to do things such as understand itself, walk, talk, and develop skills?
zmey [24]

Answer:

self-modeling

Explanation:

Robots, which are man-made machines which mimics the actions of man like walking, talking, rendering assistance are part of the future plans to make the society easier. It was mans' attempt to improve the society but still happens to be work in progress.

For the robots to be able to carryout its function, there is need for it to be self modelling in the sense of initiating and executing the commands which was already programmed into it. <em>For example, telling it to walk will be initiated by him as a command, after processing the command, it will execute it without any other information.</em>

7 0
3 years ago
Prime numbers can be generated by an algorithm known as the Sieve of Eratosthenes. The algorithm for this procedure is presented
Sidana [21]

Answer:

const MAXNR=150;

let candidates = {};

for(let i=2; i<=MAXNR; i++) {

   candidates[i] = true;

}

for(let p=2; p <= MAXNR; p++) {

   if (candidates[p]) {

       process.stdout.write(`${p} `);

       // Now flag all multiples of p as false

       i=2;

       while(p*i <= MAXNR) {

           candidates[p*i] = false;

           i++;

       }

   }

}

4 0
3 years ago
The Windows ________ is a hierarchical database that stores system configuration information. It maintains files used to control
Diano4ka-milaya [45]

Answer:

Registry

Explanation:

Windows Registry is used to store the configuration and setting information for hardware and software program which is critical for Windows operation. The registries are structured in hierarchical database model.  

Basically, hierarchical database model is akin to a tree format which consist of the parent nodes and their child nodes.  For example, a node named as HKEY_LOCAL_MACHINE can possess child nodes HARDWARE, SOFTWARE AND SYSTEM.

The node in the tree is also termed as a key.

8 0
3 years ago
WILL GIVE BRAINLIEST!!!!!!!
professor190 [17]

Answer:

True

Explanation:

The Port of New Orleans is an embarkation port for cruise passengers. It is also Louisiana’s only international container port. Port NOLA generates $100 million in revenue annually through its four lines of business – cargo, rail, cruise, and industrial real estate

5 0
3 years ago
Create short names for the terms below based on the naming conventions rules.
gtnhenbr [62]

Answer:

a. Authors

Answer: ATR

b. Publishers

Answer: PLR

c. Customers

Answer: CTR

Explanation:

The abbreviation or short name for these terms should be easy to understand and recognize and should describe the terms adequately. These short names should describe the amount of information  which may be derived about the above terms.

Some abbreviation rules that are applied for the giving short names to above mentioned terms/entities are as following:

  • First letter of the term should not be skipped. In all the three terms A is the first letter of Authors, P is of Publishers and C is the first letter of Customers so these should not be skipped while creating short names for these terms.
  • Eliminating vowels: All the non leading vowels are eliminated from right to left.

In Authors, u and o are eliminated.

In Publishers u, i , e are eliminated.

In Customers, u, o and e are eliminated.

  • There is no need to use hyphens, dash, slash or other special characters when giving short names to these terms.
  • The short names are not repeatable for another term. This means only one abbreviation for each term.
  • Eliminate one of any double consonants.
  • Put first letter of the term in first location and last in last location of the term. Just as in Author, A and R are placed at 1st and last position of the short name hence ATR.
3 0
3 years ago
Other questions:
  • You are tasked with securing a small network for a client in which the following requirements must be met: If a user on the priv
    8·1 answer
  • Your computer has gradually slowed down. What's the most likely reason?
    8·1 answer
  • While in slide show mode, if you are not careful you can close the application by clicking the x on the menu bar. question 38 op
    12·2 answers
  • You can change the transparency of a picture used as a slide’s background with the ____.
    10·1 answer
  • How might a company go about performing a load test on their website?
    7·1 answer
  • Automate theory can be considered as science or art???
    11·2 answers
  • What simple machine is most often used to lift the blinds on a window?
    8·2 answers
  • Which alignment aligns text to the left and right side margins?
    15·1 answer
  • A VALENTINE
    5·2 answers
  • What is computer and its features<br>​
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!