Explanation:
White Board Activity: Practice: A sound has a frequency of 800 Hz. What is the period of the wave? The wave repeats 800 times in 1 second and the period of the function is 1/800 or 0.00125.
Answer:
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
int main() {
string name[5];
int age[5];
int i,j;
for ( i = 0; i<=4; i++ ) {
cout << "Please enter student's name:";
cin >> name[i];
cout << "Please enter student's age:";
cin >> age[i];
}
for (i=0;i<=4;i++){
cout<<"Age of "<< name[i]<<" is "<<age[i]<<endl;
}
}
Output of above program is displayed in figure attached.
Answer:
Tesla CEO Elon Musk tweeted that the company's stock was too high, and it immediately dropped in value. The tweet may have violated a deal Musk made with the SEC about his tweets and Tesla. Musk also tweeted patriotic lyrics, said his girlfriend Grimes is mad at him, and noted that their child is due on Monday