2. You are a member of the ICT department at an organization which is developing a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. You are a member of the ICT department at an organization which is developing a new application for use by the Customer Service Representatives. The task of writing code for the program is shared among members of the team. You are NOT required to write an entire program. You must only write the block that you are asked to as follows: You are required to write a segment of code that requires the user to enter a response to the following prompt: Please Enter the brand of watch? T- Timex G - Guess R - Ralph Your code reads input from the user as a character for the variable watch Brand. Your code must be able to accept values in either lower case or upper case. Further, your code must validate the responses, so that only 'T' or 'G' or 'R' is accepted. Any other character will receive an "Invalid Input!" message, and the process is repeated until the user enters an acceptable input. 2. You are a member of the ICT department at an organization which is developing a new application for use by the Customer Service Representatives. The task of writing code for the program is shared among members of the team. You are NOT required to write an entire program. You must only write the block that you are asked to as follows: You are required to write a segment of code that requires the user to enter a response to the following prompt: Please Enter the brand of watch? T- Timex G - Guess R - Ralph Your code reads input from the user as a character for the variable watch Brand. Your code must be able to accept values in either lower case or upper case. Further, your code must validate the responses, so that only 'T' or 'G' or 'R' is accepted. Any other character will receive an "Invalid Input!" message, and the process is repeated until the user enters an acceptable input.
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
Eight job descriptions are provided below. Rank each job description and write a brief explanation on why the ranking is correct. List the rankings in order from "1" (lowest level) to "8" (highest...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Refer to Example 9. After how many seconds will the rocket be (a) 240 ft above the ground? (b) 112 ft above the ground? Data from in Example 9 EXAMPLE 9 Using a Quadratic Function in an Application...
-
What is the present value of a cash flow of $100 per year forever (a perpetuity), assuming: The interest rate is 10 percent. The interest rate is 5 percent. The interest rate is 20 percent. a....
-
Explain how to use NMR spectroscopy to differentiate the isomers within each of the following sets. 1-bromo-4-ethylbenzene (Fig. 16.3) and (2-bromoethyl) benzene (BCH2CH2Ph) Fig. 16.3 benzylic...
-
Explain how window placement in a building could be defined as (a) a passive solar feature, (b) an energy conservation technique, (c) both of these.
-
Sadowski Video Center accumulates the following cost and market data at December 31. Compute the lower-of-cost-or-market valuation for Sadowskiinventory. Inventory Categories Cameras Camcorders DVDs...
-
Prepare the Adjusted trial balance Prepare the Income statement, Statement of owner's equity, and the balance sheet. Prepare the Closing journal entries and Post-closing trial balance
-
Does the FBIs current organization for counterterrorism make the best use of resources? How does the current FBI strategy square with the broken windows theory of law enforcement discussed in the...
-
When an individual accepts employment with an organization, consider whether the individual voluntarily agrees to any restrictions on social media use imposed by the employer such as the ones. Even...
-
The population of a city grows from an initial size of 100,000 to an amount P given by P(t)=100,000+2000t A. Find the growth rate. B. Find the number of people in the city after 10 years (at t = 10)....
-
The data set of 16 values is given below 3.2, 4.0, 2.5, 3.8, 4.5, 3.3, 2.8, 3.9, 3.1, 3.2, 2.7, 2.8, 2.9, 3.5 2.6, 3.7 Construct stem and leaf plot for this data set by using each number in the ones...
-
Evaluate the limits lim 29 x+c+ (x c)5 29 lim x-c (x-c)5 for
-
May you please explain why as simply as possible. Thank you so much Compute the limits lim x-a lim xa+ x-6 x-a lim x-a x-6 x-a x-6 x-a = OH
-
You need to write a paper about the HR Environmental Scanning
-
MgO prevents premature evaporation of Al in a furnace by maintaining the aluminum as Al2O3. Another type of matrix modifier prevents loss of signal from the atom X that readily forms the molecular...
-
Explain how creating a process map and internal threat analysis helps in determining the extent to which substantive testing is to be performed on the accounts associated with the supply chain and...
-
Consider the purchases function of a manufacturing company. To overcome a downward profitability trend, management recently instituted a "just-in-time" system of acquiring raw materials for its...
-
Testing for unrecorded liabilities involves vouching a sample of disbursements made after fiscal year end to determine whether the underlying liabilities for the disbursements were recorded at the...
Study smarter with the SolutionInn App