Please program in C++
Q: Question Consider a language defined over E={a,b} that accepts the strings starting with a. a. Give ...
A: Actually, program is an executable software that runs on a computer.
Q: Create a java program 1. Broken Record Looping strings works like playing a broken record – it repea...
A: Program explanation: Import the Scanner class Define a public class to implement the logic asked ...
Q: Write an anonymous block to read two numbers from the keyboard, then find out what's the maximum bet...
A: Code: declare a number; b number;begin a:= &a; b:= &b; if a>b then dbms...
Q: Draw a flowchart that takes a number input from the user and checks if the number is even. If even i...
A: Flowchart:- It is a pictorial or diagrammatic representation of an algorithm using standard symbol...
Q: 11. In this problem you need to simulate part of a Yahtzee game. This turns out to be more complicat...
A: Solution:-- 1)The given question has required for the solution to be provided with the help of the...
Q: 3. Translate the following instruction to the equivalent vertic a. E := A-C
A: Due to company policies I am compelled to solve only one question and that is the first question. Pl...
Q: What can you say on the authentication and identification function? What is most useful?
A: Authentication: The process of establishing your identification or guaranteeing that someone or some...
Q: For each customer who has a post-paid service, show how many of these customers have opted to have ...
A: COUNT(): The COUNT() function calculates the number of items that meet a given set of criteria. Synt...
Q: Description of GetConsoleOutputCP function is required here.
A: INTRODUCTION: The console output for the specified instance is retrieved. The instance console outp...
Q: Write methods to insert node at beginning insert node at end insert after postion
A: “Since you have posted a question with multiple sub-parts, we will solve first three subparts for yo...
Q: Computer Science Consider a two-task system where each preemption has an overload of x. Given C1, C2...
A:
Q: Project Requirements Due week 8 (Mar 9) – 20% You are given a database containing Customer, Service,...
A: Due to company policies I am compelled to solve only 1 question that is the first question. Please p...
Q: Wireless
A: Given :- The list of assets is mention in the above given question Need to write the asset's categ...
Q: ain how communication occurs across a local Ethernet network? You must include detail on the Etherne...
A: Lets see the solution.
Q: 4. Write a C program to print the following characters in a reverse way. Go to the editor Test Chara...
A: Code: #include <stdio.h> int main() { char char1 = 'X'; char char2 = 'M'; char char...
Q: Use the Monte Carlo method to estimate the following. 1 1. lo' exp(exp(x)) dx 2. E(N) where N is def...
A: Given The answer is given below.
Q: The question is whether society has become too reliant on computer applications for commerce, commun...
A: It is arguably true that the society has become too reliant on computer applications. If we look aro...
Q: Note down the drawbacks of Cohen-sutherland Line Clipping Algorithm.
A: INTRODUCTION: An technique called the Cohen Sutherland Algorithm is used to trim lines to segments ...
Q: Write a program in C that will add the numbers from 1 up to and including a given positive integer, ...
A: In this question we are asked to write a program in C which returns the add of numbers which are not...
Q: ive at least two example questions you would want to answer as an analyst that relates to Inu + Neko...
A: Lets see the solution.
Q: Write a SELECT statement that returns two columns based on the EMPLOYEES table. Contact, is the empl...
A: SELECT CONCAT(LastName," ",substring(FirstName,1,1)) as CONTACT, HomePhone as Phone FROM EMPLOYEES W...
Q: What is cold email software and how does it work
A: SUMMARY: -Hence, we discussed all the points.
Q: ontrast and compare an application programming interface (API) and an application binary (ABI)
A: It's worth noting that the word 'interface' appears in its name. An API is a type of interface, but ...
Q: What is the meaning of deep web and dark web? In your opinion which is more advantageous the dark we...
A: What is the meaning of deep web and dark web? In your opinion which is more advantageous the dark ...
Q: Write a function called multiplyMe in c programming which has a variable number of integers as argum...
A: Algorithm: Start Read number of elements n Read n numbers in an array Implement a method named mult...
Q: 2. For the following pairs of functions, determine which function grows faster. f(z) = 6r3 – 5a2 +9,...
A: As we know if limit extends to infinite f(x)/g(x) = 0 ==> g(x) grows faster if limit extends to ...
Q: Fault management, performance management, and security management are all terms that are used interc...
A: INTRODUCTION: FAULT MANAGEMENT: It is the fault management's role to identify and disconnect faulty ...
Q: Which statement describes a way of facilitating VLAN trunking? a. The VLAN number is contained in a...
A: VLAN stands for virtual local area network, this is used to enables the movement of traffic to the d...
Q: What is Communication in ICT?
A: It is defined as Information and communications technology (ICT) which refers to all the technology ...
Q: Instruction: Write a VB.Net Program that will use a function to identify the highest value based on ...
A: Start Take the three numbers as input. Find the largest number Print the result Stop
Q: Explain in short how we can determine the position of a 2-dimensional point using the region code.
A: Here ,we explain about in short how we can determine the position of a 2-dimensional point using the...
Q: In computer memory, what are the three main types of data?
A: In computer memory, what are the three main types of data:-
Q: Python program to check whether a number is Prime or not?
A: Algorithm: Start Read a number n Initialize flag to False Iterate through the loop from i=2 to i=sq...
Q: What is data mining and how does it work? Compile a list of data mining tasks?
A: Introduction: Data mining is the process of collecting information from data by identifying patterns...
Q: Design a combinational circuit that accepts a 4-bit number and generates a 3-bit binary number outpu...
A: Sequential model: This NAND gate is a physical circuit during which the output is determined by the ...
Q: 1. Write a Verilog code to design a clock with period = 100 ns and a duty cycle of 35% by using alwa...
A: Please refer below for code as well as initial and always in verilog: 1) always: By using always sta...
Q: Create a remediation plan to map vulnerabilities and risks found to appropriate remediation efforts....
A: arrow_forward Step 1 Lets see the solution. arrow_forward Step 2 Infrastructure Operations (IO) Secu...
Q: 3. Practice on the following NumPy functions to create arrays mun Numpy functions your code: Upe svi...
A: Python code for the given NumPy functions import numpy as np a = np.zeros(2, dtype = int)print("Mat...
Q: Write a PYTHON Script to find y from the below equations depending on your entry. tan(4)-cos (0) sin...
A:
Q: Show how the binary search algorithm searches for 25 in the sorted list below: 4 6 17 25 32 39 41 43...
A: In binary search algorithm you first need a sorted array. The above is sorted so we can perform bina...
Q: 1. Describe three situations where combined counting and logical looping statement is need. 2. Desc...
A: Answer 1: Counting and logical control loops may be used in the following situations: 1. Summing up ...
Q: Design a code converter that converts a decimal digit from the 8, 4, -2, -1 code to BCD
A:
Q: Annotated Bibliography (APA) List ten sources (APA) To inform college students on how to pre...
A: APA clarified list of sources An explained book index is an extraordinary sort of catalog that gives...
Q: c++ language, predict the output
A: 10 5 610 10 20
Q: Write 20 examples of variable declaration
A: Note:- No programming language is mentioned in the question that's why I consider the c++ programmi...
Q: Let's say that B is an array with a size of n > 6 that has integers from 1 to n-5, inclusive, in it....
A: Introduction: Complexity of algorithms: There are various methods for calculating algorithm complexi...
Q: Encrypt the message ‘STOP’ using the RSA system with n = 53 • 61 and e = 17
A: INTRODUCTION: We are all aware that the RSA algorithm is a public essential encryption technique tha...
Q: 2. Create a 2D array that resembles the matrix below. [[21 22 23 24] [25 26 27 28]] Find out the sha...
A: Code: import numpy as npa = [[21, 22, 23, 24],[25, 26, 27, 28]]array = np.array(a)print("array: ",ar...
Q: Encrypt the message ‘STOP’ using the RSA system with n = 53 • 61 and e = 17.
A:
Q: Implement and test a genetic algorithm method to approach TSPs. Solve in Python3. Solve for number o...
A: Discuss genetic algorithm method to approach . Solve in Python3. Solve for number of generations,...
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.
Please program in C++
Requirements: Please include a Flowchart and the pseudocode for your program
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first months interest on $1,000 is 1000 0.006 = 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 6 = 19. This means after making the first payment, the loan amount is 1,000 19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 0.006 = 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 5.89 = 19.11 and the remaining balance after the second payment is 981 19.11 = 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then outputs the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first months interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)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 BasicAn 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…
- An International Internet phone company has three different subscription packages for its customers:Package A: For $9.95 per month 5 hours of call time are provided. Additional usage costs $0.08 per minute.Package B: For $14.95 per month 10 hours of call time are provided. Additional usage costs $0.06 per minute.Package C: For $19.95 per month unlimited call time is provided.Write a program that calculates a customer’s monthly bill. It should input customer name, which package the customer has purchased, and how many hours were used. It should then create a bill that includes the input information and the total amount due. Wherever possible use named constants instead of numbers.A mobile phone service has three different data plans for its customers: PLAN A: For $19.99 per month, 2 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN B: For $59.99 per month, 8 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN C: For $79.99 per month, Unlimited data is provided. Write a program that calculates a customer’s monthly bill. It should input the customer name, which plan was purchased, and how many gigabytes were used. It should then create a bill that includes the input information and the total amount due. It should also display how much money plan A customers would save if they purchased plan B or C, and how much money plan B customers would save if they purchased plan C. If there would be no savings, no message should be printed. Wherever possible, use named constants instead of numbers.A mobile phone service provider has three different subscription packages for its customers: 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 are 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 minutes that were used. The program should display the total charges.
- 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.USING C++ PROGRAMMING LANGUAGE A mobile phone service has three different data plans for its customers: PLAN A: For $19.99 per month, 2 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN B: For $59.99 per month, 8 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN C: For $79.99 per month, Unlimited data is provided. Write a program that calculates a customer’s monthly bill. It should input the customer name, which plan was purchased, and how many gigabytes were used. It should then create a bill that includes the input information and the total amount due. It should also display how much money plan A customers would save if they purchased plan B or C, and how much money plan B customers would save if they purchased plan C. If there would be no savings, no message should be printed. Wherever possible, use named constants instead of numbers.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 print a number in a…
- Python 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…Airline companies apply baggage restrictions for their passengers. An airline company has decided to apply a 10kg limitation for passengers' hand luggage and 20kg for their normal baggage. When passengers arrive, they enter their hand and normal luggage weight from the keyboard. If passengers exceed their normal baggage allowance of 10 dollars per gram, they pay 12 dollars per kg. Accordingly, write the program that calculates the baggage price of the airline they will go to according to the baggage values entered by the arriving passenger and keeps this from closing the program for each passenger. Note: If hand and normal baggage allowances are stretched below the maximum value, the payment amount will be considered not negative. An example printout is given on the right. Geri bildirim gönderWrite a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100%, then the item’s retail price is 10.00.• If an item’s wholesale cost is 5.00 and its markup percentage is 50%, then the item’s retail price is 7.50.The program should have a function named calculateRetail that receives the wholesale cost and the markup percentage as arguments and returns the retail price of the item.