Assignment Requirement Part 1: Create Invoice Construct a C++ program to do the following tasks: a. Enter the participant's name, category, nationality, accommodation (Yes/No). b. If the answer for the question on accommodation is Yes, the program will ask for the number of days. Then the program will call function calcAcconnodation() to calculate the accommodation charges. calcacconnodation() receives accommodation (Yes/No), number of days and participation type (localinternational) as parameters and return the accommodation charge to the main program. The price per night per person is RM150 for local participant, and USD 100 for international participant. c. Call the calcFee() function which receives participant category and type as parameters, calculate the fes, and return it via reference parameter. d. Calculate the total fees and accommodation charges and store the result to variable totalCharge. e. Call function printInvoice () to print the invoice. rath Sains

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter9: Formula Auditing, Data Validation, And Complex Problem Solving
Section: Chapter Questions
Problem 6AYK
icon
Related questions
Question
Sample invoice is given as follows:
International Conference on
Mathenatical Sciences and Technology (MathTech)
Invoice Date
Invoice No
Name
: 20 January 2022
: 0001
: Muhammad Irfan Ali
: Presenter
Category
Accommodation (Y/N) : Y
Conference Fee
Acconnodation Fee
Total Amount Due (RM) : 1290.00
: 990.00
: 300.00
Terms & Conditions
Payment is due within 30 days.
Please make payment via online banking to
Maths USM (RHB: 1234554321)
You are encouraged to add on extra features to your program.
Proceed to Part 2 only if you have completed Part 1.
Part 2: Create Invoice via File Processing
a. Modify the program in Part 1 to read in the file provided, File.txt.
b. Use array structure in your program.
c. Print all 5 receipts continuously to Dutput.txt.
amusm.my
Sie
samms Malaysia
Transcribed Image Text:Sample invoice is given as follows: International Conference on Mathenatical Sciences and Technology (MathTech) Invoice Date Invoice No Name : 20 January 2022 : 0001 : Muhammad Irfan Ali : Presenter Category Accommodation (Y/N) : Y Conference Fee Acconnodation Fee Total Amount Due (RM) : 1290.00 : 990.00 : 300.00 Terms & Conditions Payment is due within 30 days. Please make payment via online banking to Maths USM (RHB: 1234554321) You are encouraged to add on extra features to your program. Proceed to Part 2 only if you have completed Part 1. Part 2: Create Invoice via File Processing a. Modify the program in Part 1 to read in the file provided, File.txt. b. Use array structure in your program. c. Print all 5 receipts continuously to Dutput.txt. amusm.my Sie samms Malaysia
The International Conference on Mathematical Sciences and Technology, MathTech, is a biennial
conference organised by the School of Mathematical Sciences, USM. This event is open to all
national and international experts, practitioners, researchers, and academics to gather and
share their knowledge.
The details of fees for participation in the conference are shown in the following table.
Category
Local (RM)
International (USD)
Presenter
990
260
Observer
150
Note: 1 USD = RM4.20
Assignment Requirement
Part 1: Create Invoice
Construct a C++ program to do the following tasks:
a. Enter the participant's name, category, nationality, accommodation (Yes/No).
b. If the answer for the question on accommodation is Yes, the program will ask for the
number of days. Then the program will call function calcAccommodation () to calculate
the accommodation charges.
calcAccommodation() receives accommodation (Yes/No), number of days and participation
type (local/international) as parameters and return the accommodation charge to the main
program. The price per night per person is RM150 for local participant, and USD 100 for
international participant.
c. Call the calcFee () function which receives participant category and type as parameters,
calculate the fees, and return it via reference parameter.
d. Calculate the total fees and accommodation charges and store the result to variable
totalCharge.
e. Call function printInvoice() to print the invoice.
ath.usn.m
Sains Malaysi
Transcribed Image Text:The International Conference on Mathematical Sciences and Technology, MathTech, is a biennial conference organised by the School of Mathematical Sciences, USM. This event is open to all national and international experts, practitioners, researchers, and academics to gather and share their knowledge. The details of fees for participation in the conference are shown in the following table. Category Local (RM) International (USD) Presenter 990 260 Observer 150 Note: 1 USD = RM4.20 Assignment Requirement Part 1: Create Invoice Construct a C++ program to do the following tasks: a. Enter the participant's name, category, nationality, accommodation (Yes/No). b. If the answer for the question on accommodation is Yes, the program will ask for the number of days. Then the program will call function calcAccommodation () to calculate the accommodation charges. calcAccommodation() receives accommodation (Yes/No), number of days and participation type (local/international) as parameters and return the accommodation charge to the main program. The price per night per person is RM150 for local participant, and USD 100 for international participant. c. Call the calcFee () function which receives participant category and type as parameters, calculate the fees, and return it via reference parameter. d. Calculate the total fees and accommodation charges and store the result to variable totalCharge. e. Call function printInvoice() to print the invoice. ath.usn.m Sains Malaysi
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L