Computers and Technology

The World Travel company has decided to perform enhancements to the current version of their Processing program in order to use it to process groups of customers. The company has decided to provide a more simple package to small groups of 3 customers. Lodging and tour packages will no longer be required. The prices have been lowered also. This requires a change to the user interface and to the program. In addition of radio buttons to select Destination and Air Travel option, three buttons will be used: Process Group, Generate Report and Clear. More details about them are provided in the Requirements section.
You will have to create some arrays and functions for the buttons to work as intended.
You are required to implement the interface required using the JavaScript programming language. The illustration below displays the GUI screen required. A template is provided to you with the basic structure of the interface.
Note: Choose World Travel a background color and a text color of Price Processing your preference. Customer Destination Europe Africa Europe Africa Europe Africa Air Travel option One Way Round Trip One Way • Round Trip One Way • Round Trip Customer 2 Customer 3 Process Group Generate Report Clear Total Price: $ Final Price (includes 15% surcharge): $|
The new pricing list is listed below:
Destination:
Europe
Air Travel:
One Way: $400
Round Trip: $750
Africa
Air Travel:
One Way: $600
Round Trip: $1,000 .
Inputs needed (refer to the illustration on the previous page):
Continent: Europe or Africa.
Air Travel: One Way or Round Trip.
Outputs to be displayed (refer to the illustration on the previous page):
Total Price The total price calculated prior to the addition of a 15% surcharge. Final price Note: add 15% to the total price to calculate the final price. 0 Other Output: A Report with the details for the group. It's generated when calling the generateReport function by clicking on the Generate Report button.
Requirements:
C Radio Buttons for Destination and Air Travel option: They will be used to record the choices of the customers. These choices must be saved in arrays rather than on regular variables. Therefore, three arrays need to be declared inside the

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:31, mona92
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
image
Computers and Technology, 23.06.2019 06:00, ashleyd198308
Respond to the following in three to five sentences. select the workplace skill, habit, or attitude described in this chapter that you believe is most important for being a successful employee.
Answers: 1
image
Computers and Technology, 24.06.2019 06:30, chloeholt123
For which utilities, if any, does the landlord pay?
Answers: 2
image
Computers and Technology, 24.06.2019 21:30, keelynnbarrier
Computer security/cybersecurity1) each of the following code fragments contains a number of security vulnerabilities. for each fragment, identify these security vulnerabilities and, for each vulnerability, discuss at least one way that it could be improved. note that in your discussion of how each vulnerability could be improved, you do not need to re-write a new version of the program in c; simply discuss your solution, either in pseudocode or in 1-2 sentences. a) /* file descriptor leak */#include #include int main(int argc, char *argv[]){ char *filepath = argv[0]; char *shellpath = argv[1]; file *passwords; passwords = fopen(filepath, "r"); /* read the password and do something with it */ /* . . */ /* fork and execute alternative shell */ execl(shellpath, "shell", null); }b)#include /* assume the following function is written for an electronic storefront. the user will enter the id of the item to be ordered, as well as the quantity of units that they would like to purchase. the program will then lookup the price for the price for the item using a predefined function, and return the total cost of the order.*/int gettotalcost(){ char itemid[9]; int price, unitsordered, cost; printf(" enter the 9-digit id of the item to be ordered: "); scanf("%s", & itemid); /* lookup the price according to the itemid */ price = getpricebyid(itemid); printf(" enter the quantity of units to be ordered: "); scanf("%d", & unitsordered); cost = price * unitsordered; return cost; }c)#include /* the following function is intended to return a user's full name by concatenating the user's first and last name into a single string and then returning that string. */char *getfullname(char *firstname, char *lastname, int max_len){ char fullname[max_len]; strcpy(fullname, firstname); strcat(fullname, " "); strcat(fullname, lastname); return fullname; }d)#include /* the following code snippet runs through the list of cli arguments entered and displays them to the console. */int main(int argc, char *argv[]){ int i; printf("you've entered the following arguments: "); for(i = 0; i < argc; i++){ print(argv[i]); printf("\n"); } /* */}
Answers: 2
Do you know the correct answer?
The World Travel company has decided to perform enhancements to the current version of their Process...

Questions in other subjects:

Konu
Mathematics, 28.01.2020 07:31