Adam is writing a program that: 1) has the user guess a number, and 2) tells the user how many guesses it took to get the correct answer. But when Adam tests the program, it always outputs that it took the user one guess, even when it takes many guesses. What error did Adam most likely make, and how should it be fixed? The difference between a for loop and a while loop is that a for loop is a loop that happens for a certain number of times. A while loop happens until a certain condition is met. How do you know when to use each one? Give specific examples in your answer. What are some programs that you have used that have condition-controlled loops and count-controlled loops? Why is it important that if, elif, and else statements appear in the proper order? What are some situations where you might find it useful to use the “!” symbol in a program?

Answers

Answer 1

Answer:

There are two ways in which programs ... count-controlled loops; condition-controlled loops ... Sometimes it is necessary for steps to iterate a specific number of times. ... A count-controlled loop is used when the number of iterations to occur is ... the variable 'count' is used to keep track of how many times the algorithm

Explanation:

Answer 2

Answer:

Adam most likely forgot to add a while loop to the guessing code or didn’t add it properly, meaning that instead of letting him guess multiple times it just continues the code, all he needs to do is add a while loop to fix the line of code.  

Explanation:

hope this helps


Related Questions

Problem decomposition means
O Fixing the problem
O Solving the problem
O Breaking down tasks into smaller, manageable parts
0 None of the above
PLEASE HELPPPPPP

Answers

Answer: Breaking down tasks into smaller, manageable parts

Explanation:

The word decomposition means to break down so Problem decomposition means to break down the problem being faces into smaller parts with the reason being to be able to manage it better.

Some problems are simply too large to handle singularly because of the amount of resources that would have to be devoted. It would be better to break them down into smaller tasks that can then be be confronted one at a time with enough resources to solve them each.

A single inheritance model means: * A) A class can only have one parent class (superclass) B) A class can only have one child class (subclass) C) A class cannot have a parent class (superclass) D) A class cannot have a child class (subclass) E) A class can have multiple parent classes (superclasses)

Answers

Answer:

The answer is A)

Explanation:

In programming languages like java you can only use single inhertance meaning a class can only inherit attributes from one class. But in other languanges like C you can have multiple inhertance

You already know about lists. What missing function will return the index of 7 in the list? >>> myList = [12, 5, 7, 3, 25] >>> myList. (7)

Answers

Answer:

The index function

Explanation:

Required

What function is needed to complete the program

To return the index of an item in a list, we make use of the index function.

In this case, the complete program will be:

myList = [12, 5, 7, 3, 25]

print(myList.index(7))

At the end of program compilation and execution, the index of 7 (which is 2) will be returned/printed.

Answer:

index

Explanation:

According to the video, what types of education are useful for Database Administrators? Check all that apply.
high school degrees
college degrees
certification
communication workshops
Done
Intro

Answers

Answer:

b.college degrees

c.certification

Explanation:

The type of education useful for Database Administrators are college degrees and certifications. The correct options are b and c.

What are Database Administrators?

A database management system typically supports the platforms' administration, development, and use. A Relation Database Management System (RDBMS) is a category of Database Management System (DBMS) that includes a structure (row-based table) that connects data pieces as well as operations that are intended to ensure the data's accuracy, security, consistency, and integrity.

They are capable of doing this since they are familiar with database administration tools and technologies. Currently, one of the most sought-after jobs in America is database administration.

Hospitals, banks, and insurance corporations are a few examples. To put it another way, database administrators are in charge of creating, maintaining, and protecting your databases.

Therefore, the correct option is b. college degrees, and c. certification.

To learn more about Database Administrators, refer to the link:

https://brainly.com/question/13261952

#SPJ6

1.in 3 sentences explain briefly what are the examples of the advantage of using multimedia approach in a slide presentation brainly​

Answers

Multimedia Presentations is very essential in making slide presentation because:

it makes the presentation colorfulIt is often purpose driven andIt challenges one and all listeners to think creatively

Some advantages of Multimedia includes

Oresentations made are concise, rich and makes one to develop confidence in language skills.They captivate audience to visualize what is been taught.

Multimedia agent includes video podcasts, audio slideshows etc. The use of the multimedia in presentation is also very good and user-friendly. It doesn't take much energy out of the user, in the sense that you can sit and watch the presentation,

Conclusively, It uses a lot of the presenters senses while making use of multimedia such as hearing, seeing and talking.

Learn more from

https://brainly.com/question/19286999

WHAT TYPES OF ACTIVITIES ARE PERFORMED BY HEALTH CARE SOFTWARES

Answers

Answer:

lectronic Health Record (EHR) Software. ...

Medical database software. ...

Medical research software. ...

Medical diagnosis software. ...

Medical imaging software. ...

E-prescribing software. ...

Telemedicine software. ...

Appointment scheduling (booking) software.

Define a function print_total_inches, with parameters num_feet and num_inches, that prints the total number of inches. Note: There are 12 inches in a

Answers

Answer:

Explanation:

The following code is written in Java. It is a function that takes in the number of feet and the number of inches that the object has. Then it transforms the number of feet into inches and adds the remaining inches to a variable called total_inches. Finally, it prints the total number of inches to the screen.

public static void print_total_inches (int num_feet, int num_inches) {

               int feet_to_inches = num_feet * 12;

               

               int total_inches = feet_to_inches + num_inches;

               

               System.out.println(total_inches);

               }

What does a wireless LAN (WLAN) act as to a wired network?

a. Gateway
b. Bridge
c. Switch
d. Router

Answers

Answer:

The answer is option A "Gateway"

Explanation:

A wireless LAN (WLAN) connects at least two computers or devices using some wireless distribution technique (normally spread-spectrum or OFDM radio), and as a rule gives a connection through a gateway/modem to the more extensive Web. This gives clients the portability to move around through a local coverage and still be connected with the network.

Wireless LANs have gotten famous in the home because of simplicity of establishment, the expanding ubiquity of PC and hand-held PCs, and commonality, due the accessibility of (frequently free) wireless network on schools and in open organizations.

A WLAN, or wireless LAN, is a network that permits gadgets to connect and communicate wirelessly. Dissimilar to a traditional wired LAN, in which gadgets communicate over Ethernet links, devices on a WLAN connects by means of Wi-Fi. They can speak with different gadgets on the network a similar way they would on a wired network.

The essential contrast is the way the information is communicated. In a LAN, information is communicated over actual links or cables in a progression of Ethernet packets. In a WLAN, bundles are communicated over the air.

Using the Internet, search and discuss why naming conventions are important and why programmers should consistently follow them. What problems can arise in naming variables if one convention is not followed.

Answers

Answer:

Answered below

Explanation:

Some variable naming conventions include;

1) Variable should begin with either a letter or an underscore.

2) Variables having multiple words should have the first letter of every word after the first word, capitalized. This is the camelCase style.

3) variables should not be named after any of the inbuilt keywords except on special operations to override the original function of such keyword.

4) variable names are case-sensitive.

The importance of following these conventions is to maintain readability and consistency of code. Failure to follow these conventions may lead to chaotic codes, bugs and inefficient performance.

how do is excel interpret data?

Answers

Explanation:

Once a spreadsheet has a data set stored within its cells, you can process the data. Excel cells can contain functions, formulas and references to other cells that allow you to glean insights in existing data sets, for example by performing calculations on them.

NEED HELP WILL MARK BRAINLIEST AND 25 POINTS FOR ANSWER Xavier is using a query that includes a LIKE comparison operator with the value of A[a-n)" Which option would
match this operator?

Apple

Aaron

Assist

Azure

Answers

Answer:

This will match the name Aaron

Explanation:

Using square brackets around a range indicates that a single character within the range of the brackets can be match.

In something like the given example

WHERE name LIKE "A[a-n]"

It will match all names that start with a capital A, which is immediately followed by a lowercase a through n.

Using social media, such as text messages and status updates, has helped

users become more

o

A. wordy

O B. succinct

O C. formal

O D. slow

Answers

Answer:

succinct

Explanation:

it means to be brief or short, as most people who text or use social media like twitter have a limited character limit and want to make the most of it.

Describe the major issues surrounding the decisions to build and/or host your own e-commerce Web site or to outsource some aspects of site development. Include the advantages and disadvantages of each decision.

