Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PLEASE HELP ME, thank you, thank you, thank you!!!!!! I need the pseudocode for

ID: 3534802 • Letter: P

Question

PLEASE HELP ME, thank you, thank you, thank you!!!!!! I need the pseudocode for this:

The ACME Company has approached you with a request to develop the psuedocode that will control the operations of their new series of vending machines. The program will be required to maintain the product inventory and money reservoir. The program should do the following operations: 1. Take as input an item number and money (The program terminates when a user enters a negative money amount and “000†as an item number.) 2. Check to see if the item exists. (if it doesn’t give the user a chance to re-enter the number) 3. Check to see if the money is sufficient enough to pay for item. (If not request more money) 4. Check to see if item is in stock. (If not user should be notified with the choice of selecting new item or cancelling the order) 5. If the item is in stock and the money is sufficient, the program should provide change and update the money reservoir and product inventory. 6. When the dispensing change, the program must insure that it always returns the correct amount of change based on the coins available in the reservoir. For example, if a user is owed $0.30 then the program may return 1 quarter and 1 nickel. However, if there are no quarters, the program should be smart enough to return a different combination of that doesn’t include quarters. (If no combination of change exists, the user’s order should be cancelled and the user should be allowed to make an alternate selection) 7. Once a transaction is complete, the user should be prompted to make a new selection. The program will end when a user enters a negative money amount and “000†for the item number. Product Inventory: Below is a breakdown of the products offered by the vending machine. In addition to the product names, the prices, item number and quantities are also listed below. The user will use the item number to select the product they wish to purchase.
Product Name, Item Number, Price, Quantity in Stock
Candy Bar, 123, $0.60, 60 Gum, 124, $0.35, 75 Potato Chips, 125, $0.75, 40 Trail Mix, 126, $.050, 50 Breakfast Bar, 127, $0.80, 45 PLEASE HELP ME, thank you, thank you, thank you!!!!!! I need the pseudocode for this:

The ACME Company has approached you with a request to develop the psuedocode that will control the operations of their new series of vending machines. The program will be required to maintain the product inventory and money reservoir. The program should do the following operations: 1. Take as input an item number and money (The program terminates when a user enters a negative money amount and “000†as an item number.) 2. Check to see if the item exists. (if it doesn’t give the user a chance to re-enter the number) 3. Check to see if the money is sufficient enough to pay for item. (If not request more money) 4. Check to see if item is in stock. (If not user should be notified with the choice of selecting new item or cancelling the order) 5. If the item is in stock and the money is sufficient, the program should provide change and update the money reservoir and product inventory. 6. When the dispensing change, the program must insure that it always returns the correct amount of change based on the coins available in the reservoir. For example, if a user is owed $0.30 then the program may return 1 quarter and 1 nickel. However, if there are no quarters, the program should be smart enough to return a different combination of that doesn’t include quarters. (If no combination of change exists, the user’s order should be cancelled and the user should be allowed to make an alternate selection) 7. Once a transaction is complete, the user should be prompted to make a new selection. The program will end when a user enters a negative money amount and “000†for the item number. Product Inventory: Below is a breakdown of the products offered by the vending machine. In addition to the product names, the prices, item number and quantities are also listed below. The user will use the item number to select the product they wish to purchase.
Product Name, Item Number, Price, Quantity in Stock
Candy Bar, 123, $0.60, 60 Gum, 124, $0.35, 75 Potato Chips, 125, $0.75, 40 Trail Mix, 126, $.050, 50 Breakfast Bar, 127, $0.80, 45

Explanation / Answer

Please rate with 5 stars :)


#include <iostream>

#include <iomanip>

using namespace std;

int main()

