2. Suppose you have a group of people who need to be transported on buses and vans. You can charter a bus only if you can fill it. Each bus holds 50 people. You must provide vans for the 49 or fewer people who will be left over after you charter buses. Write a complete program that accepts a number of people and determines how many buses must be chartered and reports the number of people left over that must be placed on vans. User input can be any content and it's bold and italicized for clarity. Example Output 1: How many passengers are there? 166 There will be 3 buses with 50 and 16 people riding in vans. people on each bus Have a nice trip!
Q: What are the three fundamental elements of cloud computing?
A: Clients: Clients are end users who wish to use cloud computing services such as storage and business…
Q: Take the term "snapshot isolation" as an illustration of what a database for an airline would look…
A: Database System: When designing a database system for an airline, you might want to think about…
Q: Define web security suites.
A: Web Security Suites have rich products with a wide range of security tools. As the name implies,…
Q: It's possible that educating a buddy about the ARP protocol may be useful. Describe not just the…
A: The majority of the PC programs/applications utilize coherent location (IP address) to send/get…
Q: Do you have a working knowledge of the concepts "static" and "function"?
A: Java Programming Language Java is an object-oriented programming language that allows developers to…
Q: Describe the many classifications that computer systems fall into.
A: Introduction The main components of a computer system are the central processing unit (CPU), main…
Q: Define search engines, spiders, and search services.
A: Introduction: ExplanatioThere are over 20 million pages on the internet now, with more being added…
Q: List the benefits and drawbacks of utilising the star schema rather than the snowflake paradigm.…
A: Given: Create a table comparing the star schema to the snowflake design and listing the benefits and…
Q: List two different types of email systems.
A: Email System The email system is an Internet-based network of computers that handles electronic…
Q: What is the distinction between network media bandwidth and throughput?
A: A network is the interconnection of two or more devices forming a link so that they can pass…
Q: Describe the many categories of available computing devices.
A: Introduction: Desktops, laptops, computers, and smartphones or tablets are examples of computing…
Q: There is no limit to the number of arguments that may be put into a catch block.
A: Handling of exceptions: A common kind of error that a programmed could encounter is a logical error,…
Q: A systems architect must understand computer-related technology. What is your reasoning?
A: Intro Because making modifications to any aspect of a given architecture requires a strong…
Q: Utilizing ordered English is absolutely necessary whenever one is engaged in the endeavour of…
A: Here is the solution:
Q: Is it possible to make an educated guess as to the factors that to information system design scope…
A: Introduction: Information System Design is used to accomplish the work of developing an information…
Q: The operating system of a computer may be used to generate, examine, and manage the files and…
A: A file is collection of specific information stored in the memory of computer system. Operating…
Q: What is the most significant distinction that can be made between procedural programming and…
A: What is the most significant distinction that can be made btw procedural programming and object…
Q: Antivirus Software That Is OutdatedWhen you try to update your antivirus programme, an error message…
A: Introduction: Antivirus software: Antivirus software is often used to defend computers and mobile…
Q: What are some of the key characteristics that set object-oriented programming apart from other…
A: Answer: Object-Oriented Programming (OOP) is a kind of programming that solves issues by using…
Q: What should you look for when doing a comparison between bytecode and assembly language?
A: Bytecode: Bytecode, like machine code, is a reduced binary language. The bytecode specification…
Q: 192.67.200.1 in Hexadecimal is: FF:23:C7:01 CA:D3:C8:01 C0:43:C8:01 C0:67:C8:01 C0:43:C8:10
A: IP Address: An IP address is a logical numeric address that is assigned to every computer, printer,…
Q: In the process of developing the interface for the SoS, how important is it to ensure that users…
A: Introduction: To consider the four sub objectives, the social adage "uniform interface" was used:
Q: Using import sys as the to input the arguments, Create a program, change.py, that has a function…
A: Question- def Calculate(): Number=int(input("Number of $1 bills : ")) quarter=int(input("Enter…
Q: What are the two most typical kinds of files that people use? What distinguishes these two file…
A: File management system: A file management system is used. For file management or maintenance, It is…
Q: List three benefits of laser printers versus inkjet printers.
A: Below is the answer for given question:
Q: . What is the difference between a smooth model and a layered model in the context of VES modelling?
A: Answer: The smooth model and the layered model are the two varieties of models that may be used in…
Q: If a systems analyst were to work in either an environment where generic CASE tools or an integrated…
A: Analyst for computer systems: A system analyst is in charge of handling data gathered from his or…
Q: Q3/A- Estimate the result when you execute the following code by using Qbasic programming For m take…
A: Here is the result:
Q: Examine and discover issues related to the steganalysis process.
A: The method involved with identifying steganography by checking out changes between bit designs and…
Q: What are the distinctions between a type 1 and a type 2 hypervisor? Name one example and describe…
A: Answer: The differences between a type 1 hypervisor an a type 2 hypervisor are as follows:- A…
Q: Explain any two features that can enhance a hub's intelligence.
A: Answer: As a multiport repeater, a hub is similar to that. In a star architecture, for example, a…
Q: explain shadow bank and provide examples
A: Shadow banking is a term used to describe activities such as banking (especially borrowing) that…
Q: What characteristics define a solid plan of backup action? The process of backing up your mobile…
A: Given: It is a traditional computer that stores information in bits with values ranging from 0 to 1.…
Q: What are the advantages, disadvantages, and opportunities for future progress that come with storing…
A: Given: Cloud computing is the process of storing and accessing data and computer resources through…
Q: Communications between the field devices and field controllers are the same as separate from the…
A: Communications between the field devices and field controllers are separate from the command and…
Q: The files on your computer may be accessed in a number of different ways. In each scenario, what are…
A: Introduction: The following are the primary methods for accessing files: The process of organizing…
Q: Network Segmentation Problems with Large Broadcast Domains Q1) A network has an IP address…
A:
Q: Classification approaches based on vector spaces are often ineffective for problem sets with only…
A: Given: The contiguity hypothesis serves as the foundational premise for the application of the…
Q: Why did Radio Shack be the first to mass-market a microcomputer as a personal computer?
A: Data General Corporation
Q: What are the steps that need to be taken so that the computer can search the CD-ROM for the…
A: The process of starting a computer is known as booting. It can be activated by either hardware, such…
Q: What are the drawbacks of using a programming approach that is procedurally-oriented?…
A: Object-oriented programming: Procedural programming is a programming paradigm evolved from…
Q: I'm quite interested in learning the definition of "association class."
A: Enrollment is an association class that further specifies the link between the Student and Course…
Q: What is parametric polymorphism in a subprogram, and can you offer an example with an explanation?
A: Introduction: Parametric polymorphism is a programming language method that allows for the general…
Q: The Unix SVR4 Two-Handed Clock Page Replacement algorithm should be explained and shown.
A: A finger is pointing to the earliest page. When a page fault occurs, the page to which the hand is…
Q: What value determines which image from the ImageList is shown in a PictureBox, and how is this value…
A: Image List: This is a control component that enables you to store the number of photos that are…
Q: Instead of using a systems analysis to explain the processes, you may want to think about using…
A: The following are some of the advantages of static analysis: It facilitates the identification of…
Q: 3) What will be the contents of BX after the following instructions execute? mov bx, 5 stc mov ax,…
A: 8086 multiprocessor it is the microprocessor which is the enhanced version of the 8085…
Q: It is the attribute of a control, much as it is the attribute of other controls, that decides…
A: Start: Attribute Control Charts are a subset of control charts that were created with the goal of…
Q: What kind of an effect has the algorithm for removing files had on the operating systems used by the…
A: Overview: Symbian is a defunct mobile operating system (OS) and computing platform that was designed…
Q: Please provide an explanation of the various data type classifications for integrals.
A: Explanation: Data types that are integral include all whole numbers, which are defined as numbers…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Please code in c++
Step by step
Solved in 2 steps with 4 images
- An Internet service provider has three different subscription packages for its customers:Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00per hour.Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00per hour.Package C: For $19.95 per month unlimited access is provided.Write a program that calculates a customer’s monthly bill. It should ask the user to enter theletter of the package the customer has purchased (A, B, or C) and the number of hours thatwere used. It should then display the total charges. Please program in C++ Requirements: Please include a Flowchart and the pseudocode for your programIn python Programming, Suppose you have four dogs named Leo, Tom, Jerry, and Jack, and four dog food bowls labeled 1, 2, 3, and 4. Each bowl can hold up to sixteen scoops of food and each dog chooses a separate bowl, but it doesn't matter which dog uses which bowl. For their dinner each day, you distribute sixteen scoops of dog food into the bowls, so each bowl will receive a whole number units of food. You are pretty careless, and you sometimes leave some bowls empty. If you always put out the full sixteen units of food each day, how many ways can you distribute the food among the four bowls?A place to buy candy is from a candy machine. A new candy machine is bought for the gym, but it is not working properly. The candy machine has four dispensers to hold and release items sold by the candy machine and a cash register. The machine sells four products — candies, chips, gum, and cookies—each of which is stored in a separate dispenser. You have been asked to write a program for this candy machine so that it can be put into operation. The program should do the following: Show the customer the different products sold by the candy machine Let the customer make the selection Show the customer the cost of the item selected Accept money from the customer Return change Release the item, that is, make the sale Note: java programming, please used given outline code //Implement the blueprint of the Candy Machine import java.util.*; public class CandyMachine { // Each candy machine is made of 1 CashRegister and 4 Dispensers CashRegistercashRegister; Dispensercandy;…
- An Internet service provider has three different subscription packages for its customers: Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour. Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package C: For $19.95 per month unlimited access is provided. Write a program that calculates a customer’s monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should then display the total charges. Requirements: Please include a Flowchart and the pseudocode for your program and use Visual BasicPython Programming. Write a program that computes how much a customer has to pay after purchasing two items. Make the lower-priced item half price. If the two items have identical prices, you can make one or the other half price. The price is calculated according to the following rules:• Buy one get one half off promotion: the lower price item is half price.• If the customer is club card member, additional 10% off.• Tax is added. Inputs to the program include:• Two items’ prices• Have club card or not (User enters ‘Y’ or ‘y’ for “yes”; ‘N’ or ‘n’ for “no”)• Tax rate (User enters the percentage as a number; for example, they enter8.25 if the tax rate is 8.25%) Program displays:• Base price - the price before the discounts and taxes• Price after discounts - the price after the buy one get one half off promotionand the member’s discount, if applicable• Total price – the amount of money the customer has to pay (after tax)printed with the precision of 2 decimal digits. Hint: In order to…An Internet service provider has three different subscription packages for its customers: Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour. Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package C: For $19.95 per month unlimited access is provided. Write a program that calculates a customer’s monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should then display the total charges. Using Visual Basic I need help finishing this code this is what I got so far Dim decpackageA As DecimalDim decpackageA1 As DecimalDim decpackageB As DecimalDim decpackageB1 As DecimalDim decpackageC As DecimalDim inthours_worked As IntegerDim dectotal_chargespackageA As DecimalDim dectotal_chargespackageB As DecimalDim dectotal_chargespackageC As DecimalDim dbltotal_charges As Double 'Assign the textbox…
- 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. Theprice per board foot is given in the following table: Pine 0.89Fir 1.09Cedar 2.26Maple 4.50Oak 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, 4 inches 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, there are no…The Research team led by Bernadette Wolowitz at Cal-tech University has discovered a new Amoeba that grows in the order of a Fibonacci series every month. They are exhibiting this amoeba in a national. conference. They want to know the size of the amoeba at a particular time instant. If a particular month's index is given, write a program to display the amoeba's size. For Example, the size of the amoeba on month 1, 2, 3, 4, 5, 6,... will be 0, 1, 1, 2, 3, 5, 8.... respectively.Write a program to calculate the grade point average (GPA) of a student by getting their grades for all their subjects. Grades and their grade points areGrade S 10 pointsGrade A 9 pointsGrade B 8 pointsGrade C 7 pointsGrade D 6 pointsGrade E 5 pointsGrade F 0 pointsThe program should input the number of subjects, followed by the grade obtained in each subject. The program should calculate the average of the grade points and print it.
- A parking garage charges a $2.00 minimum fee to park for up to three hours andan additional $0.50 per hour for each hour or part thereof over three hours. Themaximum charge for any given 24-hour period is $10.00. Assume that no car parksfor longer than 24 hours at a time. Write a program that will calculate and print theparking charges for each of three customers who parked their cars in this garageyesterday. You should enter the hours parked for each customer. Your programshould print the results in the below format, and should calculate and print thetotal of yesterday's receipts. The program should use the functioncalculateCharges to determine the charge for each customer.3) Suppose an airline company has hired you to write a program for choosing the passengers who should leave an overbooked flight. That means the airline has booked too many passengers hoping some of them would not show up on time, but passengers are on board and the aircraft doesn't have enough seats available for all these passengers. Your program chooses the passenger who must leave the flight. Passengers will be ranked based on the fare they have paid for booking (a double number called fare), and their number of loyalty points (an integer number called points). Fare and points are equally important, that means, in order to decide the position of each passenger in the list, fare and points each have 50% importance. A Person with minimum priority (combination of fare and points) will leave the flight. You need to define a class called Passenger with these member variables: passenger's name • fare points. Passenger class must have 3 accessors, 3 mutators, a constructor with three…Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an in-patient or an out-patient. If the patient was an in-patient the following data should be entered: • The number of days spent in the hospital• The daily rate• Charges for hospital services (lab tests, etc.)• Hospital medication charges.If the patient was an out-patient the following data should be entered:• Charges for hospital services (lab tests, etc.)• Hospital medication charges.Use a single, separate function to validate that no input is less than zero. If it is, it should be re-entered before being returned.Once the required data has been input and validated, the program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the in-patient data, while the other function accepts arguments for out- patient data. Both functions should return the total charges.