-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModule1SemesterProjectRC.cpp
More file actions
41 lines (36 loc) · 1.46 KB
/
Copy pathModule1SemesterProjectRC.cpp
File metadata and controls
41 lines (36 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//************************************************************************
// Author: Rolando Rey Carreon
// Date: feb 07 2025
// Language: C++
// Assignment: Module 1 Semester Project
// Description: This project is designed to consolidate the topics
// covered throughout the course, such as variables, control
// structures, loops, functions, Arrays, and Structures. Each
// section will require adding to the source code to enhance
// or extend the program.
//************************************************************************
#include<iostream>
using namespace std;
int main()
{
// declare local variables //
// format string is 40 characters long, used more than once //
string formatString = "****************************************\n";
// assuming this string will be used allot, used more than once //
string pleaseEnter = "Please enter your ";
// user defined string variables //
string firstName, lastName;
// formatted line by line as seen by user //
cout << formatString
<< "* Programming 1 Course Project *\n"
<< formatString
// first prompt //
<< pleaseEnter << "first name: ";
cin >> firstName;
// second prompt //
cout << pleaseEnter << "last name: ";
cin >> lastName;
// ending message using user inputs from prompt 1 //
cout << "Welcome to my course project " << firstName << "!" << endl;
return 0;
}