Need Help on C++ programming, can someone teach me how to write this programming
ID: 3842126 • Letter: N
Question
Need Help on C++ programming, can someone teach me how to write this programming:
For your final, write a program that will generate an invoice for a customer. You may select an existing company or invent a fictitious company of your own to base the content of the invoice. Your program must include the following: Comments at the beginning of each file to introduce content and to explain each section of code Create parameter names which are informative, use appropriate tabs and spacing, code is readable and easy to follow, all syntax and logic errors debugged include both local and global parameters Read in content that will not change from an external file (outside of main) such as Company logo Company address Contact information Ask a user for unique content, such as: Customer name, address Previous balance New purchase(s) Current amount due Create a new file and generate an invoice for each customer's purchase Store each customer's entry as a unique entry for a minimum of 10 customers. In other words, after 10 customers have entered their purchases, your program will be able to select any one of those records to print out an invoice.Explanation / Answer
#include using namespace std; double getUnitprice(int itemCode); int main(){ double invoice[10][4]; int i=0; char more; char date[100]; cout date; do { cout > invoice[i][0]; cout > invoice[i][1]; invoice[i][2] = getUnitprice(invoice[i][0]); invoice[i][3] = invoice[i][1] * invoice[i][2]; cout > more; i++; } while(more == 'y'); coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.