#include <stdio.h>int main(void) {int a;char *s;int v0 = 4, v1 = 5, v2 = 6, v3 = 1, v4 = 2;printf("Exercise 1:\n====================\n");switch(v0) {case 0: printf("Hello October\n"); break;case 1: printf("Go Kean!\n"); break;case 2: printf("Academic Building Center \n"); break;case 3: printf("UNION \n"); break;case 4: printf("Go ");case 5: printf("Kean! \n");default: printf("Have a great semester! \n"); break;}for(a=5; a<v1; a++) {printf("Kean");}printf("\n");if (v2 == 6) {s = "Go";}else {s = "Hello";}if(v3 != v4) {printf("%s Kean!\n",s);} else {printf("%s Computer Science!\n",s);}return 0;} Output: Exercise 1:====================Go Kean! Have a great semester!  Go Kean! Please only modify the initial value of v0, v1, v2, v3 and v4 to get the following output. Youneed to show your program output (in the screenshot) and submit the code that youmodified.Exercise 1:====================Hello OctoberKeanHello Computer Science!

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

#include <stdio.h>
int main(void) {
int a;
char *s;
int v0 = 4, v1 = 5, v2 = 6, v3 = 1, v4 = 2;
printf("Exercise 1:\n====================\n");
switch(v0) {
case 0: printf("Hello October\n"); break;
case 1: printf("Go Kean!\n"); break;
case 2: printf("Academic Building Center \n"); break;
case 3: printf("UNION \n"); break;
case 4: printf("Go ");
case 5: printf("Kean! \n");
default: printf("Have a great semester! \n"); break;
}
for(a=5; a<v1; a++) {
printf("Kean");
}
printf("\n");
if (v2 == 6) {
s = "Go";
}
else {
s = "Hello";
}
if(v3 != v4) {
printf("%s Kean!\n",s);
} else {
printf("%s Computer Science!\n",s);
}
return 0;
}

Output:

Exercise 1:
====================
Go Kean! 
Have a great semester! 

Go Kean!

Please only modify the initial value of v0, v1, v2, v3 and v4 to get the following output. You
need to show your program output (in the screenshot) and submit the code that you
modified.
Exercise 1:
====================
Hello October
Kean
Hello Computer Science!

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT