Internet Service provider 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 using c++ 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.
Q: What will be the output of the given program class A { } int m=20, n=30; void display() {…
A: 1class A 2{ 3 int m=20,n=30; 4 void display() 5{ 6System.out.println(m); 7 8} 9} 10 11class B…
Q: What is an operating system for desktop computers? ChromeOS, Linux, macOS, and Windows are the…
A: Operating systems (OS) are the intermediary between computer hardware and the users interact with…
Q: What does it mean for a computer to be "reduced" when it only has a limited amount of instructions?
A: The Instruction Set Architecture (ISA) is a fundamental component of computer architecture visible…
Q: What would be the outcome if we were to focus on the development of the central processing unit…
A: The focus on developing the Central Processing Unit (CPU) while neglecting the implementation of a…
Q: The susceptibility of traditional email to a denial of service attack can manifest through various…
A: Attacks known as "Denial of Service" (DoS) on conventional email systems have the potential to…
Q: Differentiate between the Core i3 and ARM architectures?
A: The question pertains to the comparison between the Core i3 and ARM architectures, both of which…
Q: ★ preLabC.java 1- import java.util.Random; 2 import java.util.StringJoiner; 3 4- public class…
A: Algorithm:Implement a constructor in the MathVector class that initializes the array with the given…
Q: When and why do we need distributed data processing?
A: Distributed data processing is a computing paradigm that involves processing and analyzing vast…
Q: Colorlib Contact Form Contact us for custom quote Your name Your Email Address Your Phone Number…
A: Download the Colorlib Contact Form template from the Colorlib website.Extract the downloaded ZIP…
Q: Why are computer architecture's top eight ideas important
A: Computer architecture:Computer architecture refers to the design and organization of the components…
Q: Which fibre is utilised to protect the inner core and prevent the cable from straining in…
A: In fiber-optic cabling,The inner core, which carries the optical signals, is typically protected by…
Q: When flushing a block from the write buffer to main memory, what should happen if the processor…
A: Cache hitWhen data that an application or component has requested for processing turns up in the…
Q: MISD machines are systolic arrays. Systolic arrays are "wavefronts" or pipeline networks of data…
A: The MISD, or Multiple Instruction Single Data architecture, is one of the classifications under…
Q: Please include concrete instances when discussing data manipulation, forgery, and online jacking.?
A: Data manipulation refers to the unlawful alteration of data. A concrete instance of this is the 2016…
Q: The role of Service-Oriented Architecture (SOA) in the design of web applications. What are the…
A: Service-Oriented Architecture (SOA) plays a crucial role in the design of web applications. It is a…
Q: When conducting a search for data within a database, it is common practice to specify the field…
A: A database is a structured collection of organized and interconnected data, stored and managed in a…
Q: For this assignment, you will use the Visual Studio Code (VS Code) IDE to compile and run a C#…
A: Define the Vehicle base class: a. Define class properties for Wheels, Color, Moving, and Seats with…
Q: In what manner do structures and classes perform separate functions?
A: In object-oriented programming, structures and classes are used to define custom data types and…
Q: Please provide an explanation of the concept of "cloud scalability." The scalability of cloud…
A: Cloud scalability refers to the ability of a cloud computing system or service to handle an…
Q: Here is a comparison and contrast of some of the most widely used server operating systems?
A: When it comes to server operating systems, there are several widely used options available. Each of…
Q: As of right now, the only kind of network interface that is commercially available is a wireless air…
A: Wireless air interfaces, such as cellular networks, are commonly used to connect phones, antennas,…
Q: Assume that a computer system is having 4-page frames for holding process pages in the main memory.…
A: Operating system uses paging for memory management. The page replacement policy decides which page…
Q: An operating system's risk. What else can you say?
A: Operating systems play a critical role in managing computer resources and providing a platform for…
Q: To put it another way, what are the key differences between a native app and a web app?
A: There are two different methods for creating and distributing applications to users: native apps and…
Q: Second picture is an example when the program is executed. Note: Please use "for loop", "while…
A: Logic :- (I) To generate random number in range:- arr[i][j]= Min + (int)(Math.random() * ((Max -…
Q: 1. Consider the following P = (P1, P2, P3, P4, P5} R = {R1, R2, R3, R4} E = (P3 R1, P2-R2, R4→P4, R2…
A: P={P1,P2,P3,P4,P5}R={R1,R2,R3,R4}E={P3R1,P2R2,R4P4,R2P1,P5R3,P3R4,R1P3,R4P2,R3P3,P1R4,R1P5,P4R1}
Q: 4. The Fibonacci series: 0, 1, 1, 2,3,5,8,13,21... begins with terms 0 and 1 and has the property…
A: As the question says Fibonacci series starts with 0 and 1. Each succeeding term is the sum of the…
Q: Please provide a description of the software development process metrics you have discovered.…
A: The measurement of software development processes via quantifiable indicators, or metrics, offers a…
Q: The npm command refers to the Node Package Manager command, which is a command-line tool used for…
A: The npm command, standing for Node Package Manager, is a crucial tool in the Node.js environment,…
Q: Suppose the structure of a Red-Black tree is summarized as in the following table: Node Color Left…
A: Red-Black Tree is a type of Binary Search Tree that uses a color either RED or BLACK to denote every…
Q: What are some of the key differences between software components and software services?
A: Software Components and Software Services are both fundamental building blocks in software…
Q: Which variable establishes the minimum amount of needed computer instructions for each source-level…
A: The variable that establishes the minimum amount of needed computer instructions for each…
Q: The significance of software engineering and quality assurance should not be disregarded by the…
A: The significance of software engineering and quality assurance cannot be overstated in the context…
Q: What elements should you include while creating a web application?
A: An the insightful and user-easy interface should be paramount when launching the web use. This opens…
Q: hich of the following statements is true about data warehouse integration systems and virtual data…
A: Data warehouse integration systems and virtual data integration systems are two architectures for…
Q: What separates computers designed for general-purpose use from those designed specifically for…
A: Computers are present in various shapes and sizes, and their design is driven by their intended…
Q: Are the problems with firewalls that impact Voice over Internet Protocol (VoIP) the same as those…
A: => Voice over Internet Protocol (VoIP) is a technology that allows the transmission of…
Q: What is the precise definition and function of SDN controllers?
A: SDN (Software-Defined Networking) controllers are a key component of Software-Defined Networking…
Q: In order to keep the size of the page the same, what other aspects than the program itself may be…
A: To keep the size of a page the same while introducing new content or a larger program, you can…
Q: are the benefits and cons of connecting all of your devices to the cloud
A: In the above question, you asked about the benefits and drawbacks of connecting all user devices to…
Q: Several approaches can detect network faults. Explain your workstation connectivity and performance…
A: Workstation connectivity and performance troubleshooting is the process of identifying and resolving…
Q: The performance of microcomputers can potentially be enhanced through the utilization of expansion…
A: Microcomputers, or personal computers, are compact and less expensive than larger computer systems.…
Q: In what ways do the Whetstone, Dhrystone, and Linpack difficulties become addressed by the SPEC CPU…
A: Performance measurement methods like the Whetstone, Dhrystone, and Linpack benchmarks are employed…
Q: 1. Consider the following P = {P1, P2, P3, P4, P5} R = {R1, R2, R3, R4} E = {P3-R1, P2-→R2, R4→P4,…
A:
Q: If your corporate mail server tells you that your password has changed, verify it. The password…
A: In today's digital landscape, maintaining the security of corporate email servers is crucial to…
Q: The implementation of Windows Services involves the utilization of specific mechanisms and protocols…
A: The answer is given below step.The implementation of Windows Services involves the utilization of…
Q: If your employer's mail server tells you that your password has changed, verify it. The password…
A: The question at hand pertains to a situation where an individual has received a notification…
Q: In the context of a company, the determination of the appropriate placement of the information…
A: Stakeholder engagement is paramount when determining the appropriate placement of the information…
Q: whether the Internet can sustain two separate kinds of application support services. These services…
A: The question asks whether the Internet can sustain two different types of application support…
Q: Q2: Write a MIPS assembly program that computes an employee's monthly salary. The program should…
A: 1.data 2prompt: .asciiz "Enter the number of hours worked: " 3salary: .asciiz "The monthly salary…
C++
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Internet Service provider 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 using c++ 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.C++ Write a program to help a local restaurant automate its breakfast billing system. The program should do the following: Show the customer the different breakfast items offered by the restaurant. Allow the customer to select more than one item from the menu. Calculate and print the bill. Assume that the restaurant offers the following breakfast items (the price of each item is shown to the right of the item): food Price Plain Egg $1.45 Bacon and Egg $2.45 Muffin $0.99 French Toast $1.99 Fruit Basket $2.49 Cereal $0.69 Coffee $0.50 Tea $0.75 Use an array menuList of type menuItemType, as defined in Programming Exercise 3. Your program must contain at least the following functions: Function getData: This function loads the data into the array menuList. Function showMenu: This function shows the different items offered by the restaurant and tells the user how to select the items. Function printCheck: This function calculates and prints the check. (Note that…Pakistan online Daraz company has four agent (1 to 4) who sell 5 different products ( 1 to5). Once per day, each agent passes in a slip for each different type of product sold. Every agentpasses in between 0 to 5 slips each day. Each slip has the following information on it: The agent number The product number Total rupees of that product sold that day.Write a program in C++ that will read all this information for last month’s sales and brief thetotal sales by agent by product. The output should be in tabular form.
- C++ Programming Exercise: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: a. The total number of of units. b. The rent to occupy all the units. c. The increase in rent that results in a vacant unit. d. Amount to maintain a rented unit. The program then outputs the number of units to be rented to maximize the profit.Using c++ 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 inpatient or an outpatient. If the patient was an inpatient, 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 outpatient, 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 reentered 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 inpatient data, while the other function accepts arguments for outpatient data. Both functions should return the total chargesIn C++, write a program that calculates and prints a monthly paycheck for an employee. The net pay is calculated after taking the following deductions from the employee's gross salary: Federal Income Tax: 17.5% State Tax: 9.1% Social Security Tax: 6.2% Medicare Tax: 1.45% Retirement Plan: 9.29% Health Insurance: $51.48 Life Insurance: $3.71 Your program will prompt the user to input the employee ID, the employee name, and the employee's monthly gross salary. The program will calculate the deductions listed above, along with the percentage of take home pay (defined as the net pay divided by the gross salary). After calculating each deduction and percentage, the output will be printed to the screen (see example output below). Requirements All decimal numbers must be formatted to 2 decimal places. Ask for the employee's ID first, then full name (can include spaces), then the salary. The prompt to enter the salary must include the employee name. The employee ID MUST be…
- Mobile Service ProviderA mobile phone service provider has three different subscription packages for itscustomers:Package A: For $39.99 per month 450 minutes are provided. Additional minutes are$0.45 per minute.Package B: For $59.99 per month 900 minutes are provided. Additional minutes are$0.40 per minute.Package C: For $69.99 per month unlimited minutes provided.Write a program that calculates a customer’s monthly bill. It should ask which packagethe customer has purchased and how many minutes were used. It should then displaythe total amount due.Input Validation: Be sure the user only selects package A, B, or C.write a program c++ A General Service company hired you to write a program to compute the total charge for the services rendered to their client. The program will ask first if there is a material needed or not. If there is, the program will ask if what material is needed. The program will then ask for the cost of that materials entered and the number of hours of the services rendered. Finally, the program will compute for the labour cost and the total charge. Assumption: Rate Computation: Labour : Total Charge Materials: 1.) Electricals 2.) Electronics 3.) Construction 4.) Sanitary $45.00 per hour Rate * hours work : Labour + Cost of MaterialsWrite a c++ program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions: Federal Income Tax: 18.5% State Tax: 4.5% Social Security Tax: 6.30% Medicare/Medicaid Tax: 2.3% Pension Plan: 6% Health Insurance: TL 175.00 Your program should prompt the user to input the gross amount and the employee name. Format your output to have two decimal places. A sample output follows: Emre Taha Gross Amount: .. TL 3500.00 Federal Tax: Stațe Tax: Social Security Tax: Medicare Tax: Pension Plan: Health Insurance: Total Deductions: TL 647.50 TL 157.50 TL 220.50 80.50 TL TL 210.00 TL 175.00 TL 1491.00 Net Pay: TL 2009.00 Note that the first column is left-justified, and the second column is right-justified.
- Create a c++ program that asks an employee the following questions: Employee name Employee ID Employee department Number of absences in a month Number of late in a month Let's say that an average employee needs to have 24 days of no late and no absent attendance in a month to earn his/her full salary of 24,000 1 late = 200 pesos deduction 1 absent = 1000 pesos deduction The program would then compute the total salary of the employee based from the information that he/she entered Example output: Please enter your name: Gerard Bautista Please enter your Department: IT Please enter number of lates: 3 Please enter number of absences: 2 Output: Gerard Bautista from IT department has an equivalent of 3 lates and 2 absences. His total earning for the month is 21400.Q2: Write a program in C++ to read ten students' name and degrees then calculate the average degree for each student if all his degrees above or equal 50. If a student has a degree less than 50, do not calculate the average degree for him. then print the result as shown below: Ahmed Ali Degrees= Math Drawing. 66 66 Ali Assad Degrees= Math Drawing........ 40 50 Name Result Average Ahmed Ali Pass 66 Ali Assad Not pass Note: each student has 7 classes.In C++ Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%.Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000.Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information:Marital statusIf the marital status is “married,” ask for the number of children under the age of 14Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.)Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions:Function getData: This function asks the user to enter the…