HURRY HELP THIS IS FOR CODING !!!! What are some real-life situations that require a program that is iterative? Include at least three examples in your answer.

Answers

Answer 1
Hello :D

Answer:

Apple has released multiple different versions of each model of its iPod products. The Nano, for example, has evolved from an original slim mP3 player with a very small screen to a tiny square touch-screen version to a longer, thinner touch screen version.

Hope this helped!

Brainliest appreciated!

--Juri Davis


Related Questions

select the correct word to complete the sentence

First developed by grace hopper a ____ is a computer program that translates higher level programming languages into machine code

A assembly language

B COBOL

C digital circuit

D compiler

pls help quick or i am screwd cause i was not paying attention to my class ​

Answers

Answer:

Answer is B.

Explanation:

First developed by grace hopper a COBOL is a computer program that translates higher-level programming languages into machine code. The correct option is B.

What is a COBOL?

COBOL (Common Business-Oriented Language) is a high-level business programming language. It was the first popular language to be intended to be operating system-independent, and it is still used in many financial and commercial applications today.

First developed by grace hopper a COBOL is a computer program that translates higher-level programming languages into machine code.

Hence, the correct option is B.

Learn more about COBOL:

https://brainly.com/question/4584026

#SPJ2

4. Assume you have a list of numbers
12,10,32,3,66,17,42,99,20
a) Write a loop that prints each of the numbers on a new line.
b) Write a loop that prints each number and its square on a new line.

Answers

lst = [12,10,32,3,66,17,42,99,20]

a)

for x in lst:

   print(x)

b)

for x in lst:

   print(str(x) + " " +str(x**2))

I think this is what you're looking for. Hope this helps!

What is the text output by the program?


A. Less than 10
B. Less than 20
C. Less than 30
D. 30 or more

Answers

Answer:

30 or more

Explanation:

30 or more is the answer

Thanks hope that helps my dude

You can use the ____ to change the order of the wat windows are stacked.

A). taskbar
B). Open bar
C). toolbar
D). Menu bar

Answers

Answer:

A

Explanation:

WILL GIVE BRAINLIEST
Achieving intended results ends _____

A the testing cycle.
B the compiling process.
C the stepping function.
D the writing of program code.

Answers

Answer:

c

Explanation:

c

I agree it is C. I hoped this helped!!! Happy Thanksgiving!!!!!

A search for reliable information is a search for what?

Answers

Answer:

For information you can trust

Explanation:

Which data type is –7?

int

single

string

float

Answers

Answer:

Int

Explanation:

Good Luck!

Complete the sentence describing an email client.
An email client is a___
that runs on____

Answers

Answer:

Program, client

Explanation:

Not 100% sure on this but this is my best guess

Which of the following is a basic slide size?
Choose all answers that are correct.
A) 4:3 aspect ratio, which is suitable for standard-definition TVs and monitors
B) 2:1 aspect ratio, which is suitable for projecting onto a screen
C)5.6 aspect ratio, which is suitable for Presentation view
D)16:9 aspect ratio, which is suitable for high-definition TVs and widescreen
monitors

Answers

Answer:

D)16:9 aspect ratio, which is suitable for high-definition TVs and widescreen

monitors

Explanation:  

This is the default size set by powerpoint for this reason

A basic slide size is 16:9 aspect ratio, which is suitable for high-definition TVs and widescreen monitors.

What is widescreen monitor ?

The majority of modern high-definition computer displays and televisions use the widescreen 16:9 aspect ratio. The sides are represented by the "9," while the top and bottom are represented by the "16." The ratio of a monitor's or TV's width to height is indicated by the numbers separated by a comma.

The majority of widescreen displays their material using the just-adopted 16:9 aspect ratio. All the movies, and video games you watch or play will be in HD unless the content you're watching was made in a 4:3 aspect ratio.

According to research, utilizing several screens or enlarging monitors makes them far more painful for the eyes.

Thus, option D is correct.

To learn more about widescreen monitor, follow the link;

https://brainly.com/question/14326406

#SPJ5

a surface
A wooden block of weight 12 N kept on a table having
area of 4m² Calculate the pressure exerted on the table.​

Answers

Answer:

3 Pa

Explanation:

pressure = force / area

What are some good netflix shows

