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
Alla [95]
2 years ago
8

Write a program using integers user_num and x as input, and output user_num divided by x three times.

Computers and Technology
1 answer:
nirvana33 [79]2 years ago
5 0

Code:

user_num = int(input("user_num: "))

x = int(input("x: "))

print(user_num / x ** 3)

Explenation:

First, we make the user give us the values of user_num and x using the input() function. However, to later perform math with them, we first have to convert them into "int" using the int() function. Then we assign a variable to the values. At last we print user_num / x ** 3, since it's the same as dividing user_num by x three times.

You might be interested in
Dani wants to create a web page to document her travel adventures. Which coding language should she use? HTML Java Python Text
Anna [14]

Answer:

HTML, CSS, JavaScript, python, SQL

Explanation:

To create a web page for her travel adventures Dani has to use HTML and CSS to design the page's layout. A beautiful simple design such as one which shows photos of her on her travel destinations, and a paragraph for her to write a little story on her travels would do.

Dani needs JavaScript to animate the photos she's going to post on the page. Dani also should use python to build the backend of her page so she can write codes to save and access her documented adventures from the database. She should use a database language like SQL to save all of her adventures so she can view them at a later time for the memories.

7 0
3 years ago
A printer is considered to be in the category of
borishaifa [10]

Answer:

D

Explanation:

I got it correct on my test.

6 0
3 years ago
Read 2 more answers
Tiffany is writing a program to help manage a bake sale. She writes the following code which prompts the user to enter the total
PtichkaEL [24]

Answer:

Explanation:

the answer is also in the question. The loop is used to control the number of  program execution. So in order not to run forever, the loop should be included inside the loop brackets. Then you can restructure the code as done below.

var numItems = promptNum("How many items?");

var total = 0;

var itemPrice=0;

while (numItems > 0){

itemPrice = promptNum("Enter next item price");

total = total + itemPrice;

numItems = numItems - 1;

}

console.log("The total is" + total);

The value to be displayed will be the total of the item prices inputted.

8 0
4 years ago
What is the error in this program?
WINSTONCH [101]

The error in this program above is that All the blocks should be in one connected stack to function.

<h3>What are the errors in a program?</h3>

In the act of developing a programs there are some kinds of error that can take place such as syntax errors, logic errors and others.

Note that in the program above, The error in this program above is that All the blocks should be in one connected stack to function and thus there is an error.

Learn more about program from

brainly.com/question/1538272

#SPJ1

5 0
2 years ago
what will allow you to immediately exit the program without rebooting the computer, when you realize your browser is not respond
Vlada [557]

Answer:

the exit button on top right or x out of that certain tab

Explanation:

4 0
3 years ago
Other questions:
  • Jane works in the sales department of a service company. She has impressive interpersonal skills and always turns up for work on
    11·2 answers
  • You want to find information about Paris, France in the last five years, written in English. What is the best way to search for
    5·2 answers
  • If an occupation is projected to decline by 7% over the next 10 years, how would you rate the job outlook?
    15·1 answer
  • What is the program that searches through data bases?
    10·1 answer
  • Whay device is recommended to use to install windows 10
    13·1 answer
  • Which of the following is referred to as "keeping up with the Joneses"?
    13·1 answer
  • Apply Decision Tree Algorithm on the following data:
    12·1 answer
  • How do I mark someone brainiest
    9·2 answers
  • You are designing software for elderly people. Which two features can you
    6·1 answer
  • Explain how you would set up a Demilitarized Zone on. You have 25 workstations and a server on your site. Explain what additiona
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!