subject
Engineering, 15.01.2020 22:31 eithzyd1648

25. if necessary, create a new project named advanced 25 project and save it in the cpp8\chap14 folder. also create a new source file named advanced 25.cpp. if you are using microsoft visual c++, copy the advanced25.txt file from the cpp8\chap14 folder to the cpp8\chap14\advanced25 project folder. use a text editor to open the advanced25.txt file, which contains the names of the items in inventory, as well as each item’s quantity and price. close the advanced25.txt file. write a program that displays the contents of the file in three columns titled "name", "quantity", and "price". the program should also display a fourth column that contains the result of multiplying each item’s quantity by its price. use "value" as the column’s title. (hint: you can align the columns using '\t', which is the escape sequence for the tab key.) in addition, the program should calculate and display the total value of the items in inventory. display the price, value, and total value with two decimal places. save and then run the program. zak, diane. an introduction to programming with c++ (p. 547). cengage learning. kindle edition.

ansver
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, abdirahmansoloman
Air is to be cooled in the evaporator section of a refrigerator by passing it over a bank of 0.8-cm-outer-diameter and 0.4-m-long tubes inside which the refrigerant is evaporating at -20°c. air approaches the tube bank in the normal direction at 0°c and 1 atm with a mean velocity of 4 m/s. the tubes are arranged in-line with longitudinal and transverse pitches of sl- st 1.5 cm. there are 30 rows in the flow direction with 15 tubes in each row. determine (a) the refrigeration capacity of this system and (b) pressure drop across the tube bank. evaluate the air properties at an assumed mean temperature of -5°c and 1 atm. is this a good assumption?
Answers: 1
image
Engineering, 04.07.2019 18:10, skpdancer1605
Ariver flows from north to south at 8 km/h. a boat is to cross this river from west to east at a speed of 20 km/h (speed of the boat with respect to the earth/ground). at what angle (in degrees) must the boat be pointed upstream such that it will proceed directly across the river (hint: find the speed of the boat with respect to water/river)? a 288 b. 21.8 c. 326 d. 30.2
Answers: 3
image
Engineering, 04.07.2019 18:10, michellerosas
Ajournal bearing has a journal diameter of 3.250 in with a unilateral tolerance of 20.003 in. the bushing bore has a diameter of 3.256 in and a unilateral tolerance of 0.004 in. the bushing is 2.8 in long and supports a 700-lbf load. the journal speed is 900 rev/min. find the minimum oil film thickness and the maximum film pressure for both sae 20 and sae 20w-30 lubricants, for the tightest assembly if the operating film temperature is 160°f. a computer code is appropriate for solving this problem.
Answers: 3
image
Engineering, 04.07.2019 18:10, caitlynnpatton1208
Water in a partially filled large tank is to be supplied to the roof top, which is 8 m above the water level in the tank, through a 2.2-cm-internal-diameter pipe by maintaining a constant air pressure of 300 kpa (gage) in the tank. if the head loss in the piping is 2 m of water, determine the discharge rate of the supply of water to the roof top in liters per second.
Answers: 3
You know the right answer?
25. if necessary, create a new project named advanced 25 project and save it in the cpp8\chap14 fold...

Questions in other subjects: