Objective: The motive of this enactment is to manner 2-dimensional paltry decks.
Background: Within a hearty, balanced viands, a grownup needs 2,250 calories a day. You achieve transcribe a program to course calorie intake of a individual.
Assignment: Calorie intake postulates from a individual is granted in a extract refine designated input.txt. There are peremptory enumerate of inclose values on each continuity, separated by spaces. The enumerates illustrate the enumerate of calories consumed coercion meals and/or snacks on a day. The refine includes postulates coercion accurately undivided week starting from Monday. That is, the refine contains seven continuitys of extract. The topmost continuity is coercion Monday and the continuity at the profound is coercion Sunday. Your program should unravel the postulates from the refine into a 2- dimensional deck. The enumerate of lengths of the 2-dimensional deck must be correspondent to the enumerate of weighty continuitys in the refine. The enumerates in the i-th length of the 2-dimensional deck must show in the similar continuity of enumerates in the i-th length of the refine. After unraveling the input refine into the 2-dimensional deck, narration the subjoined items.
• a inventory of whole calories consumed each day
• a inventory of days when balance calories than required are consumed
• medium calories consumed during the i-th meal/snack (medium balance full seven days)
You must transcribe a process with accurately undivided 2-dimensional deck parameter to value each of the inventoryed items overhead and flaunt the consequence.
Example input refine:
800 1000 100
450 100 845 20 1200 200
1800 250 400
0 1500 800 120
600 500 700 1400 1700 100
You should sculpture an hallucination missive and finish if there are not attributable attributable attributable accurately 7 continuitys.
using namespace std;
cout<<“Unable to known input refine”;