Question: How do I create a flowchart adding dates? New additional Customer requirements: In addition to name, phone, adult and child tickets they now require the
How do I create a flowchart adding dates? New additional Customer requirements: In addition to name, phone, adult and child tickets they now require the customer to input dateshowever, the only dates that are available for attendance are: Mar 2021, Apr 2021 and May 2021. There must be at least one adult ticket purchased before any processing is done. Display an error message when the adult or date requirements are not met and exit the program. There is an additional cost to add to total cost. Each transaction adds a fee charge based on how many tickets. If they have 5 or the less the fee is $1 (1.00) per person and if more than 5 it is reduced to 50 cents (.50). The fee is not taxed but is part of the total cost.
- Open Flowgorithm. Naming convention: lastname-lsn4-project.fprg (where lastname is YOUR lastname and the filename uses only small lettersno capitals).
- Enter the required program attributes for your code (See attached: Flowgorithm Menu Guidance for identifying your code and giving it attributes). All code for this course requires the following information in the Program Attributes:
- Lab filename
- Author name:
- In the About:
- Current Semester:
- Course Section:
- Blackboard Username:
- Plan the logic for a program needed by the new customer requirements:
- The program should be structured as defined in Chapter 3 of your textbook. This means that breakpoints should not be used. All structures must have one entry, one exit and loops return to the question.
- The maximum and minimum fees variables should be named constants (All letters capitalized)
- The variable used to test for fee should be a named constant
- All other variables should follow the camel casing format.
- You will need to use decision structures for the following:
- Test to make sure the adult minimum has been met and when not met give them an error message and exit the program. The message should be in a module.
- Test to make sure they have chosen one of the approved dates for attendance and if not give them an error message and exit the program. The message should be in a module.
- Additional Modules or Modifications to Current Modules.
- Modules for both the adult ticket and date error messages.
- Module for the outputs on date rules and prompt. The input statement will remain standalone (not in a module).
- Add the processing for fee to the calculation module. Remember you may need to pass more variables to do this. This process will require a decision structure.
- You may declare the variables all in the Main or create local variables as necessary. Ensure there are NO spaces in your variable names.
Test Your Code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