Answers

Answer: Here’s a few to try

- Riverdale

- Outer Banks

-Stranger Things

-The Ranch

-The Bodyguard

Answer:

Ok ok here we go-

Haikyuu (its sooooo good u might not have it tho)

Mako-mermaids (lol)

Schitts Creek

And Stranger things

Explanation:

Hi, can someone please help me with this? I've been having a lot of trouble with it.

The assignment

Your job in this assignment is to write a program that takes a message as a string and reduces the number of characters it uses in two different set ways. The first thing your program will do is ask the user to type a message which will be stored as a String. The String entered should be immediately converted to lowercase as this will make processing much easier. You will then apply two different algorithms to shorten the data contained within the String.

Algorithm 1

This algorithm creates a string from the message in which every vowel (a, e, i, o, and u) is removed unless the vowel is at the very start of a word (i.e., it is preceded by a space or is the first letter of the message). Every repeated non-vowel character is also removed from the new string (i.e., if a character appears several times in a row it should only appear once at that location). So for example the string "I will arrive in Mississippi really soon" becomes "i wl arv in mssp rly sn".

After applying this algorithm, your program should output the shortened message, the number of vowels removed, the number of repeated non-vowel characters removed, and how much shorter the shortened message is than the original message. The exact format in which the program should print this information is shown in the sample runs.

Algorithm 2

This algorithm creates a string by taking each unique character in the message in the order they first appear and putting that letter and the number of times it appears in the original message into the shortened string. Your algorithm should ignore any spaces in the message, and any characters which it has already put into the shortened string. For example, the string "I will arrive in Mississippi really soon" becomes "8i1w4l2a3r1v2e2n1m5s2p1y2o".

After applying this algorithm, your program should output the shortened message, the number of different characters appearing, and how much shorter the shortened message is than the original message. The exact format in which the program should print this information is shown in the sample runs.

Sample Run 1
Type the message to be shortened
This message could be a little shorter

Algorithm 1
Vowels removed: 11
Repeats removed: 2
Algorithm 1 message: ths msg cld b a ltl shrtr
Algorithm 1 characters saved: 13

Algorithm 2
Unique characters found: 15
Algorithm 2 message: 4t2h2i4s1m5e2a1g1c2o1u3l1d1b2r
Algorithm 2 characters saved: 8
Sample Run 2
Type the message to be shortened
I will arrive in Mississippi really soon

Algorithm 1
Vowels removed: 11
Repeats removed: 6
Algorithm 1 message: i wl arv in mssp rly sn
Algorithm 1 characters saved: 17

Algorithm 2
Unique characters found: 13
Algorithm 2 message: 8i1w4l2a3r1v2e2n1m5s2p1y2o
Algorithm 2 characters saved: 14
Milestones
As you work on this assignment, you can use the milestones below to inform your development process:

Milestone 1: Set up a program that takes a string input and converts all the letters to lowercase. Start implementing algorithm 1: create a counter variable and iterate through the characters of the String, incrementing this each time a vowel is encountered which is not preceded by a space or is at the start of the String. So at the end of the loop this counts the number of vowels that are not at the start of a word.

Milestone 2: Add further conditions (using else if) in your loop to count any non-vowel characters which appear immediately after the same character. Make a new empty String to hold the shortened message at the start of the code, then add a final else condition in the loop to add all characters which were not vowels or repeated letters to this String. Then print the statements for algorithm 1 using your counts and shortened message.

Milestone 3: Start implementing algorithm 2 by writing code that iterates through the String and checks that each character is not a space and has not already appeared in the word before that point. You will need to use nested loops - an outer loop to iterate through the String characters and an inner loop that looks through the previous characters up to that point - and a flag variable to record if a letter was found in the inner loop. Use a counter variable to count all such "unique" characters in the String.

Milestone 4: Add a second inner loop inside the outer loop from the previous which counts all appearances of a character that passes the tests from milestone 3. Add the character and the number of times it appears to another shortened message String (which should start as blank String). Finally, print the statements for algorithm 2 using your unique character count and shortened message.

Answers

Answer:

Scanner scan = new Scanner(System.in);

System.out.println("Type the message to be shortened");

String msg = scan.nextLine();

System.out.println();

msg = msg.toLowerCase();

