Question
Step1: Read the requirement; write in English the pseudo-code in a word document by listing the step by step what you suppose to do in
Step1:
Read the requirement; write in English the pseudo-code in a word document by listing the step by step what you suppose to do in main() and then save it with the name as Lab1_pseudoCode_yourLastName
(You can have the flowchart instead of the pseudo-code)
Step2:
Start Virtual Studio C++, create the project write the project name
For Part 1: SP2021_LAB1PART1_yourLastName
For Part 2: SP2021_LAB1PART2_yourLastName
Add .cpp file
For Part 1: SP2021_displayOnScreen_yourLastName.cpp
For Part 2: SP2021_programWithVariables_yourLastName.cpp
After adding the cpp file, you have an empty window coming up, type the following template of a C++ program in:
//File name should be written here as comment line
#include
using namespace std;
int main()
{
//add the code here below this line
..
system(pause); //This will pause the output to read
return 0;
}
Step3:
Then follow the step by step in the pseudo-code, type the C++ code in after the line //add the code here below this line
*Each statement should end by semi-colon ;
*The lines starting with // are the comment lines. The compiler will not read the comment lines
Step4:
Compile and run the program
Step5:
Debug if there are any errors until compile successfully
LAB1 - PART1 REQUIREMENT
Your part 1 should be qualified to two following requirements:
REQUIREMENT 1. Provide a C++ program to display exact following output lines on the screen (12 lines) as below:
-------------------------------------------------------------------------------
File SP2021_DisplayOnScreen_Martinez.cpp
Welcome to class COSC1436 Programming Fundamental I
Spring 2021 Semester
-------------------------------------------------------------------------------
My name is: Luis Martinez
This is my first C++ Program
The lab should be turned in on time to get max score
Each lab has only 1 week for late
Late lab will be lost 3 points
Good luck to everybody in class! Enjoy programming!
-------------------------------------------------------------------------------
The output window as below:
REQUIREMENT 2.Write the comment at the end of line #include
LAB1 PART2 REQUIREMENT
Your part 2 should be qualified to two following requirements:
REQUIREMENT 1: Provide the C++ program to declare variables to store the information of a student that are read from the keyboard and then display the output on screen. The information of one student include 2 words (type string) and 3 decimal numbers (type float)
If users provide input from the keyboard:
-first word: Hello
-second word: Luis
-3 numbers: 23.54, 57.25, 18.75
Then the output has 11 lines as below:
-----------------------------------------------------------------------
File SP2021_programWithVariables_Martinez.cpp
Spring 2021 semester - LUIS MARTINEZ
----------------------------------------------------------------------
Word 1: Hello
Word 2: Luis
First number: 23.54
Second number: 57.25
Third number: 18.75
Average of 23.54, 57.25 and 18.75 is: 33.18
---------------------------------------------------------------------
The output window as below:
Pic
REQUIREMENT 2:
-The information to use in this program should be read from the keyboard.
-You have to use the variables to display the output
-The output should be separated from the input. All the lines of code to read input cannot be counted in the output
-Write the comments for each part of the program (not for each line of the code)
HOW TO TURN IN
You should turn in the following files:
Pseudo-code OR flowchart and the output pictures of both parts
SP2021_displayOnScreen_yourLastName.cpp
SP2021_LAB1PART1_yourLastName.exe
SP2021_programWithVariables_yourLastName.cpp
SP2021_LAB1PART2_yourLastName.exe
IF YOU GET ANY PROBLEM TO SUBMIT FILE .exe YOU CAN COMPRESS ALL PROJECT INTO ONE FILE .zip or .rar TO UPLOAD TO eCampus
Plz Help as this is my first programming class and thank you
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