Answer to Question #262840 in C++ for A H

Question #262840

Write a code in C++ programming language

Create three variables that will hold:

Student Name

Student Id

Current Course Intake

Assign your name, student ID, your current course intake to the three variables created previously.

After presenting the output of the three variables you will present the date of this assignment such as:

The date of this Assignment is: 8-12-2021


1
Expert's answer
2021-11-08T09:13:35-0500
#include <iostream>
#include <string>
using namespace std;


void main(){
	string studentName="Peter Smith";
	string studentId="454554";
	string currentCourseIntake="Programming C++";


	cout<<"Student Name: "<<studentName<<"\n";
	cout<<"Student Id: "<<studentId<<"\n";
	cout<<"Current Course Intake: "<<currentCourseIntake<<"\n";
	


	cout<<"The date of this Assignment is: 8-12-2021\n";
	cin>>studentName;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS