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
Alecsey [184]
3 years ago
5

Write a program using integers userNum and x as input, and output userNum divided by x four times. Ex: If the input is 2000 2, t

he output is: 1000 500 250 125 Note: In Coral, integer division discards fractions. Ex: 6 / 4 is 1 (the 0.5 is discarded).this must be written in Coral Language
Computers and Technology
1 answer:
Vitek1552 [10]3 years ago
4 0

Answer:

integer userNum

integer x

integer i

put "Enter the user number: "

userNum = Get next input

put "Enter the x value: "

x = Get next input

for i = 0; i < 4; i = i + 1

            put userNum/x to output

Explanation:

Coral Programming language is an ultra-simple programming language for learning programming. The first three rows of the code block declare the variables 'userNum', 'x', and 'i'. The "Get next input" and the "Put 'output_value' to output" are used by the program to get input from the user and output a value to the screen respectively.

You might be interested in
Frank listed the steps for attaching a file to an e-mail. Step 1: Create the message. Step 2: Click Attach File in the Include g
bija089 [108]
Which best describes Frank’s error?
Step 3 should be done before Step 2.
3 0
4 years ago
Read 2 more answers
Write a for loop to print the numbers 88, 84, 80... 44 on one line
horrorfan [7]

I've included my code in the picture below. Best of luck.

7 0
3 years ago
Home tab contains the following groups: view – contains commands for changing the current view of the _____. Clipboard consists
Dmitry [639]

Answer:

The missing words are:

A) Workbook

B) Data tab

Explanation:

Home tab contains the following groups:

View – contains commands for changing the current view of the <em><u>workbook </u></em>. Clipboard - consists of commands for cutting, copying, pasting, formatting painter and opening the clipboard.

<em>Data Tab</em> holds commands for filtering, sorting and selecting data.

All the above commands are consistent with the interface of a Microsoft Office Excel program.

Cheers!

8 0
4 years ago
What types of issues can be resolved by knowing how to access and use the control panel
Genrish500 [490]
Network issues
Screen resolution and volume issues
5 0
4 years ago
Read 2 more answers
How do I put a picture on my question?
timurjin [86]
Okay well you first have to make sure the image you want to put in your question is somewhere in your finder for example like in pictures, documents, downloads,etc.
Next when you are typing your question you should notice that at the bottom left corner there is a paperclip. When you click on this paperclip your finder will open and then you will be able to access and download your image to your question. 



8 0
3 years ago
Other questions:
  • Survey Q. Non-scoring: What role is played in the team? (1 correct answer)
    14·1 answer
  • 19. When cells or rows are inserted or deleted in an Excel worksheet, how are cell references affected by the insertion or delet
    13·2 answers
  • Type the correct answer in the box. Spell all words correctly. What allows users to make long-distance calls over the Internet?
    14·2 answers
  • Write a script that will read from a file x and y data points in thefollowing format:
    9·1 answer
  • Write a cash register program that calculates change for a restaurant of your choice. Your program should include: Ask the user
    11·1 answer
  • Which of the following actions has no impact on your credit score
    9·1 answer
  • How many bits are necessary for a binary representation (unsigned) of:
    15·1 answer
  • Why transport layer is usingconnectionless services if network layer is providing connection oriented services?
    10·1 answer
  • 100+20000000 please give answer and win iPhone 11 pro​
    15·1 answer
  • 10. When does teasing become cyberbullying?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!