(9.10 Code Practice: Question 1)
Instructions
Write code that takes in two words from user input. Then, the program should swap the two variables that hold the inputs and print the words in backward order.
Sample Run
Enter a word: apple
Enter a word: zebra
zebra
apple
Answer:
#include <iostream>
#include <string>
using namespace std;
int main() {
string wOne, wTwo, temp;
cout << "Enter a word:";
cin >> wOne;
cout << "Enter a word:";
cin >> wTwo;
temp = wOne;
wOne = wTwo;
wTwo = temp;
cout << wOne << endl;
cout << wTwo << endl;
}
What was true of Northern cities?
O A. Governments ensured that all areas of city had equal public
services
B. Segregation was limited to the workplace.
O C. The rights of wealthy citizens were protected regardless of their
race.
D. Segregation was practiced even where it was not the law.
Answer:
D. Segregation was practiced even where it was not the law.
The _____ feature will mark all changes made to a document for others to review at a later time.
A. Track Changes
B. Comment
C. Research
D.Show Markup
Tribology is a branch of physics concerned with friction in mechanical motion. Knowledge of tribology would be useful working with _____.
a. any sort of drive
b. solid state drives
c. conventional hard disk drives
d. flash drives
Answer: C conventional hard disk drives
Explanation: hope this helps! (:
What was a lesson that the Enlightenment taught people?
O A. To accept life as it was and not try to change things
O B. To think for themselves and challenge authority
O C. To do as they were taught by church leaders
O D. To obey the government without question
Answer:
B. To think for themselves and challenge authority
Explanation:
The enlightenment was a European intellectual movement where people began to challenge the church and form their own thoughts about government.
guyss pls answer me this questionn..............]'
To return to Normal view after you finish working with the page breaks, you need to click_____________ in the _____________ group under the View tab.???????????
For a surface to exist, it must have I closed-loop AND be coplanar.
True
False
Answer:
False.
Explanation:
I will try to explain by presenting a contradiction to the given statement. Let us consider the surface of a sphere ( a ball is a sphere). While it has a closed loop surface it is not coplanar. In fact, a sphere exists in 3d and its surface can not lie in one plane. Hence, the given statement is false and surfaces do not have to be coplanar.