Answers

Answer:

Explanation:

The main issue with this is the time and cost of buildling and maintaining your server. You will need to know how to build a server to host your own e-commerce site but will also need to learn how to manipulate data. This includes being able to save and pull data from the server. Once you have this done then the rest is easy since that is the biggest disadvantage of hosting your own site. The biggest advantage is that you have full control over your data and do not have to pay monthly fees and hidden fees to any hosting site.

The major issue surrounding the decisions to build or hosting of your own e-commerce is that one will need a multiskilled staff.

It should be noted that when an individual wants to build an e-commerce site, they'll need a multiskilled staff like graphic artists, programmers, project managers, and web designers.

The person will also purchase the appropriate hardware and software. There are also several risks that come with building a site from scratch. The cost involved is also high as the requirements to build the site are complex.

Read related link on:

https://brainly.com/question/17429269

Type the correct answer in the box. Spell all words correctly.

Bill uses a software application that helps him make digital representations of buildings from design and construction through operation and

even demolition. Which software application does Bill use?

Bill is working on an architectural project and he uses_______

applications, such as ArchiCAD, to create digital replicas of buildings.

Answers

Answer:

ArchiCAD or AutoCAD

Explanation:

Bill is working on an architectural project and he uses a program such as ArchiCAD or AutoCAD. Each of these software applications are built from the ground up specifically for architects. It allows experienced Architects to design and create digital representations of different buildings, houses, apartments, or any other design that they may have in mind. This includes specific details, materials, specifications, demolition representations, etc.

rheumatoid arthritis is caused when​

Answers

Answer:

caused by the immune system attacking healthy body tissue.

Explanation:

all though they are not sure what triggers it

What needs to be defined throughout an animation sequence to define the start and end points of motion? A. frames B. characters C. key frames D movement ​

Answers

Answer:

c;= , the answer is C key frames

Explanation:

the explanation is because a single still image is an animated sequence that occurs at an important point in that sequence. In order to Define pivotal points of motion before the key frames , in between are drawn or otherwise created to tween the motion between the two key frames. Look it up on the internet ask the exact same question you have wrote down and it will give you this this exact answer your answer is key frames

The programming interface for a legacy motor controller accepts commands as binary strings of variable lengths.

a. True
b. False

Answers

Answer:

The answer is "Option a"

Explanation:

The given question is incomplete, that's why its correct solution can be defined as follows:

The above-given question is the part of the Binary Autocomplete, in which this Autocomplete function would be a full word or sentence after just a few other letters were entered into the system. It approach improves text taking appropriate on smartphone devices of particular because every letter should not be written in such a single phrase.  

discuss how sentiment analysis works using big data?

Answers

Answer:

sentiment analysis is the process of using text analytics to mine various of data for opinions. often sentiment analysis is done on the data that is collected from the internet & from various social media platforms.

Rita tried unsuccessfully to open a PDF file attachment in her Inbox by double-clicking the attachment in the Reading Pane. What is the most likely reason that the file would not open properly? The PDF attachment should have been right-clicked. PDFs are too large to be sent through most e-mail systems. An add-in for PDFs was not set up in the system. Outlook never accepts PDF files as attachments.

Answers

Answer:

3rd option

Explanation:

I WILL MARK YOU BRAINLIEST NEED HELP ASAP....Name at least three actions you can perform on a inserted image

Answers

Answer:

you can move it you can shrink it and you can put a text box on it

What is the output of the following program

#include

int toronto (int x)

{

int w;
if (x == 0) w = 1; else w = toronto (x-1);
return (w);
}
int main (void)
{
int a = 2;
printf ("%d", toronto (a));
return (0); }

a. 0
b. 1
c. 2
d. -1
e. none of these

Answers

Answer:

The output is 1

Explanation:

Analysing the flow of program (We start from the main method)

The main begins here

int main (void) {

This line declares a as integer and also initializes it to 2

int a = 2;

This line passes 2 to the function names toronto and also prints the result of the function

printf ("%d", toronto (a));

return (0); }

The toronto function begins here.

Note that the function receives 2 as its argument and this is saved in variable x

int toronto (int x) {

This declares w as integer

int w;

If x is 0, w equals 1

if (x == 0) w = 1;

If otherwise

else

This reduces x by 1 and performs a recursion

w = toronto (x-1);

return (w);

}

Because of the structure of the if condition in the toronto function, the function will be repeated until x is 0.

And when x = 0; w = 1

This returns w (i.e. 1) back to the main function where 1 is printed as the output

return (w);

draw internal architecture of computer​

Answers

Answer:

If this is good, let me know in the comments and I'll draw it

Explanation:

Which conditions make using an array a better choice than a list? Select 3 options.

1. when you will do a great deal of arithmetic calculations

2. when you have a very large quantities of numeric data values

3. when all your data are string

4. when your list would contain a mixture of numbers and string values

5. when efficiency is of great importance

Answers

Answer:

When efficiency is of great importance

When you will do a great deal of arithmetic calculations

When you have a very large quantities of numeric data values

Explanation:

Did it one edge

1. when you will do a lot of arithmetic calculations

2. when you have very large quantities of numeric data values

5. when efficiency is of great importance

Thus, options A, B, and E are correct.

What is an array?

A data structure called an array consists of a compendium of values, each of which is identifiable by a memory location or key. In different languages, additional data structures that capture an aggregate of things, like lists as well as strings, may overlay array types.

Just using an array is a preferable option when you'll be performing a lot of math operations, when you're dealing with a lot of numerical data values, and when performance is crucial. A grouping of comparable types of data is called an array.

Therefore, option A, D, and E is the correct option.

Learn more about array, here:

https://brainly.com/question/13107940

#SPJ2

when you tried to login to server your trail may faild this failure event is recorded in

Answers

Real time not online time...

An array similar to a phone book has 1000 names arranged as names [0], names[1]....names[999]. Nancy wants to search a name X in this array. Which of the following preconditions must she ensure to perform a binary search?

The list has a large number of names.
The name X is present in the list.

In addition to the two statements above, which of the following is correct?

a. There should be no duplicates in the list.
b. The names in the list should be alphabetical order.
c. The name X should occur near the middle of the list.

Answers

Answer:

Preconditions that she must ensure to perform a binary search are:

The list has a large number of names.

The name X is present in the list.

c. The name X should occur near the middle of the list.

Explanation:

Nancy's binary search for a name X should begin by comparing an element in the middle of the array or list with the name X (target value). If this name X's value matches the value of an element in the list, Nancy must return its position in the array.  If the name X's value is less than the element's value, Nancy will continue the search in the lower half of the array.  Usually, the name X should occur near the middle of the list or array.

Which of the following variable names follows the rules for naming variables?
A. snack $
B. favorite_snack
C. lunch time
D. 15 minute snack

Answers

D. 15 minute snack
Sorry if wrong

Review the advantages of database management systems in the Connolly textbook. Which two advantages do you think are the most important

Answers

Answer:

The two advantages of database management systems that are the most important are:

1. Data sharing: Database management systems enable data to be shared among users from different locations.  It provides access to many users of the data, who can make specific data requests to meet their information needs.

2. Data consistency: Database management systems make it possible for all users to have the same data.  It eliminates the problem of inconsistent data for decision making.

Explanation:

Basically, a Database Management System (DBMS) is defined as the software that enables end-users to create, read, update, delete, and access data in each database.  Among the most notable advantages of Database Management System (DBMS) are improved data sharing and security, minimized data inconsistency, better data integration, improved data access, improved decision making, and increased end-user productivity.

Which of these are true? Check all that apply.

a. You can have many processes running for one program.
b. A program is a process that is executed. A process is a program that we can run.
c. A program is initially stored in RAM. A process is initially stored in the hard drive.
d. A program is an application that we can run. A process is a program that is executed.

Answers

Answer:

The following are true according to the process and the information which is  being implemented.

b. A program is a process that is executed. A process is a program that we can run.

c. A program is initially stored in RAM. A process is initially stored in the hard drive.

d. A program is an application that we can run. A process is a program that is executed.

Explanation:

Statements that are true as regards how programs and the information is  being implemented are;

