Complete the given program. This program is to shutdown and restart  the computer   Also attach screenshot

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question
Question

#include <iostream>

#include <stdlib.h>

using namespace std;

int main()

{

int choice;

cout << "1. Shutdown Your Computer \n";

cout << "2. Restart Your Computer \n";

cout << "3. Exit\n";

cout << "\n Enter your choice : ";

cin >> choice;

switch (choice)

{

case 1:

// Write your code here

case 2:

// Write your code here

case 3:

// Write your code here

default:

cout << "Wrong Choice!!\n";

}

return 0;

}

 

 

Complete the given program. This program is to shutdown and restart  the computer

 

Also attach screenshot

 

Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
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,