--------------------------------------------------------------------------------
#include <iostream.h>
main()
{
int price,added_stock,qty_of_stock,current_stock,qty_sold,amount_sold,balanced_stock,item,item1,item2,item3,item4,item5;
cout<<"enter the item name\t";
cin>>item;
cout<<"price\t";
cin>>price;
cout<<"added stock\t";
cin>>added_stock;
cout<<"qty sold\t";
cin>>qty_sold;
cout<<"balanced_stock\t"
cin>>balanced_stock;
qty_of_stock=added_stock+balanced_stock;
amount_sold=qty_sold*price
current_stock=qty_of_stock-qty_sold
please what kind of output code can i use to display the output in the following order; each time there is a new item input.OUTPUT FORMAT:
ITEM1.....
ADDED STOCK IS.......
QTY OF STOCK IS.......
CURRENT STOCK IS.......
QTY SOLD IS......
PRICE IS.......
AMOUNT SOLD IS.......
THANX
Edited by kenex, 28 January 2009 - 04:44 AM.
add code tags (the # button)


Sign In
Create Account


Back to top