A program is a process that is executed. A process is a program that we can run.A program is initially stored in RAM. A process is initially stored in the hard drive.A program is an application that we can run. A process is a program that is executed.

According to the question we are to discuss program and its implementation and how it is been run.

As a result of this we can see that program is an application that we can run. A process is a program that is executed.

Therefore, program is a process that is executed. A process is a program that we can run..

Learn more about program at;

https://brainly.com/question/16397886

Which statement is true for rapid prototyping? (A. It creates a two-dimensional model of a part or a product, from the original model of the product.) (B. It is also known as 2D printing.) (C. It helps to avoid costly mistakes by allowing corrections early in the production process.) (D. It is also referred to as layered modeling.) ​

Answers

Answer:

C: It helps to avoid costly mistakes by allowing corrections early in the production process.

Explanation:

Remember, a prototype refers to an early sample or model of a product that is designed to test and figure out a concept or process.

The Rapid prototyping process has many advantages, besides being faster with the use of 3D dimensional technology, it allows for easy corrections of design/modeling errors early in the production process.

Answer:

C.

Explanation:

Plato

Describe the action of the indexOf and substring methods. Explain how these methods can be used to divide an existing string into two parts. Why is it necessary to add 1 to the position of the space when copying the remainder of the string

Answers

Answer:

The indexOf is a string method used to get the index of a character in a string. It can be used with the slice, substr, or subString methods to divide a string into two or more parts.

var words = "hello John Snow";

var A = words.slice(0, words.indexOf("John"));

var B = words.slice(words.indexOf("John") + 1, words.length());

One (1) is added to the space of avoid repeating a character in both new strings.

Explanation:

The indexOf method is a built-in method in Javascript used to get the index of a character or word in a string variable. The return integer number can be used in a method like a slice() to divide the string and them to other string variables.

Other Questions
What is the common ratio of the sequence?-2, 6, -18, 54....-3-238 Earth makes one full rotation on its axis approximately every 24 hours. If Earth's period of rotation decreased to 20 hours, which of the following changes would occur?There would be fewer days in a week.The length of nighttime would increase.It would take Earth longer to revolve around the Sun.The length of daylight and nighttime would decrease. HELP PLEASE!1. Alex loves to build things and wants to study robotics. He needs to get a job overthe summer but the only one he can find is at a fast food restaurant Does takingthe job mean that Alex cannot pursue a career in robotics? Explain your answer PLEASE CAN SOMEONE HELP ME!! PLEASE HELP WILL GIVE BRAINLIEST AND 15+ PONINTS AND PLEASE DONT PUT A RANDOM ANSWER OR TRY TO STEAL MY POINTS PLEASE AND THANKS U Who of the following was Abraham's heir prior to the Abrahamic covenant?EliezerLotIshmaelIsaac Solve each equation for x. Provide the Justifications for each step. 6-2x=10 In the diagram, BCDE.What is CE?Enter your answer in the box. mA triangle with vertices labeled as A, B, and C. Side B C is base. Sides A B and A C contain points D and E, respectively. A line segment is drawn from D to E. Side A D is labeled 2 meters. Side D B is labeled 10 meters. Side A E is labeled 3 meters. Base B C and line segment D E are marked with arrows pointing the same direction. 1 of 3Which equation matches this graph?123-5-2-4S-2Q ZoomBy = -3/2x + 3Ay = 2x + 3Dy = -3x + 3y = -2x + 3SUBMIT ANSWER Can you guys answer it in number order for 4 its same as previous numbers HELPPPPPPP! PLEASE HELLPPP How can the law of conservation ofmass for a chemical reaction be expressed? who ever gets this right first,gets brainliest ! Can someone please help me with this please what is the distance, in units, between the y-intercept of f(x) = x^2 +7x - 18 and the y-intercept of the linear function that passes through the points shown on the table belowx g(x)-5 210 1125 2060 41 15 divided by 1/9 please i just need 15 divided by 1/9 Which of these best describes the purpose of a heading?allows reader to quickly scan an articleis used purely to summarizecontains information not described in detail within the text itselfall of these what is the answer to2x-3=9-4x Why is weather different from place to place? Question- what was their main economic activity.I need help read and answer the question plz