A flight company computes the ticket price of a travel depending on the reservation rate and the seat class. Write a program that asks the user to enter the airplane capacity, the number of reserved seats and the seat class (E for Economy and B for Business). The program must compute and display the reservation rate and the ticket price using the following formulas and rules: Reservation rate = number of reserved seats *100 / airplane capacity The ticket price is given by the following table: %3D Business class Economy class If reservation rate less than or equal to 40% If reservation rate is between 40% and 85% If reservation rate is 85% or more 200$ 350$ 550$ 150$ 220$ 400$
Q: In today's developing nations, wireless networks are critical for economic growth and development. A…
A: Introduction: Consider the vital significance that wireless networks play in developing today's…
Q: What issues do the SPEC CPU benchmarks solve that the Whetstone, Dhrystone, and Linpack benchmarks…
A: Introduction: Secant is a CPU integer processing power benchmarking standard. The Standard…
Q: Create a Java program that allows a user to input customer records (ID number, first name, last…
A: Java program that allows a user to input customer records (ID number, first name, last name, and…
Q: What is the best way to gather material for a thorough operations manual?
A: Introduction: The purpose of the operations handbook is to remind personnel how to do their duties.…
Q: Define the function: int power (int base, int exp) {/*It accepts the arguments for base and exponent…
A: I give the code in C as per your requirement along with output and code screenshot
Q: List four SNMPv3 key features. Explain your answer while relating with SNMPv1 and SNMPv2 wherever…
A: INTRODUCTION: The initial version of SNMP is SNMPv1. Despite the fact that it achieved its purpose…
Q: 1. Competitive Intelligence is primarily used to: Benchmark your business against other businesses…
A: 1. Competitive intelligence is primarily used to: a. Benchmark your business against other…
Q: When MARIE has 4K key memory words, why do addresses contain 12 bits?
A: Introduction: Why does MARIE's main memory contain 4K words, but addresses must have 12 bits?…
Q: Write a C program that calculates the Total Money to be paid by a customer of a supermarket if…
A: PROGRAM INTRODUCTION: Include the required header files. In the definition of the main function,…
Q: Create a context diagram from the new business. It is okay to use your imagination with respect to…
A: Components needs for the new business : Manager Members Accounting of sales Trainer Activity
Q: Write a Java program to take a list of string from the user & print a list where each string has all…
A: Java remove all character occurrences in a string output. There is a string replace function that…
Q: A common year in the modern Gregorian Calendar consists of 365 days. In reality, Earth takes longer…
A: Q: Detect Error in program.
Q: What are the various types of computer systems, and what are some instances of each?
A: In reality, a computer is an electrical device that accepts data and produces output. The following…
Q: Why is it easier to set up a RISC CPU than a CISC processor?
A: RISC means Reduced Instruction Set Computer CISC means Complex Instruction Set Computer RISC is a…
Q: Derive the truth table, simplified Boolean function (equation), and draw the logical diagram.…
A: Answer
Q: four websites, including Microsoft, Oracle and Cisco's websites, that are all among the most popular…
A: Introduction: Websites dedicated to the most up-to-date information about the security. Microsoft…
Q: For information security incidents, what are the company's procedures for sharing information?
A: An outline is a nitty gritty arrangement or program of activity. While thinking as far as an…
Q: Distinguish between an impact printer and a non-impact printer. Give two examples for each person.
A: INTRODUCTION: Impact printer and Non-impact printer: Impact printers make images and figures by…
Q: Job portal system: This system allows the students to search and apply for jobs etc. online. The…
A:
Q: WHY IS IT IMPORTANT TO HAVE AN O/S? WHAT HAPPENS IF A COMPUTER HARDWARE DOESN'T HAVE AN OPERATIONAL…
A: This document refers to it as the operating system (OS). In computing, an operating system (OS) is…
Q: Give some instances of key operational and customer performance indicators that might be included in…
A: Introduction: A key performance indicator (KPI) or metric for operations is a discrete measurement…
Q: The two most significant files created by a Type II hypervisor when creating a new virtual machine…
A: Hypervisor is a process that creates and runs virtual machines.
Q: Print true if the user-entered array contains, somewhere, three increasing adjacent. Programming…
A: Required:- Print true if the user-entered array contains, somewhere, three increasing…
Q: What is the best way to get crash logs from the simulator?
A: Introduction: Tombstone crash logs are generated whenever an Android application encounters a native…
Q: What are the steps involved in installing local software, portable software, and Web-based…
A: Introduction: A portable application (portable app) is a piece of software that can be moved from…
Q: Jane Smith is responsible for security at the ABC Company. She has a moderate budget with which to…
A: Install the anti-virus software in all the system Adopt the mechanism of blocking up data that…
Q: An online game collects data about each player's performance in the game. A program is used to…
A: Option D is correct.
Q: Describe the mechanism through which a current operating system makes use of a feature from an older…
A: Introduction: The architecture and functionality of Multics have had a considerable impact on the…
Q: When it comes to crisis communication, what are the NIMS system's strengths and weaknesses? Consider…
A: Introduction: The National Incident Management System (NIMS) is a comprehensive, logical approach to…
Q: What are two of the most significant computing achievements?
A: A team led by James Gosling developed Java. It was created with the intention of being used on…
Q: A Microkernel OS has one benefit and one drawback over a Monolithic os. Provide evidence to back up…
A: Monolithic and Microkernel different types of kernels in the operating system. Kernel is the main…
Q: The efficiency of e-commerce has been boosted by two or more computer innovations.
A: Introduction: Companies that use this distribution channel may grow into new markets. E-commerce…
Q: A square number is an integer number whose square root is also an integer. For example 1, 4, 81 are…
A: The answer is
Q: What are the various types of computer systems, and what are some instances of each?
A: The answer is given below.
Q: So why do EXCEPT (MINUS) and UNION searches have different operand order requirements?
A: Introduction: INTERSECT compares the data in two tables and delivers only the rows that are present…
Q: Is backup the database administrator's responsibility or the obligation of the database user? of…
A: Introduction: Backup is an essential activity that must be conducted on a daily basis, as we all…
Q: Where would you look to see if someone tried to get in to your computer?
A: To view logon attempts on your Windows 10 PC
Q: What is the name of the SSH client file that an administrator can use to pre-configure the public…
A: Secure Shell is a cryptographic organization standard for securely exchanging data across an…
Q: What are the various types of computer systems, and what are some instances of each?
A: Introduction
Q: What is the reason that watchdog timers are necessary in such a huge number of embedded systems?
A: Introduction: In many embedded systems, why are watchdog timers required?A watchdog timer's…
Q: What are the similarities and differences between authentication and authorisation? It's not clear…
A: EXPLANATION: Authentication Authentication is establishing that someone is who they say they are. It…
Q: Apply A* algorithm (on Figure 1 attached below) to find the Optimal Distance from Delhi to Vijayawad
A: A* Algorithm: Place the starting node in the OPEN list. Check if the OPEN list is empty or not, if…
Q: This is for Advanced Java Programming Write a test program that reads words from a text file and…
A: The JAVA code is given in the below step with a screenshot and output The program does not need…
Q: 137. In mathematics, a perfect number is a type of integer. The procedure IsPerfect (num) returns…
A: To make the algorithm present in the image perfect to give proper count of perfect numbers in the…
Q: Dissect the many types of computing resource failures.
A: The Answer is in step2
Q: Write a program that will accept an integer value from 0000 to 2359. It will then extract the first…
A: Find the required code given as below and output :
Q: How can a single individual coordinate a distributed denial of service attack?
A: Introduction: A distributed denial-of-service attack- (DDoS) is a malicious attempt to disrupt the…
Q: What are the advantages and disadvantages of using a client/server system, and how do they differ?
A: Introduction: The primary distinction between client and server is that a client is a computer or…
Q: What are some of the difficulties you've encountered while testing using the Firebase Android app?
A: EXPLANATION: Each piece of software requires a backup, where Baas (Backend-as-a-Service) solutions…
Q: What is the mathematical statement of the following, using the following statements on the image?…
A: - We need to choose the correct mathematical statement for the logic statement. - We are using the…
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Step by step
Solved in 3 steps with 2 images
- Problem: An online grocery store sells items on a web page. A user adds items to a basket and he clicks on the submit button when he completes. The store sells food and electronic items. The electronic items require VAT payment of 15 percentage of their prices. There are packed and lose food. The lose food is measured in weights. User specifies the weight amount or the quantity in his selection of items depending on its type. The price is computed as the product of the price per item or the price per weight and the weight or quantity are given by the user. Write an application that reads a user basket list and produces the bill receipt. Check the given samples of input/output in the figures below. The bill receipt contains the list of item details in decreasing order according to the price computed for each item. Use the selection sort' to sort the items in the list and do not use java given sort method. Selection sort is an algorithm used to arrange elements in a list. It selects the…A shop collects the following information from its customers: 1. Full name (first name, last name, and optional middle initial) 2. Address (street name and number, city, zip code, and state) 3. Phone number 4. Email 5. First visit/service date 6. Most recent visit/service date 7. Total amount charged 8. Current balance and description of the last service You are to write a program that allow the shop to manage their customers. The shop needs the following functionalities: 1. Search for a customer by:a. Nameb. Phone numberc. Email (The result of the search would have similar option as in the “List all customers” option below) 2. List all customersa. Select and edit a customer b. Delete a customer 3. Add a new customera. Prompt for appropriate data fields 4. Get account consolidation sheet that shows total charges and total balance of all customers 5. Get the records of the biggest 5 spenders (spend the most) 6. Exit and save all changes (all changes to the customers should be stored…Following code in C using random Name Reg no and highschool name Use switch case in C language to do the following: Create a restaurant with the name “Your Name - Reg_No – Name of your highschool” The restaurant should come with the options of delivery and take away and the choice should be displayed as “Delivery – Registration No” and “Takeaway – Name” Each option should have the same menu and an extra 15% charge be included if a customer wants home delivery Both menus should have two items that are customizable, such as a burger can have chillies removed, cheese added and extra mayonnaise. The user should have the option of choosing multiple items with multiple quantity. Print a bill in the end.
- C++ Language Write a program that prints a custom conversion table from Celsius temperatures to Fahrenheit and Newton (Links to an external site.) temperatures. The formula for the conversion from Celsius to Fahrenheit is : F=9/5*C+32 F is the Fahrenheit temperature, and C is the Celsius temperature. The formula for the conversion from Celsius to Newton is C = 100/33*N N is the Newton Temperature and C is the Celsius temperature Your program should prompt the user for a lower value and upper value for a range of temperatures in Celsius. It should then prompt the user for the amount they want to increment by. Then use a loop to output to a file named conversion_table.txt a table of the Celsius temperatures and their Fahrenheit and Newton equivalents within the range of values using the increment given by the user. Make sure to format your output to 2 decimal places. INPUT VALIDATION: Ensure the second number is greater than the first number, and make sure the increment is greater…Use C Language Airline Reservation System A small airline has just purchased a computer for its new automated reservations system. The president has asked you to program the new system. You are to write a program to assign seats on each flight of the airline's only plane (capacity: 10 seats). Your program should display the following menu of alternatives: Please type 1 for "first class" Please type 2 for "economy" If the person types 1, then your program should assign a seat in the first class section (seats 1-5). If the person types 2, then your program should assign a seat in the economy section (seats 6-10). Your program should then print a boarding pass indicating the person's seat number and whether it is in the first class or economy section of the plane. Use a single-subscripted array to represent the seating chart of the plane. Initialize all the elements of the array to 0 to indicate that all seats are empty. As each seat is assigned, set the corresponding elements of…An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance premium, based on driver's age and the number of accidents that the driver has had. The basic insurance charge is 500 Rs. There is a surcharge of 100 Rs if the driver is under 25 and there is an additional surcharge for accidents as can be seen below: No. of accidents Accident Surcharge 1 50 2 125 3 250 4 375 5 575 6 or more No insurance
- An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance premium, based on driver's age and the number of accidents that the driver has had. The basic insurance charge is 500 Rs. There is a surcharge of 100 Rs if the driver is under 25 and there is an additional surcharge for accidents as can be seen below: No. of accidents Accident Surcharge 1 50 2 125 3 250 4 375 5 575 6 or more No insurance Note: Use switch cases when you check the total number of accidents.Problem: A small company needs an interactive program to compute an employee’s paycheck. The payroll clerk will initially input the data, and given the input data, an employee's wage for the week should be displayed on the screen for the payroll check. The data for the employee includes the employee's hourly pay rate and the number of hours worked that week. Wage is equal to the employee's pay rate times the number of hours worked (up to 40 hours). If the employee worked more than 40 hours, wage is equal to the employee's pay rate times 40 hours plus 1½ times the employee's pay rate times the number of hours worked above 40. Instructions: Match the action at the left-side with the correct step number at the right-side (the attached picture). Note that it may be possible to group more than one related actions in the same logical step / process without altering the essence of the algorithm. In the program flow, input and checking of hourly pay rate should come before that of the number…Requirements You are required to write a program that calculates and prints the bill for Viti Telephone Company. The company offers two types of services: regular and premium: its rate very depending on the type of service. The rates are computed as follows: Regular Service $10.00 plus first 50 minutes are free. Charges for over 50 minutes are $0.20 per minute Premium Service $25.00 plus Calls made from 6.00 AM to 6.00 PM, the first 75 minutes are free and charges over 75 minutes are $0.10 per minute. For Calls made from 6.00 PM to 6.00 AM, the first 100 minutes are free and charges for over 100 minutes are $0.05 per minute. Your program should prompt user to enter an account number, a service code (type char), and the number of minutes service was used. A service code of r or R means regular service; a service code p or P means premium service. Treat any other character as an error. Your program should output the account number, type of service number of minutes the telephone was used…
- Airline Reservation System A small airline has just purchased a computer for its new automated reservations system. The president has asked you to program the new system. You are to write a program to assign seats on each flight of the airline's only plane (capacity: 10 seats). Your program should display the following menu of alternatives: Please type 1 for "first class" Please type 2 for "economy" If the person types 1, then your program should assign a seat in the first class section (seats 1-5). If the person types 2, then your program should assign a seat in the economy section (seats 6-10). Your program should then print a boarding pass indicating the person's seat number and whether it is in the first class or economy section of the plane. Use a single-subscripted array to represent the seating chart of the plane. Initialize all the elements of the array to 0 to indicate that all seats are empty. As each seat is assigned, set the corresponding elements of the array to 1 to…python Write a split_check function that returns the amount that each diner must pay to cover the cost of the meal. The function has 4 parameters: bill: The amount of the bill. people: The number of diners to split the bill between. tax_percentage: The extra tax percentage to add to the bill. tip_percentage: The extra tip percentage to add to the bill. The tax or tip percentages are optional and may not be given when calling split_check. Use default parameter values of 0.15 (15%) for tip_percentage, and 0.09 (9%) for tax_percentage. Sample output with inputs: 25 2 Cost per diner: 15.5 Sample output with inputs: 100 2 0.075 0.21 Cost per diner: 64.25ASSIGNMENT: You are working for a lumber company, and your employer would like a program that calculates the cost of lumber for an order. The company sells pine, fir, cedar, maple, and oak lumber. Lumber is priced by board feet. One board foot equals one square foot that is one inch thick. The price per board foot is given in the following table: Pine 0.89 Fir 1.09 Cedar 2.26 Maple 4.50 Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). An entry from the user will be in the form of a letter and four integer numbers. The integers are the number of pieces, width, height, and length. The letter will be one of P, F, C, M, O (corresponding to the five kinds of wood) or T, meaning total. When the letter is T,…