Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Treskom company was hired by the previous government to account for the expenses of its parties /harteras in the VIP lounge of the choliseo.

The Treskom company was hired by the previous government to account for the expenses of its parties /harteras in the VIP lounge of the choliseo. The new government, formed by engineers with impeccable behavior, wants to improve the code of Treskom's engineers, although Treskom's engineers were so inept that they did not create functions and put all the code in the main hope that you do the job as It must have been done at first.
Its objective is:
1. Move lines 11 to 14 to a function called VerificaMemoria.
2. Move lines 16 to 20 to a function that will be called
readHardware.
3. Move lines 22 to 27 to a function that will be called
PrintHardware and Total.
4.In the function PrintHarterasyTotal, in addition to printing the cost of each portfolio you must also calculate and print the total money that was spent in the harteras (the total). (comilona== hartera)
Your job as a computer engineer is to move the function code lines and add the necessary input parameters for the functions to execute correctly. Do not forget that the function prints Harteras and Total should also print the total of all the harteras.
1. Introduction with detailed phrases in phrases (pseudocode).
2. Detailed flow chart.
3. Implement the code using functions.
4. Verify that the code works and deliver the requested data on the computer screen(The teacher will read your code line by line to see if it is true that it works well and also look at the screenshot of the execution. image text in transcribed
4. In the function PrintHarterasyTotal, in addition to printing the cost of each hatchery, you must also calculate and print the total money that was spent in the harteras(the total).
(comilona== hartera)
mipos que no crearon funcic Esperamos que usted haga el trabajo tal y como debi haberse hecho en un principio! 1 773Com. Enaudi in todos los torcidos corruptados 2 #include 3 #include 4 using namespace std; 5 int main() { float *gastos; //defino un puntero NO UN ARRAY int numofgastos; cout > numofgastos; gastos - new float [numofgastos); He creado unatta dinamico if (gastos -- NULL) { cout

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions