visual basic homework

FratBro23
Category:
Programming
Price: $20 USD

Question description


In this assigment, you will practice on creating a C++ file and displaying some data.

Question a) You will create 5 variables and 5 constants holding data that you will display.

uestion b) Using a 7-by-5 grid of stars "*" you will create and display your full name initials.

Submit the .cpp file you wrote.


#include <iostream>
using namespace std;

int main()
{
// 

	char l; // variable declaration
	short int graduation_Year = 2016; // variable declaration
	const string first_Name = " Beatrice ";
	const string last_Name = " Walter. ";
	string home = "Aberdeen (Harford County)";
	const string hs_Name = "Aberdeen High";
	const string elem_Name = " Aberdeen Elementary.....Sike naa, it was called  Halls Cross Roads aka Halls x";
	string preferred_Sport = " basketball, but I love football " ;
	//double // add some data of type double
	//aint // add some data of type int 

	// Now display the information; there will be 10 cout worth 1 point each

	cout << "My name is " << first_Name  << " " << last_Name << endl;

	cout << "\n I am a sophomore majoring in Electrical and Computer Engineering "<< endl;

	cout<< "\n I am from: " << home << endl;

	cout << "\n My high school name is: " <<  hs_Name << endl;

	cout<< "\n My elementary school name is: " << elem_Name << endl;

	cout << "\n I will graduate from Morgan State University in " << graduation_Year << endl;

	cout << "\n I like "<< preferred_Sport << endl;
// 
	
// Print the initials of your firstname then lastname in a 7 x 5 grid: 10 points
// Example to print the letter B:
  cout << "****" << endl;
  cout << "*   *" << endl;
  cout << "*   *" << endl;
  cout << "****" << endl;
  cout << "*   *" << endl;
  cout << "*   *" << endl;
  cout << "****" <<"   " << "*"<< endl;
  system("pause");
  return 0;
}

Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Boston College
PREMIUM TUTOR
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1824 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors