What are some real-world situations that involve infinite loops, for loops, and while loops?

Answers

Answer 1

Answer:

We work hard to get paid at the end of each month. Another could be the water cycle.

Explanation:

Answer 2

There aren't many things that can never end. The sun will eventually get chilly and all life on earth will cease to exist since the earth is not limitless.

There is nothing that can measure an infinite thing that extends for countless light years; space and time are the only truly limitless things. Nobody actually knows how long the planet has existed for; time never ends. Long before the alleged huge boom, the cosmos could have been created. God is the limitless thing that existed long before the universes were created. He created the universe and everything inside your head. You would not have ever been born without him.

Time and space are examples of an infinite loop, but I would also include human life. Why? You will be revived and reincarnated once you die, and you will then live forever.

The water cycle is an example of a while loop since it will continue as long as the earth and water do. But the planet Earth probably won't last forever.

For loop: As the previous commenter noted, someone who works hard every month would be regarded as a for loop.

To learn more about infinite loop ,for loops, while loops refer to:

https://brainly.com/question/13148070

#SPJ2


Related Questions

It’s Edhesive test 2 question 3 I’m confused help please?

Answers

Answer:

"This would cause an error: an integer variable cannot store a string"

Explanation:

The user cannot put letters into an integer line

which part of project management involves determining possible risks ​

Answers

Answer:

A Gantt chart is primarily used for project management. Project managers use it frequently for effective project handling. A Gantt Chart enables the following: Easier task scheduling.The triple constraint theory, also called the Iron Triangle in project management, defines the three elements (and their variations) as follows:

Scope, time, budget.

Scope, schedule, cost.

Good, fast, cheap.

A proven methodical life cycle is necessary to repeatedly implement and manage projects successfully.

Can anyone help me I’m giving 11 points

Answers

#1 pairs with D.

#2 pairs with A.

#3 pairs with B.

#4 pairs with C.

I hope this helps!

One pairs of D would be the analysis

if you could bring any fictional character to life who would it be and why

Answers

Answer:

someone helpful like: saitama or any hero from any manga, except eryn, spooky.

Explanation:

Answer:

bilbo baggins

Explanation:

huge hobbit fan

Joanna is a qualified network specialist and has worked in this role for about six years. Her manager recommends that she enhance her qualifications for career advancement in the same role. What additional certifications can Joanna aim for? SAS Certified Base

Answers

Answer:

Cisco's CCENT

Cisco's CCNA

Explanation:

Since in the question it is mentioned that Joanna who is a  qualified network specialist and has worked for six years also her manager suggest her to enhance her qualification so that the career could be better due to which she can gets the better package and opportunity as compared to before

Therefore the additional certification that needed is CCENT and CCNA and the same is to be considered. These are the networking certifications.

The purpose of a conductor is to ____. * 2 points provide a high resistance path between electrical components protect the circuit board from excessive currents provide a low resistance path between electrical components provide insulating qualities between electrical components

Answers

Answer:

C. a low resistance path between electrical components

Explanation:

A conductor can be defined as any material or object that allows the free flow of current or electrons (charge) in one or more directions in an electrical circuit. Some examples of a conductor are metals, copper, aluminum, graphite, etc.

The purpose of a conductor is to provide a low resistance path between electrical components. This low resistance path is to ensure that the electrical components allows the free flow of electrons and thus, enabling charge transfer.

♥my phone is super cracked and i need 30 dollars to fix it. i'm 14. does anyone know how i can make 30 dollars really fast without taking those dumb surveys? i really need help.♥

Answers

Answer:

hi u could sell some old stuff online?

help a nieghbor?

lemonade stand?

Explanation:

HELP QUICKLY!!!! PLEASE ANSWER IF YOU KNOW, IF NOT DON'T ANSWER FOR POINTS ! I WILL FLAG YOU!!!
What quality would you look for in an image format if you needed the highest quality photo printing in a magazine?

Answers

Answer:

TIF

Explanation:

Answer

TIF

Explanation:

Nico needs to change the font and color of his worksheet at once. Use the drop-down menu to determine what he should do.

First, he should select all of the worksheet at once by clicking the
.

Then, he should right-click the
to change the font of the whole worksheet at once.

Release the cursor and select the
to change the color of the font.

Release the cursor and both font and color should be changed.

Answers

Answer:

he should click the top left corner of the worksheet

he should right click the font-drop down choices

release the cursor and select the color-drop down choices

Explanation:

I just did this

The things that Nico needs to do include the following:

He should click the top left corner of the worksheet.He should right-click the font-drop down choices.He should release the cursor and select the color.

It should be noted that fonts and colors are used in order to make one's work more pleasing to the eyes. Therefore, the steps that are illustrated above are important for Nico to change the font and color of his worksheet at once.

Read related link on:

https://brainly.com/question/18468837

Write a program that will ask the user to continuously input positive numbers until they type -1 to stop. The program should add up all the number they entered as they are typed ( excluding the -1) then print

example: user enters
8

4.

20

-1
Total: 32

Answers

In python 3:

total = 0

while True:

   number = int(input("Enter a number: "))

   if number == -1:

       break

   total += number

print("Total: {}".format(total))

I hope this helps!

1.5 code practice: question 4 edhesive

Answers

print(" \"Computer Science is no more about computers ")
print(" than astronomy is about telescopes\" ")
print ("- Edsger W. Dijkstra")

Which of the following happens during pre-production?

storyboarding

filmmaking

recording

editing

Answers

i want to say storyboarding
I’m pretty sure story boarding

Is anyone doing K12?

Yes

No

Answers

Answer:

No

Explanation:

I need a brainliest to level up please contribute

Answer: Yes I'm doing sixth grade in K12

Assignment 3: Chatbox python coding
I just need something real simple that follows the criteria in simple coding

Answers

In python:

import random

good_responses = (["That's cool!", "Wow!", "That's great to hear!", "Tell me more"])

bad_responses = (["I'm sorry", "That sucks!"])

first_name = input("What's your first name? ")

last_name = input("What's your last name? ")

print(f"Hello {first_name} {last_name}, nice to meet you!")

age = int(input(f"How old are you, {first_name}? "))

if age > 17:

   print("Wow, you're old enough to vote!")

else:

   print("Quite young, aren't you.")

   

color = input("What's your favorite color? ")

print(good_responses[random.randint(0, 3)])

feeling = input("How are you feeling? (sad/happy) ")

if feeling == 'sad':

   print(bad_responses[random.randint(0, 1)])

else:

   print(good_responses[random.randint(0, 3)])

print(f"It's been nice chatting with you, {first_name}!")

I hope this helps!

Which of the following is a type of multimedia?(1 point)

a magazine article about ways to stay active

the handwritten notes from a lecture

a podcast included as part of an online news column

the textbook edition of a Shakespearean play

Answers

C. A podcast included as part of an online news column is a type of multimedia.

Answer: C

a podcast included as part of an online news column

the answers might be in a different order on ur side, but the answer will stil be the same. A podcast included as part of an online news column

I hope this helps : )

Write a program that will simulate rolling two dice ( numbers 1 - 6 )
Ask the user how many rolls they want, then using a loop simulate that many dice rolls. Count the number of times the dice land on double 6's and print that total count at the end of the loop.

Answers

import random

rolls = int(input("How many times do you want to roll the dice? "))

i = 0

total_count = 0

while i < rolls:

   die1 = random.randint(1,6)

   die2 = random.randint(1,6)

   if die1 == 6 and die2 == 6:

       total_count += 1

   i += 1

print("The dice landed on double 6's {} time(s)".format(total_count))

I hope this helps!

who invented the computer? ​

Answers

Answer:

Charles Babbage invented computer

A program is written to compute the sum of the integers from 1 to 10. The programmer, well trained in reusability and maintainability, writes the program so that it computes the sum of the numbers from k to n. However, a team of security specialists scrutinizes the code. The team certifies that this program properly sets k to 1 and n to 10; therefore, the program is certified as being properly restricted in that it always operates on precisely the range 1 to 10. List different ways that this program can be sabotaged so that during execution it computes a different sum, for example, 3 to 20.

Answers

Answer:

See explanation section

Explanation:

See the program at the end of this solution

The program can be sabotaged if the source file is altered before running the program.

Take for instance,

Someone changes

for(int i =k;i<=n;i++)

to

for(int i =3;i<=20;i++)

This implies that no matter the user input, the program will only calculate the sum of 3 to 20

It is also possible that the program is altered by an external process.

Take for instance;

n = 10

k = 1

And the sum has been calculated for the range of k = 1 to 5.

Then the program is altered by an external process.

15 (sum of 1 to 5) will be displayed instead of 55 (sum of 1 to 10)

Program written in C++

#include<iostream>

using namespace std;

int main() {

int k.n,total=0;

cin>>k;

cin>>n;

//Assume k will always be less than n

for(int i =k;i<=n;i++) {

total+=i;

}

System.out.print(total);

return 0;

}

Input Format:

Get a, b, and c as input.

Output Format:

Output “Yes” or “No” depending on if the given quadratic is factorable. If it is

factorable, output the roots in increasing order. If there are two of the exact same roots, only output it once. Round roots to the nearest hundredth.

Sample Input Sample Output

1 1 -1 Yes -1.00, 0.00

1 3 2 Yes -2.00, -1.00

2 1 2 No

Answers

In python 3:

import math

def quadratic(a, b, c):

   if (b ** 2) - (4 * a * c) < 0:

       return "No"

   root1 = round((-b + (math.sqrt((b ** 2) - (4 * a * c)))) / (2 * a), 2)

   root2 = round((-b - (math.sqrt((b ** 2) - (4 * a * c)))) / (2 * a), 2)

   lst = ([])

   lst.append(root1)

   lst.append(root2)

   lst.sort()

   return f"Yes {lst[0]}, {lst[1]}"

print(quadratic(1, 3, 2))

The print statement tests the function. I hope this helps!

Pepsi or Coke B)
Or other

Answers

Answer:

Out of Pepsi or Coke, I gotta go with Coke, but in general any soda I would choose Orange Fanta.

Answer:

I prefer cream soda dr. pepper. But out of Pepsi and Coke, I'd choose Coke but I don't really like either.

Explanation:

Give two reasons why an IT manager consider using a cloud software?​

Answers

Answer:

Cloud offers better insight.In a world awash in structured and, increasingly, unstructured data, 54% of leading organizations are using analytics to derive insights from big data, which helps them target customers and product opportunities more effectively.

Cloud helps collaboration. Cloud allows work to be accessed from multiple devices and from anywhere, which in turns makes it much easier for teams to collaborate on shared data.

Explanation:

in which grades do students typically take the PSAT?
A. Ninth and tenth grades
B. Eighth and ninth grades
O C. Tenth and eleventh grades
O D. Eleventh and twelfth grades

Answers

B eighth and ninth grade

B. Eighth and Ninth grade.

Brainliest will be given

Answers

Answer:

c.

Explanation:

Answer:

C

Explanation:

"How does the INTERNET
work?
O Celluar
O ip Adress
O Twisted Pair
O Fiber Optic
O Server

Answers

Answer:

server

Explanation:

it works through a server

Answer:

IP adress

Explanation:

HELP ME!!!

Complete the sentence. (2 words) _____ _____ Each packet is addressed to the recipient's .

Answers

Answer:

I'd like to say home address

Explanation:

Home address Each packet is addressed to the recipient's.

What is address?

on which to engrave delivery instructions. a letter's address. To assign responsibility to another party such as an organization or factor: to concentrate one's efforts or attention.

A1. A person's address, which includes their home and workplace addresses as well as the street name and house number where they live or work. a change in tone to pay attention to or address a worry or problem: We'll talk about that at our next meeting.

An address, which is a collection of information presented in a mostly standardized fashion and typically employs political boundaries and street names as references, identifies the location of a building, apartment, or other structure or a plot of land.

Thus, it is Home address.

For more information about address,  click here:

https://brainly.com/question/29065228

#SPJ2

Read the following scenario:
Two graphic design artists are leaving a major production studio to start a small production company. The artists are in the process of hiring team members when the artists disagree on two potential candidates for one position. Neither artist is willing to compromise, and the hiring process comes to a standstill. Meanwhile, a feature film company has expressed interest in hiring the new production company to work on an upcoming film.
How would this problem most likely be solved?
a. The partners would meet and reevaluate their staff needs, potentially making room for both candidates.
b. The partners would split up and open competing production companies.
c. The partners would defer the hiring of the position to the film producer.
d. The partners would dissolve their business and move into freelancing.
Please answer now !!!

Answers

Answer:

A

Explanation:

None of the other answers suit a professional business and situation.

What are the advantages and disadvantages of using a relational database than a flat-file database.

Answers

Advances

Data Integrity, You Only need to change the data in one of the tables, it will then update itselfData Redundancy, By having a relational databse it ensures that no attributes are repeatedData Consistency, There is no chance of the same attribute being stored in a different format in a different fileData Flexibility, When dealing with queries, it gets much easier creating deeper queries with a relational DatabseGreater Efficiency, as you only have to input the data only once into a relational database it saves time and human resources

Disadvantages

