The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 3 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Each disk drive in a shipment of devices is stamped with a code from 1 through 4, which indicates a drive manufacturer as follows: 1 A????1 3M Corporation, 2 A????1 Maxell Corporation, 3 A????1 Sony Corporation, and 4 A????1 Verbatim Corporation. Write a C program that accepts the code number as an input, and based on the value entered, displays the correct disk drive manufacturer. (Note use a switch statement.) Sample output:
Enter a code (1, 2, 3 or 4): 8
An invalid code was entered
Enter a code (1, 2, 3 or 4): 3
Sony Corporation
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll