Answered step by step
Verified Expert Solution
Question
1 Approved Answer
At the top of each of your C + + programs, you should have at least four lines of documentation: Program name ( the C
At the top of each of your C programs, you should have at least four lines of documentation:
Program name the C file names Author your name Date last updated, and Purpose a brief description of what the program accomplishes Here is an example:
Program name: jbtictactoe.cpp
Author: John Doe
Date last updated:
Purpose: Play the game of TicTacToe
Assignment: Computer Specifications
This program will determine if a user has enough RAM to do certain tasks.
Prompt the user for the amount of RAM their computer has in GB Then you will display the list of tasks below that the user might do with the computer. Based on the task chosen, inform the user if the amount of RAM they have is sufficient.
Tasks with minimum RAM requirements.
Task Minimum RAM Needed
Android Studio GB
Visual Studio Code GB
Gaming GB
Web Browsing with Chrome GB
Multiple Programming Tasks both Android and VS Code GB
Zoom GB
Email GB
Create and edit documents GB
Everything listed above GB
Input Validation
The user will be entering a number for the RAM amount. You will need to make sure that the user properly enters a number into the console by checking if they have input failure, and you will need to make sure the number is greater than If the input fails either condition, the program should display an error message and exit early.
The way a user chooses a task is through a numbered menu. You will need to make sure the user properly enters a number into the console by checking if they have input failure, and you will need to make sure the number entered is within the range of the menu options. If the input fails either condition, then the program should display an error message and exit early.
Sample Output
Enter the amount of RAM in GB
Choose the task you want to do on your computer from the following list:
Android Studio
Visual Studio Code
Gaming
Web Browsing with Chrome
Multiple Programming Tasks both Android Studio and Visual Studio Code
Zoom
Email
Create and edit documents
Everything listed above
Congratulations! You have sufficient RAM for your task.
Enter the amount of RAM in GB
Choose the task you want to do on your computer from the following list:
Android Studio
Visual Studio Code
Gaming
Web Browsing with Chrome
Multiple Programming Tasks both Android Studio and Visual Studio Code
Zoom
Email
Create and edit documents
Everything listed above
Sorry the RAM you have is not sufficient.
Enter the amount of RAM in GB
a
You have entered an invalid value. The program will unable to continue. Exiting.
Enter the amount of RAM in GB
You have entered an invalid value. The program will unable to continue. Exiting.
Enter the amount of RAM in GB
Choose the task you want to do on your computer from the following list:
Android Studio
Visual Studio Code
Gaming
Web Browsing with Chrome
Multiple Programming Tasks both Android Studio and Visual Studio Code
Zoom
Email
Create and edit documents
Everything listed above
a
You have entered an invalid value. The program will be unable to continue. Exiting.
Enter the amount of RAM in GB
Choose the task you want to do on your computer from the following list:
Android Studio
Visual Studio Code
Gaming
Web Browsing with Chrome
Multiple Programming Tasks both Android Studio and Visual Studio Code
Zoom
Email
Create and edit documents
Everything listed above
You have entered an invalid value. The program will be unable to continue. Exiting.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started