ACE balloon shop sells balloons to customers at 10 Fils each. If the customer buys 500-1000 balloons, the price is 8 Fils each. If the customer buys over 1000 balloons, the price is 6 Fils each. Write a C++ program that reads the number of balloons to purchase and prints the amount of the bill in BD.
Q: Why is it necessary to create a virtual base class while using hybrid inheritance?
A: A class is derived from two classes as in multiple inheritance.
Q: What is the process of making an HTTP request?
A: What is a request? -> A way to exchange data between a client and server -> Client sends the r...
Q: For each of the following four networks, discuss the consequences if a connection fails. a. Five dev...
A: As per our company's guidelines we are supposed to answer first three sub-parts. kindly repost oth...
Q: Identify and briefly describe four of the causes of the rising number of computer-related errors.
A: Intro With the increase in use of computer at work or at personal level, humans are dependent on com...
Q: computer science - When a stalemate is found, those who are unable to go forward are given the requ...
A: Introduction: We must now recover from a stalemate that has been discovered. There are generally two...
Q: What is the advantage of creating a structure within a structure?
A: advantages of creating a structure within a structure with one example given below
Q: Distinguish between the three data modelling levels.
A: What is data modeling: Data modeling is the practice of using words and symbols to represent data a...
Q: Assembly to Binary 2 An LC-3 assembly language program contains the instruction LEA R6, Z The symbol...
A: Explaination, As we know that the value stored at Y ie at x3005 will be the 16 bit binary code for t...
Q: What function does the MAC serve during the TLS exchange with a different cypher spec?
A: Purpose of MAC serves during the change cipher spec TLS exchange: Each named cipher suite defines a...
Q: Differentiate between Standard Access Control Lists and Extended Access Control Lists (ACLs).
A: Standard Access Control Lists: ACLs are the oldest category of access control lists standard access ...
Q: Block Address : 192.168.16.0/24 LAN1 Usable #of Hosts: 100 Users Network Address: ? Pont to Point Li...
A: Below is the answer to above question. I hope this will meet your requirement...
Q: When is it better to use Excel in Word for a table than to use a program like Excel? What are some o...
A: INTRODUCTION: MS-Word is mostly used for desktop publishing, but you may need to include charts, ta...
Q: What does the phrase "checkpoint" signify in SSIS?
A: Introduction: A CHECKPOINT file may be configured in the SSIS package to record package execution in...
Q: Using C program, please answer the question using a example C program illustration. Design a small ...
A: Introduction: SIGPIPE is a signal that is sent to a process when it tries to write to a pipe whose r...
Q: Where is the supertype of the object stored?
A: Introduction: The super type entity in the data model is defined, shown, and explained in detail.
Q: AND fnc026 ;Address of qe0003 ;Function q00003 ;Getting return addres CLE BSA pop STA temp1 BSA pop ...
A: Below the code which resolve the error
Q: Give an example of each of the three types of IP addresses.
A: Introduction: Publicly Available IP AddressesA public IP address is a unique primary address issued ...
Q: Instruction: Write a Java program and make a drawing of the flowchart (make sure to use proper flowc...
A: PROGRAM EXPLANATION: Import the scanner class. Create the main class. Define the main method. Creat...
Q: What exactly are the benefits of database encryption ?
A: Introduction: Everyone is concerned about the migration of private data to the cloud since many firm...
Q: Why is object-oriented programming getting so much press these days?
A: Introduction: OOP code is non-deterministic, which means that, unlike functional programming, we can...
Q: What Exactly Is Disk Memory?
A: Disk memory Memory and disk storage all apply to a computer's internal storage space. For a certain ...
Q: (d) Given the Turing Machine (TM) in Figure Q1(c), write down the content of the tape and the positi...
A: Given Turing Machine contains, Set of states= {1,2,3,4} Initial state=1 Final state={4} Set of input...
Q: Given a real number a and a nonnegative integer n, find a,using recursion a, = 2* a+a2, for n22 n-1 ...
A: Your python program is given below as you required with an output.
Q: What are the three types of requirement in human-centred design?
A: Introduction: Design thinking is a process, mindset, and approach to solving complex problems. It i...
Q: Explain the concept of semantic web and highlight how it differs from the current world wide web
A: The Semantic Web is a cross section of information that are related so that they can undoubtedly be ...
Q: You and your closest friend spend a lot of time playing video games together. Once, he/she asks for ...
A: Introduction: Hey, To begin, do not reveal your password with anybody, even if he is your closest fr...
Q: You are working on the search problem of the client project so you have given the A- length list N, ...
A: The answer as given below:
Q: Why is data encryption
A: data breaches, threats, and attacks it is important to consider the benefits of data encryption. Enc...
Q: What are the key differences between CBSE with reuse and software development procedures for new sof...
A: Introduction: Independent components with their own interfaces. Component standards are used to make...
Q: Recently your company discover that there were several alerts for software that your company uses. ...
A: For the Given Situation the presentation to the executives and managers has written below.
Q: Using Python, given a reference string followed by four more strings, create a program that determin...
A: Find Your Code Below
Q: What exactly is bidirectional tunnelling? Why is it necessary to have HA–FA in addition to the HLR–V...
A: Bidirectional tunneling In transportation infrastructure, a bidirectional traffic system divides tr...
Q: What are the benefits of (1) truth tables and (2) number complements?
A: Truth table is a tabular chart that is based on logical comparisons or calculations . For most gener...
Q: Q1 )Indicate two major functions of Virtual Local Networks VLANs?
A: VIRTUAL LOCAL NETWORKING: The virtual local area network allow network administrators to limit acce...
Q: Which of the following is correct code (compiles correctly and has the correct effect) for doing the...
A: Which of the following is correct code(compiles correctly and has the correct effect) for doing the ...
Q: Output each floating-point value with two digits after the decimal point, which can be achieved as f...
A: Find the code in python to print each floating-point value with two digits after the decimal point g...
Q: If an 8Gbyte memory chip was available, how would you build a 512Gbyte memory?
A: Introduction: The memory is constructed using memory cells as the fundamental unit. The memory cells...
Q: WHAT IS A WEB DATABASE APPLICATION?
A: Web Database Application A Web database is a database that can be administered and accessed via the...
Q: What benefits does MATLAB have over other programming languages for tackling Computational Geometry ...
A: INTRODUCTION: MATLAB MATLAB is a programming platform created specifically for engineers, trainees, ...
Q: What piece of hardware on the device enables physical network connectivity?
A: Introduction: In order for computers to communicate with one another, networking gear is required.
Q: Write a public static method named printArrayList, that takes two arguments. The first argument is a...
A: Find the required code given as below and output :
Q: Create a file named "pointer.c" and include the header file "pointer.h" Implement all functions def...
A: We need to write a C program for the given scenario.
Q: ian-cycle problem is NP(nondeterministic polynomial) Complete (from book Introduction to Alg
A: Hamilton Cycle On a graph, a Hamiltonian cycle is a closed loop that goes over each node (vertex) e...
Q: write (define) a public static method named noDuplicates, that takes an ArrayList as an argument and...
A: ALGORITHM:- 1. Declare and initialise an arraylist. 2. Pass it to the noDuplicates() method. 3. Prin...
Q: Do com..
A: I have attached the full code below:
Q: What are the advantages and disadvantages of installing software via the internet versus installing ...
A: Introduction: DVD: DVD is an abbreviation for Digital Versatile Disk or Digital Video Disk. Because ...
Q: Objective: To create a JSON for Population census with objects and arrays Scenario: DEF Census Com...
A: sample.json { "Country":"India", "State":"Uttar Pradesh", "YearOfSurvey":2015, "TotalPopulat...
Q: To begin, what exactly is the function of a router? 2) What is a data packet, and how is it const...
A: Introduction: Network of Computers: A computer network is a computerized media communications networ...
Q: What is the distinction between file structure and storage structure, and how should it be defined?
A: Storage structure is The memory that is allocated or assigned to a variable or a constant that is st...
Q: Is Voice Over IP subject to the same firewall issues as streaming audio?
A: Voice over IP (VoIP): It is a technique that allows communication to take place over the internet. T...
ACE balloon shop sells balloons to customers at 10 Fils each. If the customer buys
500-1000 balloons, the price is 8 Fils each. If the customer buys over 1000
balloons, the price is 6 Fils each. Write a C++
balloons to purchase and prints the amount of the bill in BD.
Step by step
Solved in 4 steps with 5 images
- 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 chargesusing 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 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 Hospital medication charges Charges for hospital services (lab test, etc.) The program should ask for the following data if the patient was an out-patient: Charges for the hospital services (lab test, etc.) Hospital medication charges The program should use two 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 information. Both functions should return the total charges.Using c++ Madison County collects property taxes on the assessed value of property, which is 60 percent of its actual value. For example, if a house is valued at $158,000, its assessed value is $94,800. This is the amount the homeowner pays tax on. At last year’s tax rate of $2.64 for each $100 of assessed value, the annual property tax for this house would be $2502.72. Write a program that asks the user to input the actual value of a piece of property and the current tax rate for each $100 of assessed value. The program should then calculate and report how much annual property tax the homeowner will be charged for this property. Design. You will be using an IPO diagram to design your program. See IPO diagram attached to this assignment. Under INPUTS, list everything the program will need to produce the result. Under OUTPUTS, list what the program is going to produce. Under the PROCESS heading, list the detailed pseudocode steps that need to occur to produce the program’s…
- We have 100 critics who have rated the top movie of the year: Enchantio! Write a C++ program that lists the ratings. If there are three ratings in a row over 80, Enchantio wins an Oscar! (X/40) Print the following: The 100 ratings Enchantio receives from the critics The number of awards Enchantio won The maximum rating Enchantio receivedMars hyper market gives discount to customers based on their spending. If a customer spends 20 Omani Rials (OMR), a discount of 10% is applied on a total spending. Customers spending more than 20 to 50 OMR get 20%discount on their total spending, and customers spending more than 50 OMR get 30% discount is applied on a total spending.Write a C++ program that prompts a hypermarket assistant to enter customer’s total spending, and the program displays “Welcome to MARS Hyper Market”, and then displays the discount on the amount and the final payment after applying the discount.In C++ write a program that prints the day number of the year, given the date in the form month-day-year. For example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. The program should check for a leap year. A year is a leap year if it is divisible by 4, but not divisible by 100. For example, 1992 and 2008 are divisible by 4, but not by 100. A year that is divisible by 100 is a leap year if it is also divisible by 400. For example, 1600 and 2000 are divisible by 400. However, 1800 is not a leap year because 1800 is not divisible by 400. Fast...
- In C++ please write the code for this problem: A bag of cookies holds 30 cookies. The calorie information on the bag claims that there are 10 "servings" in the bag and that a serving equals 300 calories. Write a program that asks the user to input how many cookies they actually ate and then report how many total calories were consumed. use const integers for the 3 values provided in the program. Calculate the number of cookies in a serving. Calculate the number of calories in a cookie. Calculate the total calories consumedIn C++ write a program that prints the day number of the year, given the date in the form month-day-year. For example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. The program should check for a leap year. A year is a leap year if it is divisible by 4, but not divisible by 100. For example, 1992 and 2008 are divisible by 4, but not by 100. A year that is divisible by 100 is a leap year if it is also divisible by 400. For example, 1600 and 2000 are divisible by 400. However, 1800 is not a leap year because 1800 is not divisible by 400. Make it fast...In C++ (Find the number of days in a month) Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example, if the user entered month 2 and year 2012, the program should display February 2012 has 29 days If the user entered month 3 and year 2015, the program should display March 2015 has 31 days
- Write 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.C++ Programming Exercise: Ther are 50 apartment units. When the rent is $600 per month, all the units are occupied. However, for each, $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.A salon offers coupons to its customers time to time. Without coupons adult haircut is 15.50 and the child haircut is 10.50. Coupons that this salon offers are color coded. The following table shows the color code and discount information Color code Green (code # 1) Blue (code # 2) Discount 3.50 from adult, 2.50 from kids 2.59 from adult, 1.50 from kids Write a C++ program that asks the user to enter the coupon color and the haircut type (adult, kid) and then determine the haircut charge. It is possible that a customers may not have a coupon, in that case, no discount will be offered. You can assume that green, blue colors are represented using 1 and 2 respectively. Write the program so it will generate the output as shown in the sample runs below where user input is in bold. Sample Run 1 Enter coupon color (0 = no coupon, 1 = green, 2 = blue): 1 Enter the type of haircut (a= adult or k = kid): a The charge is 12.00 Sample Run 2 Enter coupon color (0= no coupon, 1 = green, 2 = blue): 0…