String newStr = "";

System.out.println("Algorithm 1");

int vowels = 0;

int repeats = 0;

for(int i = 0; i < msg.length(); i++)

{

if((msg.substring(i, i +1).equals("a") || msg.substring(i, i+1).equals("e") || msg.substring(i, i +1).equals("i") || msg.substring(i, i+1).equals("o") || msg.substring(i, i +1).equals("u")))

{

if(i != 0 && !msg.substring(i -1, i).equals(" "))

{

vowels++;

}

else

newStr += msg.substring(i, i +1);

}

else if(i != 0 && msg.substring(i, i +1).equals(msg.substring(i -1, i)))

{

repeats++;

}

else

{

newStr += msg.substring(i, i +1);

}

}

System.out.println("\nAlgorithm 1");

System.out.println("Vowels removed: " + vowels);

System.out.println("Repeats removed: " + repeats);

System.out.println("Algorithm 1 message: " + newStr);

System.out.println("Algorithm 1 characters saved: " + (vowels + repeats));

algorithm2(msg);

}

public static void algorithm2(String msg)

{

String alg2Msg = "";

int uniqueLetters = 0;

// Iterate through each letter in msg

for(int i=0; i < msg.length(); i++)

{

String ltr = msg.substring(i,i+1);

// Only process if this character is not a space

if(!ltr.equals(" "))

{

/* Check whether this character has already appeared by

* iterating through characters from start up to the current

* letter and using a boolean flag variable.

*/

boolean alreadyUsed = false;

for(int j=0; j<i; j++)

{

if(msg.substring(j,j+1).equals(ltr))

{

alreadyUsed = true;

}

}

/* If this character hasn't already appeared,

* iterate through the rest of the characters

* and count how many times it appears.

*/

if(!alreadyUsed)

{

uniqueLetters++;

int count = 0;

for(int j=i; j<msg.length(); j++)

{

if(msg.substring(j,j+1).equals(ltr))

{

count++;

}

}

alg2Msg += count + ltr;

}

}

} //end for loop

System.out.println("\nAlgorithm 2");

System.out.println("Unique characters found: " + uniqueLetters);

System.out.println("Algorithm 2 message: " + alg2Msg);

System.out.println("Algorithm 2 characters saved: " + (msg.length() - alg2Msg.length()));

} //end algorithm2

}

Explanation:

Here you go!

What is 7/12 simplified?

Answers

Answer:

7 12

Explanation:

Who is the prince of math?

Answers

Answer:

Johann Carl Friedrich Gauss

Explanation:

Johann Carl Friedrich Gauss

what is the plan to make optimum usage of available spaces?

Answers

Answer:

dergragmentation or share to speed up procceces

What other jobs would require employees to follow directions very carefully? (Give 4 examples)​

Answers

construction, surgeon, army, teachers

You are looking at computer ads. One has a processor that is 3.64GHz. What does this mean?

It can download 3.64 gigabits per second.

It can convert binary to decimal at the rate of 3.64 trillion numbers per second.

It can upload 3.64 gigabits per second.

It can execute 3.64 billion instructions per second.

Answers

Answer:

The higher the clockspeed the more the cpu can do

Explanation:

Miranda is using Python 3 as a calculator and wants to divide 1374 by 3. What should Miranda type?
A.
print (1372 divided by 3)

B.
print (1374 )_ 3))

C.
print (1374 / 3)

D.
print (1372 ./. 3)

Answers

Answer:

C

Explanation:

Answer:

C

Explanation:

I got it right on a test.

What is the error in this?

userGuess = int(input(“Guess a number between 1 and 20: “))

Answers

Most interpreters won't recognize “ “as a quote. You need to use " ". Other than that, your code looks good.

The auto recover function in a word is available to especially if you experience powerful failure explain what happens to your document if you do it side to save or not to save the recovery file and how you can ensure the majority of your document is recovered

Answers

Answer:

When the document is not saved before the application is closed, The word application assumes that the file is not important, so does not save a recovery file, but to recover the file open the application and go to the recently opened file, do not edit the file, go to the bottom of the document and click on recovery or use the CTRL-Z shortcut key.

Explanation:

Microsoft word is a word processing application used to make and edit word documents. The recovery option in the word application is an essential tool in Word that prevents a permanent loss of documents in production and can be used to retrieve saved and unsaved documents.

Jenna is applying for a job as a high school teacher. Which information should Jenna not put on her résumé?

A) Education
B) Age
C)Skills
D)Email Adress

Answers

Answer:

I would say D or B

Explanation:

they need to know her education and they need to know her skills, so B or D is the reasonable answer.

C ) Education is the answer

HELLLLPPPPPP Jerry needs to move his Turtle forward 25 pixels. Which line of code should Jerry use?

tom(25)
tom.forward(25)
tom.turtle(25)
tom.right(twenty-five)

Answers

If your turtle is defined and you named the variable tom, the code would be:

tom.forward(25)

Jerry should use the line of code tom.forward(25) to move his Turtle forward 25 pixels. The correct option is 2.

What is coding?

The process of designing, writing, testing, and maintaining the source code of software programmes, websites, and other computer applications is referred to as coding.

Because the forward() method is used to move the turtle forward by a specified number of pixels or units, the line of code tom.forward(25) should be used to move the turtle forward by 25 pixels.

The turtle object is named Tom in this case, and the method forward() is called on it with the argument 25, indicating that the turtle should move forward 25 pixels.

Thus, the correct option is 2.

For more details regarding coding, visit:

https://brainly.com/question/17204194

#SPJ2

How is hashing used?

A. used to protect the transmission of software and large files to be downloaded
B. used for authentication, digital signatures, and message authentication codes
C. ecommerce protocols and bitcoin generation
D. all the above

Answers

Answer: Its A. used to protect the transmission of software and large files to be downloaded

Explanation: Hashing is an algorithm that calculates a fixed-size bit string value from a file. A file basically contains blocks of data. Hashing transforms this data into a far shorter fixed-length value or key which represents the original string. The hash value can be considered the distilled summary of everything within that file. A good hashing algorithm would exhibit a property called the avalanche effect, where the resulting hash output would change significantly or entirely even when a single bit o...

60 POINTS
IN JAVA

In this exercise, you will need to write a program that asks the user to enter different positive numbers.

After each number is entered, print out which number is the maximum and which number is the minimum of the numbers they have entered so far.

Stop asking for numbers when the user enters -1.

Possible output:

Enter a number (-1 to quit):
100
Smallest # so far: 100
Largest # so far: 100
Enter a number (-1 to quit):
4
Smallest # so far: 4
Largest # so far: 100
Enter a number (-1 to quit):
25
Smallest # so far: 4
Largest # so far: 100
Enter a number (-1 to quit):
1
Smallest # so far: 1
Largest # so far: 100
Enter a number (-1 to quit):
200
Smallest # so far: 1
Largest # so far: 200
Enter a number (-1 to quit):
-1

Answers

import java.util.Scanner;

public class JavaApplication75 {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       int num = -2, largest = -1, smallest = -1;

       while (true){

           System.out.println("Enter a number (-1 to quit):");

           num = scan.nextInt();

           while (num < 0){

               if (num == -1){

                   System.exit(0);

               }

               num = scan.nextInt();

           }

           if (num > largest){

               largest = num;

           }

           if (num < smallest || smallest == -1){

               smallest = num;

           }

           System.out.println("Smallest # so far: "+smallest);

           System.out.println("Largest # so far: "+largest);

           

       }

   }

   

}

I hope this helps!

Hackers crack hash functions by finding collisions or pre-generating millions of hashes and comparing them until find the one generated it.

A. True
B. False

Answers

Answer:

A. True

Explanation:

Most of the attacks on hash functions are based on finding collisions (so 2 different plain texts will match the same hash) or pre-generating millions of hashes and comparing them until you find the plain that generated it.

If a hash algorithm is reverse-engineerable or can be attacked that way, it's not a good hash algorithm.

Lighting matters less in landscapes than in other types of photographs.
A.
True
B.
False

Answers

Answer:

A

Explanation:

that is the correct ans

Which option is the correct format of placing HTML tags while coding in HTML?
A.

B.

C.

D.

Answers

Answer:

Where are the format to select please? It shows just empty A,B,C,D

Answer:

<ul><li><li><ul>

Explanation:

trust me

RTOS stands for ______ Time Operating System.

