Rewrite the following prog code, using a switch case statement If (name -- 88) printf("John"); else if (name=-27) printf("Juliya") else if (name-40) printf("Devid"); else printf("Sorry No Name Found"); Based on the program code in (a), what would be the output if the user entered the following values? 45 ii) 88

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 16RQ
icon
Related questions
icon
Concept explainers
Question
Rewrite the following program code, using a switch case statement
If (name 88)
printf("John");
else if (name=-27)
printf("Juliya")
else if (name-48)
printf("Devid");
else
printf("Sorry No Name Found");
Based on the program code in (a), what would be the output if the user entered the following values?
45
ii) 88
Transcribed Image Text:Rewrite the following program code, using a switch case statement If (name 88) printf("John"); else if (name=-27) printf("Juliya") else if (name-48) printf("Devid"); else printf("Sorry No Name Found"); Based on the program code in (a), what would be the output if the user entered the following values? 45 ii) 88
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,