Write a program that prompts the user to input two POSITIVE numbers — a dividend (numerator) and a divisor (denominator). Your program 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.

Answers

Answer 1

Answer:

did you end up getting an answer

Explanation:


Related Questions

Cyberbullying someone by threatening to hurt them is ethically wrong, but does NOT violate any laws. True False

Answers

False there’s some laws depending how far you go
false hope this helps :)

Write a program containing a loop that you execute 16 times. In the loop, generate two random numbers between 1 and 50. Divide the first random number by the second random number and print the result using 4 decimal places of accuracy.Lab Exercise #1 Put your name, the compiler used, and Lab Exercise #1 in a comment at the top of your program. Email your source code. This lab exercise is due at the beginning of the next lecture. You may email your lab solution prior to that. Remember to use "Ex1" as the subject of your email submission. Write a program containing a loop that you execute 16 times. In the loop, generate two random numbers between 1 and 50. Divide the first random number by the second random number and print the result using 4 decimal places of accuracy. Your output should look like this - except for different random values: 2.3333 35.0000 0.8000 3.2222 0.8667 0.1304 1.1429 0.2857 1.0698 0.7568 8.4000 0.7500 1.3030 1.2941 0.4130 1.7778 Hint: you should get a floating-point answer (a cast is suggested).

Answers

Answer:

Follows are the code to this question:

#include <stdio.h>// header file

int main()//main method

{

int i,x, y;//declaring integer variable

float result;//declaring flat variable

for(i=0; i<16; i++) //defining foe loop for calculate value  

{

x = (rand() % (50 - 0 + 1)) + 1;//use x variable for hold random value

y = (rand() % (50 - 0 + 1)) + 1;//use x variable for hold random value

result=(float)x/y;//use result variable for calculate value

printf("%.4f\n",result);//print value

}

return 0;

}

Output:

0.2200

0.2857

0.8684

0.7755

2.3000

0.1875

1.0500

1.3043

1.4839

1.2812

4.0000

0.9250

2.5000

1.8000

1.1034

1.1250

Explanation:

In the given code, three integer variable "i,x, and y" one float variable "result" is defined, in which integer variable "x and y" is used in the for loop, that uses the random function input value and in the float variable "result" it divides the value from x to y. This variable uses the typecasting to convert an integer to float and print its value.

Computing devices translate digital to analog information in order to process the information

Answers

Answer:

True?

Explanation: is IT RIGHT?????????????????

Difference between entropy and enthalpy is

Answers

Answer:

Explanation:

Enthalpy is the measure of total heat present in the thermodynamic system where the pressure is constant. Entropy is the measure of disorder in a thermodynamic system.

Work made for hire. If an employer asks an independent designer to create an illustration, the copyright to that artwork is owned by the employer. true or false?

Answers

Answer:

False

Explanation:

On the basis of the designer being "independent", the artworks copyright remains with the designer. Being independent requires contractual transfer of copyright in the event that its created for another person.

The answer would be false trust me I just did this and got it correct.

how to write email abut new home your friend ​

Answers

Answer:

Start off with a greeting like Dear Sarah. Then you write a friendly body that tells about your home and describe it as much as you can and tell about what your bedroom theme is like and so on. Finally, top it off like a closing like Sincerely, Tessa.

Answer:

you start off by saying

Dear (name), talk about how your house is comforting and things like that... I hope thats what you were asking for.

Lazarus Consulting is a large computer consulting company in New York. Pete Lazarus, theà CEOà and founder, is well known for his philanthropic efforts. Pete knows that most of his employees contribute to nonprofit organizations and wants to reward them for their efforts while encouraging others to contribute to charities. Pete began a program that matches 50 percent of each employee donation. The only stipulations are that the charity must be a nonprofit organization and the company will match only up to $2,000 per year per employee.
Use the à data fileà provided to determine the following:
What was the total donation amount per organization?
What were the average donations per organization?

Answers

Answer:

There are too many weird characters in this question, so I am unable to fix it, comment on this with the correct characters so I can submit a correct answer.

An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours, plus any overtime pay.

Overtime pay equals the total overtime hours multiplied by 1.5 times the hourly wage.

Write a program that takes as inputs the hourly wage, total regular hours, and total overtime hours and displays an employee’s total weekly pay.

Below is an example of the program inputs and output:

Enter the wage: $15.50
Enter the regular hours: 40
Enter the overtime hours: 12

The total weekly pay is $899.0

Answers

wage = float(input("Enter the wage: $"))

regular_hours = float(input("Enter the regular hours: "))

overtime_hours = float(input("Enter the overtime hours: "))

print(f"The total weekly pay is ${(regular_hours * wage) + ((wage*1.5) *overtime_hours)}")

I hope this helps!

Which of these statements are true? A. You can select all the items in the section of the menu. B. In the center section of the menu only one item can be selected at a time. C. Details is selected. D. Thumbnails, tiles, icons, and list are selected.

Answers

Answer:

In the center section of the menu, only one item can be selected at a time.

Details is selected

Explanation:

which of the following is a chemical change.

A: Separating water into different glasses
B: breaking frozen ice cubes with a hammer
c: running an electric current through water
d: boiling water to evaporate it on a stove.

Answers

Answer:c

Explanation:

What’s command do we use to update a file on MySQL?

Answers

Answer:

The MySQL update command/query is used to update existing records in a table in a MySQL database.

Why was the newspaper readership the highest in 1995?

Answers

Because more people read the news paper back then
Because not everyone could afford a computer and because newspapers were more easy and accessible to get

which role belongs to the operating systems
A.
identifying new viruses
OB.
helping the user operate without any hardware devices
O C.
assigning memory to a particular process
OD
preventing two processes from running simultaneously

Answers

Answer: D

Explanation:

What is the hexadecimal equivalent for the decimal number 27? Working must be shown

Answers

The answer is .9726

Explanation:

what is input devices​

Answers

DescriptionIn computing, an input device is a piece of equipment used to provide data and control signals to an information processing system such as a computer or information appliance. Examples of input devices include keyboards, mouse, scanners, [[digital camera]The]s, joysticks, and microphones.

Answer:

An input Device are used to enter information such as letters, numbers, sounds or pictures into a computer.

Choose the best technology device for the
scenario below.
A business professional works in an office
designing graphics for a company's
advertisements.
O Tablet PC
o Smartphone
Desktop computer with 2 screens
Laptop computer

Answers

Answer:

Desktop computer with 2 screens

Explanation:

All graphices designers need the most screen space possible

Answer:

Desktop computer with 2 screens

Explanation:

TCP is a more dependable protocol than UDP because TCP is_____ latent/connectionless/connection-oriented/encapsulated

Answers

Answer:

connection-oriented

Explanation:

Answer:

TCP is a more dependable protocol than UDP because TCP is

connection-oriented

Explanation:

Because I took a guess and that was the  

Can some one help me plz

Answers

Answer:

ONE

Explanation:

The output is one if x is equal to 9 % 2

Class description: A MyString class should behave much like the c++ string class. The class should use a dynamically allocated char array to hold a character string. If the amount of memory allocated to the array is too small to complete some necessary task (e.g., assigning a new character string to the object) the object should automatically double its capacity until it is large enough to complete the task. If it's discovered that the object is using less than 25% of its capacity the object should shrink to half its capacity until it is using more that 25% of its capacity.
Assignment: Implement the MyString class using a header and implementation file named MyString.h and MyString.cpp respectively. Even though MyString.h will be provided on the upload site, create own version for testing code locally. Make sure to properly test code on by creating a test driver that fully tests every function created in the MyString class
Memory Requirements: MyString should start with 10 bytes of allocated memory and should grow in size by doubling. So, we should be able to predict the capacity of MyString as acquiring a patten of 10, 20, 40, 80, ⦠bytes of memory depending of the number of characters stored.
Attributes:
int size â the number of characters currently stored in the string object. Do NOT count the NULL character.
int capacity â the number of bytes currently allocated. This should always be at least size + 1. The extra byte is needed to store the NULL character.
char *data â character pointer that points to an array of characters.
Member Functions:
MyString( ) Constructor
MyString(const char *) Constructor with an initialization character string
~MyString( ) Destructor
MyString(const MyString &) Copy constructor
MyString& operator = (const MyString&) Overloaded assignment operator, make a copy of MyString object
bool operator == (const MyString&) const overloaded equivalence relational operator
char& operator [ ] (int) overloaded [ ] should return a char by reference
void operator += (const MyString&) overloaded += operator, use to concatenate two MyStrings
MyString operator + (const MyString&) const Create a new MyString object that is the concatenation of two MyString objects
void getline(istream&, char delimit = â\nâ); reads an entire line from a istream. Lines are terminated with delimit which is newline â\nâ by default
int length( ) const; return the length of the string
friend ostream& operator<< (ostream&, MyString&); overloaded insertion operator

Answers

You should do 40 points for this

Helppp!!! Will give brainliest! Which of these operating system use the organize file?

Hypervisor

Firmware or wetware

Folders or directories

Output devices

Answers

Answer:hyperviser

Explanation:

Why do you think there is activity even when you are not actively using network services?

Answers

Answer:

Every social media platform has an algorithm, and just because you aren't using it, doesn't mean others are not engaged!

Explanation:

What does the measurement tell you?

Estimate at completion

Answers

Answer:

forecasted cost of the project, as the project progresses/"The expected total cost of completing all work expressed as the sum of the actual cost to date and the estimate to complete." - PMBOK Guide

Explanation:

Measurement tells u the accurate measure of something

1. The trucks hauling asphalt have a maximum capacity of 5 US tons (10,000 lbs) 2. The standard road lane is 12 feet wide. 3. Asphalt weighs 150 lbs per cubic foot 4. Asphalt costs $200 per ton 5. Power and water utilities are run in a conduit pipe under the road as part of all road projects 6. Conduit pipe is available only in 24 ft. lengths - each length costs $500 7. There is one intersection for every mile of road a. a 1 mile road has 1 intersection b. a 2 mile road has 2 intersections c. a 2.99 mile road has 2 intersections 8. Stoplights cost $25,000 per light 9. Each intersection has two stoplights, plus one additional stoplight for each lane a. a 1 lane road has three stop lights at each intersection b. a 2 lane road has four stop lights at each intersection c. a 3 lane road has five stop lights at each intersection 10. Work days are 8-hour days 11. All workers are paid $25 per hour12. Crew members can complete an amount of work in a specified time according to the equation below: crewMember = 50 . miles . lanes/days Test Data Test #1 Given Inputs Length of road project (miles) : 2.75 Number of lanes 3Depth of asphalt (inches) 12 Days to complete project 30Expected Output - Amount of materials needed === Truckloads of Asphalt : 7841 Stoplights : le Conduit pipes : 605 Crew members needed : 14 = Cost of Materials ============ Cost of Asphalt : $7841000.ee Cost of Stoplights : $250000.00 Cost of Conduit pipes : $302500.ee Cost of Labor : $84882.ee - Total Cost of Project - Total cost of project : $8477500.ee

Answers

Answer:

please write in a better way, and make it easy for us to read.

give the imporntance of having standard funiture in the laboratory​

Answers

Answer:

I guess if there is experiment going on in absence one of those furniture then the experiment isn't successful

_____ is a framework based on JavaScript and HTML that is normally used to make dynamic web apps.

a
Python
b
CSS
c
AngularJS
d
A database

Answers

Answer:

AngularJS (c)

Explanation:

Answer:

AngularJS

node is better

Explanation:

1. Discuss data processing concepts and the representation of data in the computer


2. Explain how they work together to process data

Answers

Answer:

gkvjbdsvjnmfbhui jgbfdshjcxvabgsuciusgBFIULWGSfuRyt vqwyrgfgweVGYGTV7BWUIEGDWYUGDCYg

Explanation:

Which of the following occupations is least likely to involve use of a computing device on a day-to-day basis?

Janitorial duties
Cashier in a bank
Journalist
Records clerk in a hospital

Answers

Answer:

Janitorial duties

Explanation:

Compare a Wi-Fi hotspot with a cybercafé.

Answers

Answer:

A WiFi Hotspot is a wireless internet connection that allows a computer, smartphone, or any other internet-enabled devices to connect to internet access points.

A cybercafe refers to any business place that allows people to access the internet usually within its premises after paying for connection access to connect to it.

Explanation:

You are going to send a document to a client, and you want to be absolutely sure that none of the formatting is lost. Which of these document formats would be best?


A Permissions

B Orientation

C Margins

D Location

Answers

Answer:

Explanation:

A because they would not ruin your work and they have to ask your permission if they want to edit it.

Answer: A
Explanation:

Write a program that asks the user to enter the size of a triangle (an integer from 1 to 50). Display the triangle by writing lines of asterisks. The first line will have one asterisk, the next two, and so on, with each line having one more asterisk than the previous line, up to the number entered by the user. On the next line write one fewer asterisk and continue by decreasing the number of asterisks by 1 for each successive line until only one asterisk is displayed. (Hint: Use nested for loops; the outside loop controls the number of lines to write, and the inside loop controls the number of asterisks to display on a line.) For example, if the user enters 3, the output would be:_______.a. *b. **c. ***d. **e. *

Answers

Answer:

Implemented using Python

n = int(input("Sides: "))

if(n>=1 and n <=50):

    for i in range(1,n+1):

         for j in range(1,i+1):

              print('*',end='')

         print("")

       

    for i in range(n,0,-1):

         for j in range(i,1,-1):

              print('*',end='')

         print("")

else:

         print("Range must be within 1 and 50")

Explanation:

This line prompts user for number of sides

n = int(input("Sides: "))

The line validates user input for 1 to 50

if(n>=1 and n <=50):

The following iteration uses nested loop to print * in ascending order

   for i in range(1,n+1):

         for j in range(1,i+1):

              print('*',end='')

         print("")

The following iteration uses nested loop to print * in descending order        

    for i in range(n,0,-1):

         for j in range(i,1,-1):

              print('*',end='')

         print("")

The following is executed if user input is outside 1 and 50

else:

         print("Range must be within 1 and 50")

Other Questions
HURRT PLEASE HELP!Which sequence of transformations could be used tomap parallelogram ABCD onto A"B"C"D"?ry-axis T(0.4)TO, -4) ry-axisT-5, -1) rx-axisrx-axis o T-5, -1) Help me plssssssssssssssssssssssss What were two consequences of the French and Indian War? 1 The colonies lost territory and increased their debt. 2 France gained territory and established new Indian alliances. 3 Both Britain and France gained territory between the Appalachians and the Mississippi. 4 Britain gained territory and increased the nation's debt. can someone help me figure out how to do unit cube finding volume please? BRAINIEST IF ANSWERED !!If mZBNO = 85, then what is m The colonist's main objection to a series of taxes passed by Parliament during the 1760s and 1770s was: Que tengo que hacer ok if a dice is thrown at random find the probability of getting 4 compare and contrast social sciences, nature sciences and humanities Will mark brainliestevery year 20 fewer students eat in the school cafeteria. assuming this trend continues, write a multiplication expression to show the change in the number of students over the next 4 years. Express this change as an integer. The exigence in any rhetorical situation is *1.)Where one can find the exit out of a building.2.)The urgent need that needs to be fixed or resolved; something that needs to be done.Or 3.)It involves the audience and the writer. ? Answer this question please definition of opportunity What were the incentives that Stephen Austin gave the Anglo settlers of Texas? Please helpppppppp A potassium ion (K+) would most likely bond with PART II CHOOSING THE APPROPRIATE UNIT For each example below choose the appropriate unit to measure each (mm, cm, m or km). 1. Width of physics book _____ 2. Distance from New York to Utah _____ 3. Length of fingernail _____ 4. Length of hallway _____ 5. Height of a mountain _____ 6. Length of a fork _____ 7. Distance between cities _____ 8. Width of your eyeball _____ Help me solve this inequality! Choose all the answers that apply.The cell wall _____.A.) is thick and rigidB.) is made of celluloseC.) does not allow the transport of chemicalsD.) is only present in animal cellsE.) supports and protects the cell Why were the colonist families large?The families liked children.There would be more workers.There would be more protection.There was too much disease what's the answer? pls help