Create 3 float arrays with the names machine A, machine B and machine C. The arrays are of size 4.
Insert machine A, B and C production to the respective array using the function InputProduction().
Print chart of all four (4) days by using the function PrintChart().
Print the report using the function PrintReport().
#include <iostream>
float A[4], B[4], C[4];
void InputProduction(float value, int idx)
{
A[idx] = value;
B[idx] = value;
C[idx] = value;
}
void PrintChart()
{
std::cout << "A : [" << A[0] << ", " << A[1] << ", " << A[2] << ", " << A[3] <<"]\n";
std::cout << "B : [" << B[0] << ", " << B[1] << ", " << B[2] << ", " << B[3] <<"]\n";
std::cout << "C : [" << C[0] << ", " << C[1] << ", " << C[2] << ", " << C[3] <<"]\n";
}
void PrintReports()
{
// impl...
}
int main() { return 0; }
Comments
Leave a comment