C programming windows console applicationSolutionAnswer inc

C++ programming windows console application

Solution

Answer :-

#include <iostream>
#include <string>
#include <iomanip>
using namespace std;

int main()
{
  
string array[7] = {\"1 - Case\",\"2 - Mother Board\",\"3 - CPU\",\"4 - Power Supply\",\"5 - Memory (RAM)\",\"6 - Hard Drive\",\"7 - DVD\"};
  
cout << \"Desktop Parts List...\" << endl;
cout << \"------------------------------\" << endl;
//for loop that iterates through the while array and display all its elements
for (int i = 0; i < 7; i++)
{
//array[i] represent ith element in the array.e.g 0th element is 32, 4th element is 78 etc
cout << \"Array[\" << i << \"] => \" << array[i] << endl;
}
cout << \"-----------------------------\" << endl;
cout << \"End of Parts List...\" << endl;
  
return 0;
}

C++ programming windows console applicationSolutionAnswer :- #include <iostream> #include <string> #include <iomanip> using namespace std; int

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site