Program to do the following (in the order described): Prompt the user to enter an integer...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Program to do the following (in the order described): Prompt the user to enter an integer with "Section ID (2 or 3): ", read the user's input, and display a labeled output with the user's input as "Hey you of CS2318.00?" (where ? should match the integer the user entered). Prompt the user to enter a string (of up to 25 characters long) with "Halloween costume (up to 25 characters): ", read the user's input, and display a labeled output with the user's input as "LOL! ???" (where ??? should match the string the user entered). String entered MUST be stored in separate storage space (i.e., not overwriting the storage space used by prompt and label strings) allocated just enough (no more, no less) to accommodate up to the maximum number of characters indicated. Prompt the user to enter a character with "One-character nickname: ", read the user's input, and display a labeled output with the user's input as "Yippee! ?" (where ? should match the character the user entered). Note that it involves a character, NOT a one-charater string. You will get no credits if you do it using a one-character string even though the same output is obtained. Also, be sure to introduce appropriate spaces and newlines to make what appears on the Run I/O window (of MARS) reasonably readable. CAUTION: Too many past students regretted having points taken off for failing to do one or more of these: - not separately "prompt then read then display" each type of data -- e.g.: "prompt then read all 3 types" followed by "display all 3 types" not appropriately "introduce spaces and newlines" to make interative I/O (what appears on the Run I/O window) reasonably readable (e.g.: items "not-logically-belonging-together" appear in one line, perhaps also running together) Program to do the following (in the order described): Prompt the user to enter an integer with "Section ID (2 or 3): ", read the user's input, and display a labeled output with the user's input as "Hey you of CS2318.00?" (where ? should match the integer the user entered). Prompt the user to enter a string (of up to 25 characters long) with "Halloween costume (up to 25 characters): ", read the user's input, and display a labeled output with the user's input as "LOL! ???" (where ??? should match the string the user entered). String entered MUST be stored in separate storage space (i.e., not overwriting the storage space used by prompt and label strings) allocated just enough (no more, no less) to accommodate up to the maximum number of characters indicated. Prompt the user to enter a character with "One-character nickname: ", read the user's input, and display a labeled output with the user's input as "Yippee! ?" (where ? should match the character the user entered). Note that it involves a character, NOT a one-charater string. You will get no credits if you do it using a one-character string even though the same output is obtained. Also, be sure to introduce appropriate spaces and newlines to make what appears on the Run I/O window (of MARS) reasonably readable. CAUTION: Too many past students regretted having points taken off for failing to do one or more of these: - not separately "prompt then read then display" each type of data -- e.g.: "prompt then read all 3 types" followed by "display all 3 types" not appropriately "introduce spaces and newlines" to make interative I/O (what appears on the Run I/O window) reasonably readable (e.g.: items "not-logically-belonging-together" appear in one line, perhaps also running together)
Expert Answer:
Related Book For
Posted Date:
Students also viewed these algorithms questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Deuterium ( ) is an attractive fuel for fusion reactions because it is abundant in the oceans, where about 0.015% of the hydrogen atoms in the water (H 2 O) are deuterium atoms. (a) How many...
-
A string that is fixed at both ends has a length of 2.50 m. When the string vibrates at a frequency of 85.0 Hz, a standing wave with five loops is formed. (a) What is the wavelength of the waves that...
-
The fund-basis financial statements of Cherokee Library District (a special purpose government engaged only in governmental activities) have been completed for the year 2017 and appear in the second...
-
One calorie is equivalent to (a) \(418.4 \mathrm{~J}\) (b) \(41.84 \mathrm{~J}\) (c) \(4.184 \mathrm{~J}\) (d) \(0.4184 \mathrm{~J}\).
-
On September 1, 2012, the account balances of Moore Equipment Repair were as During September, the following summary transactions were completed.Sept. 8 Paid $1,400 for salaries due employees, of...
-
List five important aspects of your identity -- an identifier or descriptor that you feel is important in defining you. This can include anything: Asian American, female, mother, athlete, educator,...
-
A large corporate client on the brink of failure has hired a consultant (you) to solve their problem. You are tasked with organizing a plan to solve your client's issue and "present" your plan to...
-
What happened to the USA's economic growth? What is the main contributing factor to this change? Discuss in a couple of sentences things that are important for the change in the USA's economic...
-
In what ways do socio-cultural factors impact the efficacy of intercultural communication exchanges ?
-
Hildreth Company uses a job order cost system. The following data summarize the operations related to production for April, the first month of operations: Materials purchased on account, $ 3 , 3 7 0...
-
List the major traditional banks in Canada? 2. What other options for Canadian banking are there besides the "Big 5 "? 3. What is your preferred Canadian banking option? Name of institution: Bank of...
-
What are the actions taken by the Sprouts Farmers Market in measuring risk and ethical behavior?
-
A Chinese automobile company Geely Auto aspires to enter the US market by setting up their manufacturing unit there and producing cars locally to give competition to their US and European...
-
In muscle tissue, the ratio of phosphorylase a to phosphorylase b determines the rate of conversion of glycogen to glucose 1phosphate. Classify how each event affects the rate of glycogen breakdown...
-
Measured on the Stanford Revision of the Binet-Simon Intelligence Scale, intelligence quotients (IQs) are known to be normally distributed with a mean of 100 and a standard deviation of 16. Use the...
-
State the empirical rule as specialized to variables?
-
As reported by the Federal Bureau of Investigation in Crime in the United States, the age distribution of murder victims between 20 and 59 years old is as shown in the following table. Age (yr)...
-
Consider the differential equation of motion for the free vibration of a damped single-degreeof-freedom system given by Show that Eq. (E.1) remains the same irrespective of the units used by...
-
Derive an expression for the time at which the response of a critically damped system will attain its maximum value. Also find the expression for the maximum response.
-
A shock absorber is to be designed to limit its overshoot to \(15 \%\) of its initial displacement when released. Find the damping ratio \(\zeta_{0}\) required. What will be the overshoot if...
Study smarter with the SolutionInn App