Advertisement
MarkDacurawat

DISPLAY LESSON

Jan 18th, 2022
891
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  
  3. Project: Software
  4. Author: Mark Resma Dacurawat
  5. Submitted to: Sir James Balsamo
  6.  
  7. */
  8.  
  9. #include <iostream>
  10.  
  11. using namespace std;
  12.  
  13. void introText(){
  14.     cout << "\n Choose one topic using letter" << endl;
  15.     cout << " A. Requirements for O.S. Installation." << endl;
  16.     cout << " B. Procedures of Installing Windows 98 O.S" << endl;
  17.     cout << " C. Procedures of Installing Windows XP O.S.\n" << endl;
  18.     cout << " xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" << endl;
  19. }
  20.  
  21. void softwareProgram(string option,string lessonOne,string lessonTwo,string lessonThree){
  22.     while(true) {
  23.         cout << "\n\n Enter a letter: ";
  24.         cin >> option;
  25.         system("cls");
  26.  
  27.         if (option == "A" || option == "a"){
  28.             introText();
  29.             cout << lessonOne;
  30.         } else if(option == "B" || option == "b"){
  31.             introText();
  32.             cout << lessonTwo << endl;
  33.         } else if(option == "C" || option == "c"){
  34.             introText();
  35.             cout << lessonThree << endl;
  36.         } else {
  37.             introText();
  38.             cout << "\n A , B , C ONLY please" << endl;
  39.             option.length() > 1 && cout << "\n Please input one letter only" << endl;
  40.         }
  41.  
  42.     }
  43. }
  44.  
  45. int main()
  46. {
  47.     // Output introtext
  48.     introText();
  49.  
  50.     // Initialize option variable
  51.     string option;
  52.  
  53.     // OS requirements multi line string.
  54.     char *OSrequirements =
  55.         "\n System Requirements for Windows 10 Installation \n\n"
  56.         " Windows 10 system requirements comprise of hardware necessities as well as graphics and display requirements needed to run Windows 10 on a system at a fast and reliable speed. Basic requirements for installing Windows 10 are: \n \n"
  57.         " Processor: 1 GHz or faster \n"
  58.         " RAM: 1GB (32-bit) or 2GB (64-bit) \n"
  59.         " Graphics: DirectX 9 or later with WDDM 1.0 driver \n"
  60.         " Hard Disk: 16 GB (32-bit) or 20 GB (64-bit) [For installation only] \n"
  61.         " Display: 800×600 \n \n"
  62.         " With these Windows 10 requirements fulfilled, you can install the OS and get it to run on your required system. But would this go compatible with all system functionalities and user preferences? \n \n";
  63.  
  64.     // Installing Windows 98 multiline string.
  65.     char *InstallingWindows98 =
  66.         "\n Installing Windows 98 \n\n"
  67.         " 1. Use a Win98 Startup disk (with CD support) to boot your computer. \n"
  68.         " 2. Insert your Win98 CD into the CD Rom drive. \n"
  69.         " 3. At the A: prompt type X:\Win98\Setup.exe where X: is your CD-ROM drive. \n"
  70.         " 4. Proceed with the install. When prompted for the install location, you’ll see C:\Windows.000. Choose Other directory and change this to the drive you wish to install 98 to and name the folder Windows (or something else if you prefer). \n"
  71.         " 5. Complete the Win98 install. Allow the computer to boot into Win98. \n";
  72.  
  73.     // Installing Windows XP multistring.
  74.     char *InstallingWindowsXP =
  75.         "\n Installation of Windows XP operating System. \n\n"
  76.         " Step 1: Insert Your Windows XP Bootable Disk. \n"
  77.         " Step 2: How to Boot From a CD. \n"
  78.         " Step 3: Beginning the Process \n"
  79.         " Step 4: Licensing Agreement and Begin Setup \n"
  80.         " Step 5: Deleting the Current Partition \n"
  81.         " Step 6: Beginning the Install \n"
  82.         " Step 7: Choosing the Type of Installation \n"
  83.         " Step 8: Allowing Windows XP to Install \n"
  84.         " Step 9: Choosing Your Keyboard Layout, Organization, and Computer Name \n"
  85.         " Step 10: Choosing Your Time Zone \n"
  86.         " Step 11: Waiting for Installation to Continue \n"
  87.         " Step 12: Display Settings \n"
  88.         " Step 13: Protecting Your Computer and Giving It a User \n"
  89.         " Step 14: Finishing the Installation \n";
  90.  
  91.     // Start of program
  92.     softwareProgram(option,OSrequirements,InstallingWindows98,InstallingWindowsXP);
  93.  
  94.  
  95.     return 0;
  96. }
  97.  
  98.  
  99.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement