Lab Assignment 3 CSE 100 Arizona State University 10 points Objectives: To get familiar with character and string data type in C++. Task 1: Study different data types such as char and string Task 2:
Lab Assignment 3 CSE 100 Arizona State University 10 points Objectives: To get familiar with character and string data type in C++. Task 1: Study different data types such as char and string Task 2: To write a C++ program to add two strings, display the string addition, and find the length of the final string. Programming Instructions: Make new project (Visual C++ Empty Project) named lab3 and add a C++ file named lab3.cpp to this project. (Some IDE may automatically generate main.cpp or source.cpp, then you just rename it to lab3.cpp when you submit the assignment.) Then, write a C++ program to perform the task 2 mentioned above. Please refer to the code template provided below. Submission Instructions: 1. Upload the zipped folder submitlab3.zip (containing lab3.cpp file and lab3 application/executable file) on the Lab 3 submission link on the Blackboard. 2. Submissions in the form of email/paper copy or any other format will not be accepted. 3. Submission after the deadline will result in zero marks. 4. Deadline: 11.59 PM on the day of your lab session. Grading Criteria: 1. Submit correct file format, lab3.cpp and lab3 application file in submitlab3.zip file. (4 points) 2. The submitted code is able to compile without any error and produces correct output. (5 points) 3. The code follows good coding practices. (1 point) Code Template: // CSE 100: Lab 3 #include #include using namespace std; int main() { char grade; int len; string firstname, lastname, fullname; // Working with character data type _________________________________________________________ _________________________________________________________ // working with string data type _________________________________________________________ _________________________________________________________ // Addition of strings _________________________________________________________ _________________________________________________________ // To find length of string _________________________________________________________ _________________________________________________________ system(“pause”); return 0; }
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
