Hello im new to c++ and have a problem with the program im building. Im making a program to estimate the cost of paint and wallpaper for a decorater.I have been using multiple if statements for decision making and one of them isnt working. I can enter in the customer name, and select wallpaper and enter in the details for that. But when I try to enter paint it wont let me enter in the details for it, instead it just displays the wallpaper details. How can I change it so that when i select the paint type it displays the paint menu
You need to put the code of lines 32-42 inside the block of the if at line 23 ( if the user chose 'w', it will see the wallpaper stuff )
Similarly, the code on lines 44-55 should be inside the block of the line 27 if
Got another problem. Im trying to get the prgram to calculate the cost but when I run the program the answer ends up being a large minus number and not the result I want.
The code on lines 107-129 and 162-190 do nothing ( has no effect on the following code )
Use operator = for assignment. ( not == which is for comparison )
You are getting uninitialized values