Write a loop that reads strings from standard input where the string is either "land", "air", or "water". the loop terminates when "xxxxx" (five x characters) is read in. other strings are ignored. after the loop, your code should print out 3 lines: the first consisting of the string "land:" followed by the number of "land" strings read in, the second consisting of the string "air:" followed by the number of "air" strings read in, and the third consisting of the string "water:" followed by the number of "water" strings read in. each of these should be printed on a separate line. assume the availability of a variable, stdin, that references a scanner object associated with standard input.

Answers

Answer 1
var
    land, air, water, x: integer;
    temp: string;
begin
   land := 0;
   air := 0
   water := 0;
   x := 0;

   //an infinite loop broken by 'xxxxx'
   while (true) do 
   begin
      temp = copy(stdin, x, 5); 
      if temp = ''xxxxx' then
          break;
      if copy(temp, 1, 3) = 'air' then
      begin
          air := air + 1;
          continue;
      end;
      if copy(temp, 1, 4) = 'land' then
      begin
          land := land + 1;
          continue;
      end;
      temp = 'water' then
      begin
          water := water + 1;
          continue;
      end;
      x := x + 1; 
   end;
   printline('air ' + IntToStr(air));

   printline('water ' + IntToStr(water));

   printline('land ' + IntToStr(land));
   


end;

Related Questions

The Rorschach personality test requires you to look at ten black and white ink blots.


Please select the best answer from the choices provided

T
F

Answers

The answer is false.


Answer:

The answer is false

Explanation:

The collection of programs on a computer is referred to as _______________.​

Answers

It is referred to as software

Software consists of an entire set of programs and routines linked with the operation of a computer. In other words, it is a collection of executable instructions that enable you to interact with a computer and its hardware. A computer would be rendered useless without software.

 






Many computer users and some operating systems call subdirectories ____.

Answers

A subfolder or a folder.

A subfolder or a subdirectory is a directory contained within another directory. It is a subfolder of another folder. Thus, a subfolder or subdirectories are two words that have more or less the same meaning. Example, all other folders contained in the root directory of the main directory in a file system is the subdirectory of the root directory.



What is it called when two different files generate the same hashing result?

Answers

A Hash Collision Attack is an attempt to find two input strings of a hash function that produce the same hash result. ... If two separate inputs produce the same hash output, it is called a collision. 

To add and remove chart elements, you can use the add chart element button in the charts layout group on the ____ tab.

Answers

Final answer:

To modify chart elements in spreadsheet software, use the Add Chart Element button in the Chart Tools Layout tab, allowing you to customize titles, labels, legends, etc.

Explanation:

To add and remove chart elements in Microsoft Excel or similar spreadsheet software, you can use the Add Chart Element button, which is typically found in the Chart Tools layout tab on the ribbon. This feature allows you to customize your charts by adding elements such as titles, labels, legends, gridlines, and more. To access these options, you first need to select the chart you wish to modify, which will then display the Chart Tools with the Design, Layout, and Format tabs. By exploring the Layout tab, you can make these adjustments to enhance the presentation of your data visually.

Performance problems in a computer system are usually due to ____ problems.

Answers

Performance problems in a computer system are usually due to hardware & software problems.

Computers and technology
Help 10 Points!!!!

Answers

Hi!

The answers are:
For the bookmark one, it is A. Below address bar
For the edge printing one, it is again A. Options
For the last one, it is C. Internet Explorer

-ASIAX ·Frequent Answerer

Answer:

A, A & C

Explanation:

The address bar, in all windows devices, have the bookmarks bar below the address bar, so the answer would be A.

You have to press options in order to print the specific webpage that you want to print, which means the answer is A.

Internet explorer was the first name for windows until they changed the name to Microsoft edge, so more or likely, the answer is C.

You should replace your __________ every 15,000 miles.

Answers

If you are talking about cars I think you replace to oil every 15,000 mi

Which property do you use to change the size of the text on a button object?

Answers

depends on what sort of markup language your using, if your using HTML and CSS then it would be...

font-size: (whatevernumberyouwant)px; this is for css
but if your doing it in the tags then this should work
style="font-size:(Yournumber)px;"

you dont need the parentheses I just added them so you dont get confused. 

Final answer:

To change the text size on a button object, you adjust the font size property. This property is measured in points and can be modified using user interface design software or code, ensuring that changes do not disrupt the layout or user experience.

Explanation:

To change the size of the text on a button object in a user interface, one would typically adjust the font size property of the button's style. This can often be done by selecting the button in the user interface design software or the code, and then modifying the font size attribute. Size is commonly measured in points (pt), but can also be specified in pixels (px), ems, percentages, or other units available in CSS if you're working in a web environment.

To increase the size of selected text, you would select a larger value for the font size, while to decrease the size, you would select a smaller value. It's key to ensure that the increased or decreased font size does not interfere with the user experience or the layout of the interface.

You are the project manager tasked to implement a critical application in a reputed bank. A client review indicates that you could not adhere to the quality standards of the overall project. Which code of conduct have you violated?

Answers

Not adhering to the quality standards in project management indicates a violation of the professional code of conduct, which is taken seriously in corporate and professional association guidelines. Ethical integrity and quality adherence are paramount in maintaining the credibility of both individuals and organizations.

As a project manager, not adhering to the quality standards of a critical banking application project could signify a violation of the professional code of conduct. Professional and company codes of conduct usually include clauses that enforce adherence to quality standards and ethical guidelines in carrying out project responsibilities. The scenario described implies that the professional association's code of conduct, which often emphasizes integrity, quality, and ethical responsibility in project delivery, has been compromised.

In justifying your decision, it is important to assess what you are unwilling to do, such as compromising on quality standards for immediate gains, and what you are willing to do, such as taking corrective actions to improve quality adherence and communicating transparently with stakeholders regarding the shortcomings. This discussion should align with the core values of company and the professional association, focusing on rectifying the situation and upholding the integrity of the project.

Ethical integrity in the workplace is fundamental and disregarding it can lead to severe implications. It's crucial to understand that adherence to such standards is not just a personal matter but also reflects on the organization and the wider profession. An employee should be prepared to face the consequences of any ethical missteps, including job termination, and in extreme cases, legal ramifications for the organization.

How can you add and remove categories from a previously created chart? A. Click the Chart Elements button. B. Click the Chart Styles button. C. Click the Chart Filters button. D. Click the Format tab.

Answers

D click the format tab

List 5 kinds of acquaintances who told Debbie Fields would fail?

right answer only

Answers

1.her husband’s business acquaintances2.Debbi’s mother3.her in-laws4.her friends 5.fellow students at Los Altos Junior College At age 20, Debbi Fields always loved baking cookies and decided that she thought about starting a business. Her family and friends argued that the business would fail but Debbi managed to get a loan.

Mrs. Fields' Original Cookies, Inc. has expanded from one store which was started in 1977, to over 1,500 stores. This is a true story of an American homemaker who overcame major hurdles to create an international business. Having acquired a skill when she was a little girl, Debbi Fields decided to start a business. However, everybody said she would fail.

Her husband’s business acquaintances enjoyed her cookies but were the first ones to advise her that it would be a “bad idea” and that it would never work. Her husband went along with Debbi’s idea, but deep down, he did not believe in her dreams. Debbi pressed on and went ahead to borrow a bank loan. Their banker trusted the young couple to pay back their borrowed loan, even though he expected the business to fail as well. Debbi’s friends and her fellow college students , her own mother, and her in-laws said she would fail.

What is the function of the Status bar in Outlook 2010?

shows the titles of the most recent e-mails received
gives information about what the program is currently doing
indicates which Internet provider is being used
displays a list of active to-do items

Answers

The answer is (B) Gives information about what the program is currently doing.

The status pane tells you everything you need to know about how outlook is doing. For instance; If you select an unread message then go to the extreme bottom left of your outlook window, you will be able to see an items option. This indicates the number of things in that message folder. It can also tell you whether outlook is syncing with the server and many other things.




Answer:

B

Explanation:

Just took the test

What is the key function of a product owner???
A. Accomplishing the work in sprints
B removing impediment in the scrum process
C satisfying the stakeholders
D conducting team meetings

Answers

C. Satisfying the stakeholders

Answer:

Satisfying the stakeholders

Explanation:

The Product Owner (PO) is a member of the Agile Team responsible for defining Stories and prioritizing the Team Backlog to streamline the execution of program priorities while maintaining the conceptual and technical integrity of the Features or components for the team.

Explain why a CPU’s speed is affected by the number of buses.

Answers

Answer:

Because the more there is of something the more work it's going to have to do slowing it down

Explanation:

You can use the ____ command to create empty files.

Answers

You use the touch command to create empty files.

The storage locations within the cpu used for a particular defined purpose are called

Answers

Answer:

Registers


Section: 7. 2 The Concept of Registers.

Leo lives in a two-story home in an upscale neighborhood, drives a brand-new sports car, and makes more than $250,000 per year. It can be said that Leo has a high _________. A. budget B. cost of living C. stage of life D. standard of living

Answers

(D) Standard of living. Because, from this text you can tell that Leo is a wealthy person, and welthy people tend to get the best things, including fancy neighborhoods and Cars. So its most likely (D)

Answer:

standard of living

Explanation:

Which early browser was the first to run on multiple computer platforms including windows?â?

Answers

The answer is Mosaic

Also known as the NCSA Mosaic, the Mosaic was popularized as the WWW and the internet. It was a client for protocols like FTP, Gopher, and Network News Transfer Protocol. 

Its reliability and simple installation all contributed to its popularity on the web and Microsoft operating Systems as well. At the time of its release in 1993, the Mosaic was free software available only on Unix. The NCSA, however, put Mosaic on both Mac and windows in the late 1993.






If you save a Word file as a Web page, what type of file will it be?

A. .dot file
B. rich text file
C. 97-2003 file
D. .html file

Answers

Hey there!

I think it's either A or D

Hope this helps you a little!

Always remember, you are A Work Of Art!
- Nicole
D is the answer I believe

Air is not matter because you cannot see it. true or false

Answers

FALSE!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
False air is a matter because you breathe air.


1. The title of a Web page is the text that appears on the title bar and taskbar of the browser window. *
True or False

2. Headings are a smaller font size than normal text and are often bold or italic. *
True or False

3. The and tags indicate the start and end of an HTML document. *
True or False

4. HTML files must end with an extension of .html or .htm. *
True or False

5. CSS supports three types of style sheets: inline, embedded, and external. *
True or False

6. You would use an outline style sheet to change the style of multiple pages in a Web site. *
True or False

7. GIF stands for Graphics Image Format. *
True or False

8. Attributes define additional characteristics for an HTML tag. *
True or False

9. The Markup Validation Service report lists what is wrong with your code. *
True or False

10. A soft copy of a document is the same as a printout. *
True or False

Answers

1.       TRUE

Basically, title is the main text that describes a web page. The title element defines a title in the browser toolbar and displays a title for the webpage in search engine results. The tag is the one that defines the tittle of the document.


2.       False

Headings are used to set off different sections of a page or paragraphs of text. They are a larger font size than normal text. In most cases, they are bold or Italic or a different color compared to normal text. Heading sizes usually run from one which is the largest to six which is the smallest.


3.       False

<html> and </html> tags indicate the start and end of an HTML document with the content placed in between. The HTML element contains everything from the start to the end tag. Example is; <tagname>Hi there…....</tagname> Empty elements are those elements that do not contain content in them.


4.       TRUE

It is so true HTML files must end with .html or .htm. You can view .html extension on web servers that run an OS that allows long file names like Windows NT, Windows XP, Windows Server 2003, and Windows 2000. For those that do not accept long file names, you can use .htm.


5.       TRUE

Inline Styles: Styles written directly in the tag in the HTML document such as a heading or a paragraph

Embedded Styles: Styles embedded in the head of the document. They are also known as internal style sheet.

External Style: Written in different document and then attached to several other web documents.


6.       TRUE

The External Style sheet is written in different document and then attached to several other web documents. Whatever you change in the .css sheet will be effected in multiple pages in your website. It prevents the developer from having to make changes in code in each page.


7.       FALSE.

GIF stands for Graphics Interchange Format. It is a bitmap image format with a widespread usage on the web due to its wide portability and support. They are usually seen online as a way to share video clips and most web pages use GIF to display animated objects like header images or buttons.

8.       FALSE

