Source Code:
#include <iostream>
using namespace std;
int main()
{
//static receipt design
cout<<"......................................."<<endl;
cout<<"# DeAlis Creative Solution\3 #"<<endl;
cout<<"# No 25 Taman Sungguh Indah #"<<endl;
cout<<"# 56600 Kuala Lumpur #"<<endl;
cout<<"......................................."<<endl;
cout<<" Tarikh: 29/12/2015"<<endl;
cout<<" Nama Cashier: Rogayah"<<endl;
cout<<"\n";
cout<<"......................................."<<endl; cout<<" Bil Item Price "<<endl;
cout<<"......................................."<<endl;
cout<<" 1 Pisang Kaki 5.50 "<<endl;
cout<<" 2 Tomato 3.50 "<<endl;
cout<<"......................................."<<endl;
cout<<" JUMLAH 9.00 "<<endl;
cout<<"......................................."<<endl;
cout<<"\n\n\n";
//QUESTION: INCLUDE VARIABLE BASED ON YOUR RECEIPT DESIGN
}
Hint: List all variables and edit a codes based on given receipt