Question
Please help, will rate. Read two letters, two integers, two decimals, and input yourname and your major, and print them out as follows. L y 890 990 67.09 88.98 Name: xxxx. Xxxxx Major: yyyyyyy I know to use Char, int, double, and string. Don't knowhow to put it together. Thx. Please help, will rate. Read two letters, two integers, two decimals, and input yourname and your major, and print them out as follows. L y 890 990 67.09 88.98 Name: xxxx. Xxxxx Major: yyyyyyy I know to use Char, int, double, and string. Don't knowhow to put it together. Thx.
Explanation / Answer
please rate - thanks I tried to include as many "features" as possible #include #include using namespace std; int main() {int i,j; char a,b; double c,d; string name,major; couta; coutb; couti; coutj; coutc; coutd; cin.ignore(); //after entering numbers there is "junk" in the buffer that has tobe ignored cout