Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program to do the following (in the order described): Prompt the user to enter an integer with Section ID (2 or 3): , read

 

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)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

It appears that you have shared an image with instructions for a programming task However the specif... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Statistics

Authors: Neil A. Weiss

10th Edition

321989171, 978-0321989178

More Books

Students also viewed these Algorithms questions

Question

State the empirical rule as specialized to variables?

Answered: 1 week ago