Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 #include #include using namespace std; int main() { string device; double q1_1, q1_2, q1_3, q1_4; double q2_1, q2_2, q2_3, q2_4; double q3_1, q3_2, q3_3, q3_4; double q1, q2, q3, q4; double r1, r2, r3; double total;

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

}

image text in transcribed

- 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 + un

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Ehs 2.0 Revolutionizing The Future Of Safety With Digital Technology

Authors: Tony Mudd

1st Edition

B0CN69B3HW, 979-8867463663

More Books

Students also viewed these Databases questions

Question

find fugacity coefficient of p = rt / v - a / t + b

Answered: 1 week ago