Attributes define characteristics of an HTML element and not a HTML tag. They have additional information about an element. They are made up of two parts, a name and a value. Attributes name and value are case sensitive. By default, attributes are specified in the start tag.


9.       TRUE

Markup Validator is an open-source by W3C that is used to check the validity of web documents. Validating web documents improve and ensure web quality and saves time. Validation makes sure web pages are legal and can be used as a debugging tool and a future proof quality check.


10.       FALSE

A soft copy is an electronic copy of data like a file viewed on computer display. When printed, it becomes a hard copy. Hard copy is that printed copy of info from a computer and is often sometimes referred to as printout.










Final answer:

HTML tags and CSS styles are essential for web development, with the  tag denoting the beginning and end of an HTML document. GIF stands for Graphics Interchange Format, and the Markup Validation Service helps identify errors in your code.

Explanation:

To answer the student's schoolwork questions regarding web development and digital concepts:

The title of a Web page appears on the title bar and taskbar of the browser window. This statement is True.Headings are usually a larger font size than normal text and are often bold or italic, not smaller. This statement is False.The  and  tags indicate the start and end of an HTML document. This statement is True.HTML files must end with an extension of .html or .htm. This statement is True.CSS supports three types of style sheets: inline, embedded, and external. This statement is True.You would use an external style sheet to change the style of multiple pages in a Web site. The term 'outline style sheet' is not commonly used in this context, so assuming it is a typo for 'external', this statement is True.GIF stands for Graphics Interchange Format, not Graphics Image Format. This statement is False.Attributes define additional characteristics for an HTML tag. This statement is True.The Markup Validation Service report lists what is wrong with your code. This statement is True.A soft copy of a document is a digital version of a document viewable on a computer or digital device, unlike a printout which is a physical copy. This statement is False.

HELP ASAP!!!
Color theory is a philosophy regarding the mixing of colors and specific combinations of colors.

True
False

Answers

It's both about mixing colors and the effect those colors can have, so I'd go with true.
Hello,

The answer is option A "true".

Reason:

The color theory is the philosophy mixing colors to get a combination of colors. The color theory is mainly used by artist and also to get different (brighter or darker) colors.

If you need anymore help feel free to ask me!

Hope this helps!

~Nonportrit

Why might you complete a 1040 instead of a
1040ez

Answers

because compared to 1040EZ, 1040 way more more complex.


This type of software can be described as end user software and is used to accomplish a variety of tasks. communications system utility application

Answers

provide additional information and request user input

____________________ can be used to identify the authors of the program, give the date when the program is written or modified, give a brief explanation of the program, and explain the meaning of key statements in a program.

Answers

Answer:

Header Comments

Explanation:

Comments are the small descriptions of the code which make the logic or functions easier to understand for the programmer or user.They are optional but can help in a variety of ways.They are written in simple easy language by using forward slashes (//) in front of the code.Comments can be single-lined as well as multi-lined.Header comments are given on the top of the program to identify what is actually in the program.A good header comment should illustrate the program purpose and should also have following points in it:Author name.Date of the programDescription of accomplishment of code,List of modifications (if any)

Final answer:

"Comments" in program source code are essential for documentation, offering an overview, clarifying complex logic, and ensuring replicability of successful programs. They can include authorship details, copyright information, a brief summary, explanations of statistical methods, and pseudocode. These comments enhance the readability, understandability, and maintainability of the code.

Explanation:

Comments within the source code of a program can serve multiple essential roles, including identifying the authors, noting the date of the last update or modification, offering a brief explanation of the program, and clarifying the meaning of key statements. The inclusion of comments at the beginning of a program is highly advisable as it allows for a comprehensive overview, aiding both the original developers and others who may work on or evaluate the program in the future. These comments often include authoring details such as the date of the last update and contact information, alongside copyright and licensing information. Moreover, comments can be used to provide a brief summary of the program, elucidate complex logic through pseudocode, and detail the analytical methods and statistical tools deployed within the program, ensuring that the program's functions and data processes are comprehensible and replicable.

In addition to making the code more accessible and understandable, comments can enable effective program evaluations by documenting the implementation processes. This documentation facilitates the replication of successful programs by providing future developers with a clear roadmap of the original program's logic and data analysis techniques. Furthermore, the use of comments for cross-referencing and summarizing can enhance readability and maintainability, making it easier for developers to navigate and make sense of the code.

To make a complicated task easier, use a _____.

A. query
B. spreadsheet
C. filter
D. wizard

Answers

I believe the answer is B spread sheet because i use spread sheets to make my life easier. I organize info in a spread sheet then it is really easy to find.

hope this helps

Jason had clicked an image of his favorite band at a concert. He wanted to create a washed out look of this image to turn into a poster. Which technique can Jason use to create this washed out look?

Answers

Answer:the actual answer is desaturate

Explanation:

A device that knows how to forward traffic between independent networks is known as a

Answers

I Would say a Router

A router forwards data packets between independent networks. They perform traffic directing functions. A router is commonly known to contain a routing table that lists the preferred routes between any two or more systems in an interconnected network. Technically, when a packet arrives, the router thinks through the next best route to send the packet.




Answer:

The router is a device that knows how to forward traffic between independent networks.

Explanation:

Routing is a process of selecting a direction for traffic in a network or selecting a direction for traffic in multiple networks.

Generally, routing is implemented in many types of networks like circuit-switched networks and public switched telephone networks and computer networks like the Internet.

The routing process commonly keeps forwarding based on routing tables, which maintain a record of the routes to various network targets.  

The four main structural elements of a computer system are:

Answers

Processor, Main Memory, I/O Modules, System Bus

The four main structural elements of a computer system are Processor, Main Memory, I/O Modules, and System Bus.

What is a Computer?

A computer is an electronic device used mainly to perform arithmetic and logical operations quickly and efficiently with accuracy and without causing any error and makes the life of an individual simpler.

A computer consists of various elements in a Central Processing Unit or CPU is considered the brain of the computer through which all the functioning took place.

A program, often known as software, is a collection of instructions, data, or applications that manages the operating system and different functions of a computer.

It consists of memory such as RAM and ROM which helps in the storage of data, and INPUT and OUTPUT devices which help in calculation or entering and gaining any information.

Learn more about Computer, here:

https://brainly.com/question/15707178

#SPJ6

Other Questions
Which monarch's (member of royalty) break with the Catholic church enabled Shakespeare's career? Due to the formation of hydrogen bonds, _____ is highly soluble in water. What paradox does the writer point out about teaching Property rights are _____.a)agreements enforceable by lawb)privileges to decide how resources are usedc)legal obligations to repay a debt Explain how the organ systems work together to warm up the body on a cold day. if you can't take your heart rate a good way to recognize that you're exercising effectively is whether or not If 16-7w=w+14-6w167w=w+146w16, minus, 7, w, equals, w, plus, 14, minus, 6, w, what is the value of w-1w1w, minus, 1? Suppose that you have 4 shirts (red, green, blue, yellow) and 3 pairs of shoes (black, brown, red). If you choose your shirt and shoes randomly, what is the probability that your shirt and shoes will NOT be the same color? If a train is moving 72 km/h on a road of 360 km, how much time will it take to arrive? How do u find the mean? I've never done this before the subject is try check and revise ^ please help me____________ A small company has 20,000 shares. Anastasia owns 400 of these shares. The company decides to split its shares. What is Anastasia's ownership percentage after the split? John bought 15 cookies and ate 3 of them. He ate ____% of the cookies. In this fulcrum, the weights are perfectly balanced. How far must the fulcrum be located from the 60 pound weight if the bar is 24 feet long?A) 9B) 15C) 12 what does a^2+b^2=C^2 mean what are the symbols used in the cartoon "close the gate" by orr in the chicago tribune anti suffragists feared that if women got the right to vote they would?.. Read this sentence.The commuter is the queerest bird of all.How does this metaphor affect the passage?It implies that New York commuters resemble birds flocking to the city for work.It implies that New York commuters are different from commuters in other cities.It implies that New York commuters are uniquely different from New York residents.It implies that New York commuters are strange because they choose to commute. Arrange the steps of energy production in the correct order.1 consumption of food2 cellular respiration in mitochondria3 breakdown of starch into glucose4 absorption of glucose molecules5 creation of ATP What is 5(x+10)+x simplified