Complex, Relational databases can be very complex and without the necessary training can be very hard to break down.Expensive, Relational databases are mostly commercial and require the user to buy that piece of software or licenses for more than one machine

It is easier to minimize duplicate data in a relational database.

It is difficult to use a relational database without prior knowledge.

I WILL MARK BRAINLIEST 11

Answers

Answer:

Many may answer different to this question, but in my opinion I would say it's false

Type the correct answer in the box.
Which function will display 6 as the output in the following formula?
C1*(C2+B1)
where C1 is 6, C2 is 2, and B1 is 4
___.

Answers

Answer:

3

Explanation:

I WILLMARK BRAINLIEST PLZ ANSWER.

Answers

Answer:

I THINK  its D I THINK

Explanation:

The correct answer is syntax error.

In programming, a syntax error occurs when you forget things such as curly braces, semi-colons, colons, etc.

Other Questions
HELP!!! You have the opportunity to lease space for your business. The property owner has proposed a four-year lease with a rent of $29,000 per year. If a proposed rent increase is 2% per year what will the annual rent be at the end of four years?a. $13,200b. $22,000c. $31,390d. $32,440 pretty random but my dream is to become a world influencer omg like the thought of that so my question to all of you is who is your biggest role model and why !!! and if you could meet anybody in this world who would it be !! cant wait to see your responses 1. A ball is dropped from the top of a cliff that is 38 meters tall. Calculatethe ball's impact velocity.20 pointsO +744.8+27.29+372.4+19.30 Max delivers 9,360 pieces of mail in one year. About how many pieces of mail does he deliver in 4 months? Cmo se conjuga el verbo hacer en la forma de Ustedes?Question 9 options:hicehicistehizohicieron Cole had 33 DVDs. His mother bought him d more DVDs. Write an expression that shows how many DVDs Cole has now. Which unit of the executive branch would the president consult to help draft a new drug policy?A. Office of administrationB. General services administration C. Housing and urban development D. Executive office of the president What is the purpose of this excerpt from the article "What Is GIS?"?GIS also can be used for complex modeling to answer a wide range of "what if" and ecosystem simulation questions. These may be cartographic models designed to document the co-occurrence or interrelationship of multiple data layers or they may be hypothetical research models designed to mimic natural ecological systems. Similarly, modeling with GIS can be used to predict the impacts that one set of parameters will have on another. For example, wetlands, soils, hydrography, climatology and elevation data can be combined to model flooding within a river system. Upstream changes in land use within the same system can be modeled to determine the potential impact of conversion of a forested floodplain to residential development or to agriculture. As a result, both natural system responses to storm events and the impact of human land use decisions can be assessed prior to the proposed action.A. to warn readers about the hazards of diminishing wetlandsB. to inform readers about the multiple uses of GISC. to explain the workings of the ecosystem simulationsD. to instruct readers about proper use of GIS resources You are a school photographer taking individual and class pictures for two classes of 21 students each on average each individual picture takes three minutes in a class picture takes 10 minutes how long should it take for you to take all the pictures Two horses galloped past the fence as if they owned the arena.a.prepositionb.conjunctionc.interjection Review Seths steps for rewriting and simplifying an expression.Seth's first mistake was made in (blank)Step 1, Step 2, Step 3, Step 4, or Step 5where he (blank)Factored 16 out of the second term instead of 4Did not apply the properties of exponents correctlyFactored 2 out of the first term instead of 4Did not write the expression as division correctly Is y directly proportional to x based on the data in the table?A) YesB) NoNEED ASAP On October 1, 2021, Chief Corporation declared and issued a 14% stock dividend. Before this date, Chief had 86,000 shares of $5 par common stock outstanding. The market price of Chief Corporation on the date of declaration was $10 per share. As a result of this dividend, Chief's retained earnings will: 1. Choose a type of company that would have sales people, and then answer the following questions about it. TIP: Choose a type of company that you would be interested in working for or starting up yourself. a. Describe the product the company sells. (1-3 sentences. 2.0 points) b. Which needs in Maslow's hierarchy does this product appeal to please help!! chemistry question during which eclipse does the full moon move through Earths shadow? From this passage the reader may infer thatA)returning defective items is a simple and easy process.B)returning defective items is a fun and exciting process.returning defective items is C)a painful and disgusting process.D)returning defective items is a complicated and tedious process. How many solutions does this equation have? 7(x+2)=7x+10 a. one b. infinite c. two d. zero How Tom take advantage when George is getting chairs which of the following statement is always true