I'm new to C++ and I need some help getting my numbers to display with only two trailing numbers after the decimal point. The program runs and does everything I need it to, but I just can't fix the output of the digits. I tried the setprecison(2), fixed, setw, and even tried to use fixed and setprecision together but still the same results. Can someone please compile and run the program and tell me what am I doing wrong? The program is supposed to ask the user how many units were sold and then compute and display the discount price and the total cost of the purchase. Should I add .00 to the const Package_price? Thanks in advance.
#include <iostream>
#include <iomanip>
using namespace std;