Question
Hello! I am trying to get my columns and rows aligned in C++, but my bottom one isn't. #include #include #include using namespace std; int
Hello! I am trying to get my columns and rows aligned in C++, but my bottom one isn't.
#include
cout > device; cout > q1_1 >> q1_2 >> q1_3 >> q1_4; cout > q2_1 >> q2_2 >> q2_3 >> q2_4; cout > q3_1 >> q3_2 >> q3_3 >> q3_4;
//Compute the quarterly total q1 = q1_1 + q2_1 + q3_1; q2 = q1_2 + q2_2 + q3_2; q3 = q1_3 + q2_3 + q3_3; q4 = q1_4 + q2_4 + q3_4;
// Region r1 = q1_1 + q1_2 + q1_3 + q1_4; r2 = q2_1 + q2_2 + q2_3 + q2_4; r3 = q3_1 + q3_2 + q3_3 + q3_4; // total total = r1 + r2 + r3;
// displaying sales table cout
if (r1>r2 && r1>r3) { cout r1&& r2 > r3) { cout r2&& r3 > r1) { cout
}
- O X Select Microsoft Visual Studio Debug Console Welcome to 's Sale Report Calculator Please enter the device name (Encourager or Stimulator): stim Please enter the sales for region 1: 1 2 3 4 Please enter the sales for region 2: 1 2 3 4 Please enter the sales for region 1: $1 2 3 5 CDSE Sales Report for stim Quarter 1 Quarter 2 Quarter 3 Quarter 4 + Region 1 Region 2 Region 3 Q Total 13 Region 3 has the highest sales! With a total of 11. www + unStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started