Answers

Answer:

Real Time Operation System

Explanation:

What is the output of the following program?
numA = 2
while numA < 30:
numA = numA * 5
print(numA)

Answers

Answer:

the output of that code would be invalid syntax since the line,

>>> numA = numA * 5

is not indented.

The output of

>>> numA = 2

>>> while numA < 30:

>>> numA = numA * 5

>>> print(numA)

would be 50.

The output of the following program is 10. This is because it is represented in the program that the value of numA would be less than 30.

What is the significance of the output of the program?

The significance of the output of the program is understood by the fact that it delivers some values or concepts to the user with respect to the instruction he/she is given to the computer for processing. The output of the program is very specific in nature.

According to the context of this question,

Input: numA = 2

         while numA < 30:

         numA = numA * 5

         print(numA)

Output: numA = 2 × 5 = 10 which is lesser than 30.

Therefore, the output of the following program is 10. This is because it is represented in the program that the value of numA would be less than 30.

To learn more about Output of a program, refer to the link:

https://brainly.com/question/18079696

#SPJ2

PLS HURRY!!
Look at the image below

Answers

The output will be 10.

The while loop runs until numb is equal to or less than 13.

25 - 5 = 20

20 - 5 = 15

15 - 5 = 10, which is less than 13 so the loop stops and 10 is printed to the screen.  

Other Questions
If 3 boxes weigh 10 pounds, how much do 4 boxes weigh? Part A: Under a dilation of scale factor centered at (3,7), PT becomesRT", Determine the coordinates of R'T" and sketch R'T' on thegraphPart B: Under a dilation of scale factors centered at (-1,9), PT becomesLM. Determine the coordinates of LM and sketch TM on thegraph pls help math problem How does where you can purchase the candy affect the price? How does it affect the availability? Last month the ending balance on Maryannes Mastercard was $1,789, the average daily balance was $755, and the monthly periodic rate is 1.85%. Her finance charge can be calculated by multiplying the ending balance times the monthly periodic rate. So the finance charge is $1,789 0.0185 = $33.10. Please help 5 more minutes left ! Reread this snippet from an article found in this lesson reporting on a protest on climate change.They swarmed into the streets by the thousands, waving their crudely drawn signs. They chanted and shouted. They blocked vital bridges and access to downtown businesses. Like zombies in a horror movie, these mindless, out-of-control mobs took over city streets around the world on Friday.PLS HELPThe worst part? Most of these thugs were children. They should have been in school. Apparently, their parents were missing in actionor worse, they were actively aiding and abetting the students' truancy. Incredibly, so were some schoolteachers!Explain the elements found in this excerpt that help identify it as an example of sensational journalism. 1) What is released during respiration?O EnergyO FoodOAirO Glucose How did geography influence the early economic development of New England? What were some of the challenges in creating Oklahoma find the area and perimeter What do humans and non-human primates use their hands and feet to do? An unknown element is determined to have 22 neutrons and a mass number of 40.What element is this? The ideal gas law takes the form PV=NRT where P represents pressure, V represents volume, N represents number of moles of gas, R represents gas constant, and T represents temperature in kelvins. - How will the magnetic field intensity at thecentre of a circular coil carrying-currentchange, if the current through the coil isdoubled and radius is halved?(HOTS) Help, please40 points I am giving and please give the right answer it is a simple question Which of the following choices includes two structures that are found in plant cells, but not in animal cells?chloroplasts, ribosomesA.lysosomes, mitochondriaB.cell wall, nucleusC. cell wall. large central vacuole help pls 7. What is an antipode? 1. Describe the general characteristics of a program that would exhibit very high amounts of temporal locality but very little spatial locality with regard to data accesses, and give an illustrative example.2. Describe the general characteristics of a program that would exhibit very little temporal and spatial locality with regards to data accesses.3. Describe the general characteristics of a program that would exhibit very little temporal locality but very high amounts of spatial locality with regards to data accesses. Please help!!!!!Richard had a balance of -$322.25 in his account, and Scott had a balance of -$241.75 in his account. Which statement explains why Richard owes the bank more than Scott? A. -322.25 > -241.75B. |-322.25| > |-241.75|C. |-322.25| < |-241.75|D. -322.25 < -241.75