It helps to keep things organized
Answer:
In C++:
#include <iostream>
using namespace std;
int main(){
string fname,lname; int num;
cout<<"Firstname: "; cin>>fname;
cout<<"Lastname: "; cin>>lname;
cout<<"4 digits: "; cin>>num;
string login = lname;
if(lname.length()>=5){
login = lname.substr(0, 5); }
login+=fname.substr(0,1)+to_string(num%100);
cout<<login;
return 0;
}
Explanation:
See attachment for explanation where I used comments to explain each line
Answer:
This is true.
Explanation:
I think everyone was taught to to type correctly sometime in school or at home. It helps you proficiently type. But most people don't use the Home Room Key Technique. Most use the "Chicken peck"
Answer:
<em>SQL Query</em>
///////////////////////////////////////////////////////////////////////////////////////////////////
select Genre_Name, Number_Purchased from Genre
INNER JOIN Tracks on Genre.Genre_Name = Tracks.Genre_Name
WHERE Number_Purchased >= 10 AND Tracks.price >= 1
ORDER BY Number_Purchased ASC;
Explanation:
First off, I selected the required columns from <em>Genre</em> Table.
Then I inner joined <em>Genre</em> table with <em>Tracks</em> table, to get the <em>price</em> of tracks of the corresponding Genres.
Then the required Where conditions are written, which includes one from the <em>Tracks</em> table.
Finally, the Order by statement is written by <em>Number_Purchased</em> column in ascending (ASC) order.