#include using namespace std; int main() { int count; cout << "Enter number of packages bought: "; cin >> count; double discount = 0; if (count < 10) { discount = 0; } else if (count >= 10 && count <= 19) { discount = 20 / 100.0; } else if (count >= 20 && count <= 49) { discount = 30 / 100.0; } else if (count >= 50 && count <= 99) { discount = 40 / 100.0; } else if (count >= 100) { discount = 50 / 100.0; } double costbeforediscount = count * 99; double amountofdiscount = costbeforediscount * discount; double finalcost = costbeforediscount - amountofdiscount; printf("Your discount is: %.2f\n", amountofdiscount); printf("Your total is: %.2f\n", finalcost); return 0; }:q q :w New_Homework1 :w! :wq :w!