The following pseudocode works, but it performs a case-sensitive validation of the users input. How could the
Question:
The following pseudocode works, but it performs a case-sensitive validation of the user’s input. How could the algorithm be improved so the user does not have to pay attention to capitalization when entering a name?
Transcribed Image Text:
// This program asks the user to enter a string // and validates the input. Declare String choice // Get the user's response. Display "Cast your vote for Chess Team Captain." Display "Would you like to nominate Lisa or Tim?" Input choice // Validate the input.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 85% (7 reviews)
The following pseudocode could be improved to perform caseinsensitive validation of the users input ...View the full answer
Answered By
Isaiah Mutinda
As a graduate with Bs in Maths and Computer Science and having worked as a freelance full stack software developer for 3 years running I believe I have what it takes to conformable tutor and mentor a student to a professional developer also.
5.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Hi there , I need help. for my work i need a relevant and well written introduction as well as conclusion to the following below. My work is complete i just need a introduction and conclusion please...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
Let y be a variable that takes 0 or 1 value. Write an inequality to describe if y = 0, then x can take value from 0 to 5 and if y = 1, then x can take value 0. We are given 3 options. We are allowed...
-
On January 1, the company had 100,000 common shares outstanding. During the year, the following events occurred: March 1: 2-for-1 stock split June 1: Issued 30,000 additional shares September 1: 20%...
-
Suppose that a[] and b[] are both integer arrays consisting of millions of integers. What does the following code do, and how long does it take? int[] temp = a; a = b; b = temp;
-
What is the future for teleworking?
-
An orange grower in Florida faces a dilemma. The weather forecast is for cold weather, and there is a 50% chance that the temperature tonight will be cold enough to freeze and destroy his entire...
-
Define breakeven. Your response will be reviewed by Unicheck, the plagiarism tool synced to Canvas. If the similarity index is above 30%, please redo and resubmit your assignment after you cite the...
-
The complexity and uniqueness of the federal government makes it difficult to conduct a meaningful analysis of its financial condition. However, conducting a financial statement analysis does provide...
-
What is the purpose of the priming read?
-
True or False The approach of using a posttest validation loop shown in this chapter requires a priming read.
-
Managerial accounting techniques can be used in a wide variety of settings. As we have frequently pointed out, you can use them in many personal situations. They also can be useful in trying to find...
-
A refrigerant at -20C is flowing through a 4" schedule 40 carbon steel pipe (inner diameter 102 mm, outer diameter 114 mm); the heat transfer coefficient for the refrigerant is 2500 W/m/K. It is...
-
Link two articles from a trade journal in your field and discuss them in a short paper...
-
Evaluate vendors for supplying differentiated or specialized widgets. Review the "Supplier Scorecard Data" document and answer the questions below. 1. Discuss which supplier you will select,...
-
3. By keeping the leading term in the relativistic correction, the kinetic energy operator T of a relativistic electron in one dimension can be written as p 3p4 + 2m 8m3c2 where c is the speed of...
-
CHOOSE CORRECT OPTION How might inadequate training impact Thandiwe's ability to address classroom challenges? a. Develops effective teaching strategies b. Enhances problem solving skills and creates...
-
The Poonamalie Company paid $4,000,000 in cash to the shareholders of the Slys Company for all of Slys' outstanding shares. Attorneys' fees related to the combination were $175,000, paid in cash. A...
-
Digital Fruit is financed solely by common stock and has outstanding 25 million shares with a market price of $10 a share. It now announces that it intends to issue $160 million of debt and to use...
-
How do you retrieve the text that is stored in a JTextArea component?
-
True or False: In single interval selection mode, the user may select multiple items from a JList component.
-
What arguments do you pass to the JTextArea constructor?
-
Penske Ltd has a standard deviation of returns of 18% and a correlation with the market portfolio of 0.8. The market portfolios expected return is 14%, its standard deviation of returns is 12%, and...
-
In an insurance policy identification of the named insured is important in terms of determining who is the insured. In the body of the policy the names insured oftentimes is referred to as "you"....
-
During the year Salaries payable decreased by $6,000. If Salary expense amounted to $160,000 for the year, the cash paid to employees is: Select one: a. $160,000. b. $172,000. c. $166,000. d....
Study smarter with the SolutionInn App