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
Sholpan [36]
4 years ago
14

Write a do-while loop that continues to prompt a user to enter a number less than 100, until the entered number is actually less

than 100. end each prompt with newline. ex: for the user input 123, 395, 25, the expected output is: enter a number (<100: enter a number (<100: enter a number (<100: your number < 100 is: 25
Computers and Technology
1 answer:
worty [1.4K]4 years ago
4 0
Here's a solution in plain C:

int num;
do { printf("enter a number (<100)\n"); scanf_s("%d", &num, sizeof(num)); } while (num >= 100);
printf("your number <100 is %d", num);

Note that this solution has flaws. It is unclear what should happen when the user types a negative number or a floating point number. Also it doesn't handle incorrect input (e.g., "aaa") at all.

But you get the idea.
You might be interested in
Is this a desktop or a computer, or are they the same thing
Cloud [144]

Answer:

Same thing.

Explanation:

3 0
3 years ago
Eric has asked you to help him build a new gaming computer so that he can play the newest games available. He also wants the com
JulsSmile [24]

Answer:

A. Video Card

Explanation:

Assuming that he has purchased everything as such. A video card or graphics card is the key thing he's missing to play any games and being VR-compatible. B and D are not really necessary to gaming and although having an C is kind of needed. Playing on an old monitor is fine as well, just as long as it has an HDMI or DP input. All that's left is the video card.

8 0
4 years ago
5. How can a budget prepare you to become financially secure?
Nady [450]

Answer:

Because you have a certain amount of money you’ll be able to spend for a certain period and helps you not go over your budget. In other words, it helps you keep track of your money so that you don’t waste more money than you are supposed to.

Explanation:

8 0
3 years ago
Read 2 more answers
Why would we need to consider implementing our business blockchain application not on Bitcoin but Ethereum?
Cloud [144]
True or False
1. Phishing is the act of sending multiple emails to multiple users in hope of having
2. Spoofing is the act of obtaining unauthorized access to data from a computer
network.
3. Extortion is the act of using the internet to threaten or damage someone's
reputation to extort money or anything else of value.
4. In late 2014, LimeWire was raided for the second time due to years of pirating
movies, music, games, books and other software.
5. Electronic harassment is also referred to as cyberbullying.
6. Non-delivery of service is the act of devising a scheme wherein a culprit posts an
item or service for sale over the internet, and once the transactions have been done, does not
give the item or service.
7. Encryption is the process of converting raw to data code.
8. In piracy, trackers are used to identify IP addresses currently sharing a pirated
file.
9. Wager Gambling is the act of betting on any sports event over the internet.
10. Most email services today have spam or bulk folder that automatically puts
these suspicious emails to that folder.
3 0
3 years ago
What is the highlighted portion of the screen called?
inna [77]

Answer:

/ˈerər/

Learn to pronounce

noun

a mistake.

"spelling errors"

Similar:

mistake

fallacy

misconception

delusion

inaccuracy

miscalculation

misreckoning

blunder

fault

flaw

oversight

misprint

literal

erratum

misinterpretation

misreading

slip-up

bloomer

boo-boo

6 0
4 years ago
Other questions:
  • This solution will use an item quantity and a state code to calculate the total price of an item. The solution will calculate th
    10·1 answer
  • Why do astronomers prefer to use the reflecting telescope rather than the refracting telescope to view distant objects in space?
    15·2 answers
  • a problem-solving approach that requires defining the scope of a system, dividing it into its components, and then identifying a
    8·1 answer
  • How can you tell that a rolling soccer ball is in motion
    5·1 answer
  • The enhanced for statement allows you to iterate through the elements of an array or a collection without using a counter. Give
    10·2 answers
  • Andrew works for a company that develops for a company that develops optic-fiber cables for transmission of data. which layer of
    14·1 answer
  • Please help it a timed test
    10·2 answers
  • Explain the working principal of computer system with suitable diagarm​
    9·1 answer
  • Can someone please help? i am trying to code my raspberry pi pico in python, and it says this is wrong. Can someone help tell me
    6·1 answer
  • Different the policies and protocols in the industry
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!