{

char money;

double totalm = 0;

double value = 0, valued = 0, valuen = 0, valueq = 0, valueb = 0;

int c1=0, c2=0, c3=0, c4=0, c5=0, c6=0;

int C1=0, C2=0, C3=0, C4=0, C5=0, C6=0;

int item;

cout<<"======Welcome to TD'S Vending======"<<endl;

cout<<" Depost Money "<<endl;

cout<<" Enter n or N for Nickel "<<endl;

cout<<" Enter d or D for Dime "<<endl;

cout<<" Enter q or Q for Quarter "<<endl;

cout<<" Enter b or B for Dollar Bill "<<endl;

cout<<" Enter e to end the deposit "<<endl;

cin>>money;

while(money!='e' && money!='E')

{

if(money=='n' || money=='N')

{

double valuen=0.05;

totalm+=valuen;

cout<<"nickel is deposited, the total money deposited is "<<totalm<<endl;

cin>>money;

}

if(money=='d' || money=='D')

{

double valued=0.10;

totalm+=valued;

cout<<"dime is deposited, the total money deposited is "<<totalm<<endl;

cin>>money;

}

if(money=='q' || money=='Q')

{

double valueq=0.25;

totalm+=valueq;

cout<<"quarter is deposited, the total money deposited is "<<totalm<<endl;

cin>>money;

}

if(money=='b' || money=='B')

{

double valueb=1.00;

totalm+=valueb;

cout<<"dollar is deposited, the total money deposited is "<<totalm<<endl;

cin>>money;

}

else

{

cout<<"invalid entry, please try again"<<endl;

cin>>money;

}

}

cout<<"=========Welcome to TD'S Vending========="<<endl;

cout<<" Snickers Goose Condom "<<endl;

cout<<" $0.85 $2.00 $1.50 "<<endl;

cout<<" C1 C2 C3 "<<endl<<endl;

cout<<" Chips Dutch Mint "<<endl;

cout<<" $0.50 $1.00 $0.25 "<<endl;

cout<<" C4 C5 C6 "<<endl;

cout<<"========================================="<<endl;

cout<<"Please enter item number"<<endl;

cin>>item;

if (item==c1||C1)

{

double S=0.85;

float change=0;

if(totalm>=S)

{

cout<<"Snickers is purchased"<<endl;

change=totalm-S;

cout<<"Money deposited is"<<totalm<<"Your change is"<<change<<endl;

cout<<"Thank You"<<endl;

}

else

{

}

if (item==c2||C2)

{

float G=2.00;

float change=0;

if(totalm>=G)

{

cout<<"Goose is purchased"<<endl;

change=totalm-G;

cout<<"Money deposited is"<<totalm<<"Your change is"<<change<<endl;

cout<<"Thank You"<<endl;

}

else

{

}

if (item==c3||C3)

{

float CO=1.50;

float change=0;

if(totalm>=CO)

{

cout<<"Condom is purchased"<<endl;

change=totalm-CO;

cout<<"Money deposited is"<<totalm<<"Your change is"<<change<<endl;

cout<<"Thank You"<<endl;

}

else

{

}

if (item==c4||C4)

{

float CH=0.50;

float change=0;

if(totalm>=CH)

{

cout<<"Chips is purchased"<<endl;

change=totalm-CH;

cout<<"Money deposited is"<<totalm<<"Your change is"<<change<<endl;

cout<<"Thank You"<<endl;

}

else

{

}

if (item==c5||C5)

{

float D=1.00;

float change=0;

if(totalm>=D)

{

cout<<"Dutch is purchased"<<endl;

change=totalm-D;

cout<<"Money deposited is"<<totalm<<"Your change is"<<change<<endl;

cout<<"Thank You"<<endl;

}

else

{

}

if (item==c6||C6)

{

float M=0.25;

float change=0;

if(totalm>=M)

{

cout<<"Mint is purchased"<<endl;

change=totalm-G;

cout<<"Money deposited is"<<totalm<<"Your change is"<<change<<endl;

cout<<"Thank You"<<endl;

}

else

{

}

}

}

return 0;

}

}

}

}

}


Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote