{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

assignment7 - #include<string> using namespace std u...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* Assignment 7: Write a program which declares string variables called president, vicePresident and speakerOfTheHouse. Assign values to these variables based on who is currently in office. Print each of them on a separate line as follows (for example): The president is Barack Obama. The vice president is Joe Biden. The speaker of the house is Nancy Pelosi.*/ T #include<iostream>
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: #include<string> using namespace std; u int main () i { string president = "Barack Obama"; string vicePresident = "Joe Biden"; string speakerOfTheHouse = "Nancy Pelosi"; s cout << "The president is " <<president<< ".\n"; cout << "The vice president is " <<vicePresident<< ".\n"; cout << "The speaker of the house is " <<speakerOfTheHouse<< ".\n"; c }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online