A company manufactures three products engines, pumps and fans. They give a discount of 10% on orders for engines if the order is for Rs. 10000 or more. The same discount is applicable for pumps whose value is more than Rs. 5000 and fans whose order value is more than Rs. 3000. Write a program to calculate the total bill for 6 engines of Rs. 12000 each, 4 pumps of Rs. 6000 and 6 fans of price 2500. Hint use if else statement
Q: What exactly is distributed routing? What's the inverse of distributed routing?
A: A distributed model appears to be an excellent candidate for a purely "opaque" domain where impairme...
Q: In a few words, describe the instruction pointer
A: Lets see the solution in the next steps
Q: Explain why log records for undo-list transactions must be handled in reverse order, but redo is exe...
A: Log records Any transaction needs to create a log record before modifying the database. These log r...
Q: 2. This involves a .txt file with one thousand rows of random numbers (between 1-1000) Using Py...
A: 1. File Input/OutputFile Input/Ouput (IO) requires 3 steps: Open the file for read or write or both...
Q: Submit a write up that describes the steps of creating a database of Certificates using MongoDb. Be ...
A: Answer : Submit a write up that describes the steps of creating a database of Certificates using Mon...
Q: Prove that gcd(a + b, a – b) = gcd(2a, a – b) = gcd(a + b, 2b). Show your work! Justify each step.
A: Given that, Prove gcd(a+b, a-b) = gcd(2a, a-b) = gcd(a+b, 2b) Suppose d divides a+b and a-b.Then d d...
Q: How will you create and deploy a business information system for your corporation using the primary ...
A: Introduction Information System Development Stages:- System survey, needs analysis, design, impleme...
Q: PLEASE WRITE IN C++ Implement a program that uses an array based binary tree (sequential tree) that...
A: Answer: This question based on binary search tree and insert the how will work i have shown in the C...
Q: The organization and integration of the many components of a computer system is known as architectur...
A: Computer architecture comprises techniques and principles, arrangements and integration, or processe...
Q: write a java program that sums all multiples of three and five up to n (inclusive). Take the n from ...
A: Required:- write a java program that sums all multiples of three and five up to n (inclusive).Take t...
Q: What does the function that overloads the operator >> for a class return?
A: Intro It is possible to provide a different implementation to common operators such as + or - in C++...
Q: Describe HADOOP's two primary levels as well as two more supporting modules.
A: Introduction: Hadoop is a free and open-source software framework for storing data and executing app...
Q: How to terminate a process? How to do process termination? What is the critical region? How do prose...
A: How to terminate the process? There is a system call exit () to terminate the process and this is wi...
Q: What Are the Eight Best Computer Architecture Concepts?
A: Introduction: The utility, relationship, and use of computer frameworks are represented by principle...
Q: Create a Student table with the following column names, data types, and constraints: ID - integer wi...
A: create table student ( ID SMALLINT ***UNSIGNED*** AUTO_INCREMENT PRIMARY KEY, FirstName VARCHAR(20) ...
Q: def get_nearest_station(my_latitude: float, my_longitude: float, stations: List['Station']) -> int: ...
A: My code is in python language
Q: How would you recommend mobile and wireless employees network?
A: Various I recommend the mobile to employees:- 1. It is lightweight and a portable device. 2. You can...
Q: Suppose that a manufacturing company builds n different types of robots, say robots 1, 2, . . . , n....
A: We call this a canvassing because it is not a representative, randomized survey. Its finding emerge ...
Q: city of Ottawa along or co the intersection at no a computer program s
A: As the number of vehicles from the road and crossing is represented . using the number of vehicles e...
Q: Give the true/false regarding css of all subparts! A) the following: a > nav:hover is an example of...
A: Below are the answers of true/false regarding CSS.
Q: NVIDIA chip set architectures: complete information please
A: The NVIDIA Turing architecture is a combination of GeForce RTX platform, It fuses together in real-t...
Q: what is the swot analysis of gym MANAGEMENT systems.
A: SWOT means Strength, Weakness, Opportunities and Threats. SWOT analysis is a method of identifying s...
Q: Write a line (or lines) of code that uses a list that has been previously defined, named word_list, ...
A: Algorithm: Initialize the word_list Input the find string from the user Initialize count to 0 Itera...
Q: In each company, there are numerous options for archiving data. a) Identify any two feasible ways...
A: Introduction: the question is about In each company, there are numerous options for archiving data. ...
Q: How would you recommend mobile and wireless employees network?
A: The communication which happens with the help of the end nodes, which are not wired or are wireless ...
Q: Whic of the following are generally true about compiler optimizations? They come in varying le...
A: In the synthesis phase, code optimization is a programme transformation approach that aims to optimi...
Q: Do execution paths 3 and 4 encompass the first three conditions for a deadlock to occur?
A: Introduction Do execution paths 3 and 4 encompass the first three conditions for a deadlock to occur...
Q: # Python question describe two (or three) motivations for using functions in your programs.
A: answer is
Q: Write a Python program to show the binary values of all the entries in the list below in string form...
A: #method to convert decimal to binary #and returns in string formatdef dectobin(d): if d>0: ...
Q: def validate_priority(priority): ''' validate the "priority" parameter Returns True if "...
A: 1. In your Program you did call the function and also did not print the result. 2. while checking if...
Q: Why is it that data recovery in a database environment is more difficult?
A: If a database are not well maintained or incorrect data with wrong logic are entered into the databa...
Q: for (i=0; i<1000; i++){ y[i] = w * x[i] + b[i]; } Above C-code has a for loop which will repeat 1...
A: Introduction for (i=0; i<1000; i++){ y[i] = w * x[i] + b[i]; } Above C-code has a for loop which ...
Q: Write the following function/procedure in MIPS. **only $s1, $s2, $a0, $v0 registers can be used. ...
A: MIPS assembly language code for the given question : func: addiu $sp,$sp,-24 sw $fp,20($sp) move $fp...
Q: Write a C function called ints2int_ptrs which takes two parameters: an array of integers (parameter...
A: Step 1 : Start Step 2 : Define a function ints2int_ptrs() which takes an array arr and a variable n ...
Q: Create a class called Complex for performing arithmetic with complex numbers. Write a program to te...
A: The solution as given below steps :
Q: Write a single R command that calculate 12 + 22 + · · · + 992.
A: num=12while(num <=992) { sum = sum + num num = num + 10 } print(paste("The sum is", sum))
Q: What is the function of dex compiler in android? a. It converts class files to dex files. O b. It co...
A: Let us see the answer below,
Q: Can you please help me to do Snow Flakes in python please
A: Given: Could you kindly assist me with making Snow Flakes?
Q: Topic: A function with parameters passed by value and passed by reference Do not use anything beyo...
A: - We have to create a C++ program to get the area and perimeter of a rectangle through one function ...
Q: Conduct thorough study on the following issues and offer citations for your findings. There are six ...
A: Please see the next step for the solution.
Q: ovided data.
A: The graphical user (connecting point/way of interacting with something), developed in the late 1970s...
Q: Show how Data is signed and how the signature of the Data is verified? Assume the Data is signed by ...
A: Company A wants to send an encrypted message. As stated above, Company A must have a private key Ar ...
Q: What's the distinction between MPP and SMP processors?
A: Introduction: The system design is the major distinction between SMP and MPP. Each processor in an S...
Q: Why is there a header length field in the TCP header but not in the UDP header?
A: Introduction: TCP is a connection-oriented protocol, whereas UDP is a connection-independent protoco...
Q: In the main.asm file, you are to create a few arithmetic calculations using the following instructio...
A: Answer is give below:
Q: esolving the issue at hand (for example, specify the systems develop
A: Below the Approach to resolving the issue at hand
Q: What networking strategies do you advocate for mobile and wireless workers?
A: Introduction: A wireless network permits gadgets to remain associated with the arrangement yet wande...
Q: cognize the characteristics of portable media players and digital media players.
A: The characteristics of portable media players and digital media players. Portable media players:- th...
Q: Savers and Users: Give an example of a scenario where savers and users meet to transact.
A: Give an example of a scenario where savers and users meet to transact. here are some example that yo...
Q: 2. Consider the following network address: 209.15.6.0/28 a. How many subnets are there in this netwo...
A: Introduction 2. Consider the following network address: 209.15.6.0/28 a. How many subnets are there...
Step by step
Solved in 4 steps with 3 images
- A software company sells a package that retails for $109. Quantity discounts are givenaccording to the following table.Quantity Discount10 - 39 10%40 - 65 18%66 - 90 27%91 - 120 35%121 – 199 42%200 or more 48%Write a program using the if/else if/else statement that asks for the number of units soldand computes the total cost of the purchase and the savings due to the discountapplied. The program should also display the number of units purchased and thediscount in percentage. The output should include the following text:Number of units purchased is:Discount applied is:Total savings due to discount is:The total cost of the purchase is:Do NOT use the switch statement, any logical operator or anything that looks likeone in the program. You will not receive credit for the program if you do. SeeProgram 4-9 on page 183 of your textbook for help.Don’t forget to include the developerInfo function and do not accept negative quantityvalues.BP Service Station sells gasoline and has a car wash. Fees for the car wash are the US $15,000.00 with a gasoline purchase of US $20,000.00 or more and the US $20,000.00 otherwise. Three kinds of gasoline are available: regular at K3,900.00, unleaded at the US $, 200.00, and super unleaded at the US $ 4 600.00 per litter. You are required to write a program that prints a statement for a customer. Input consists of the number of litters purchased, kind of gasoline purchased (R, U, S, or for no purchase, N), and car wash desired (Y or N). (a). Develop a Pseudocode and a structure chart for the service station problem.(b). Write a program in c++ programming to compute the amount due from a customer of the service station.A software company sells a package that retails for $109. Quantity discounts are given according to the following table.Quantity Discount10 - 39 10%40 - 65 18%66 - 90 27%91 - 120 35%121 – 199 42%200 or more 48%Write a program using the if/else if/else statement that asks for the number of units sold and computes the total cost of the purchase and the savings due to the discount applied. The program should also display the number of units purchased and the discount in percentage. The output should include the following text:Number of units purchased is:Discount applied is:Total savings due to discount is:The total cost of the purchase is:Do NOT use the switch statement, any logical operator or anything that looks like one in the program. You will not receive credit for the program if you do.
- The average cost of a college textbook is $125. There is a premium of 20% on hardcover text and a discount of 5% on sales of more than 4 textbooks. Write a program to prompt the user for the appropriate inputs and compute and display the before-tax cost of the textbooks.Sample calculation:price of 10 hardcover text = 10 * 125 + premium –discountprice = 1250 + 20% of 1250 – 5% of 1250price = $1437.50price of 8 softcover text = 8 * 125 –discountprice = 1000 – 5% of 1000price = $950price of 2 softcover text = 2 * 125price = $250A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be, say, four inches thick. The length of the patio is to be, say, twice the width. Write a program that prompts the user to specify: The amount of premixed concrete (in cubic yards) ordered The thickness of the patio (in inches) The ratio of length and width Ex. If the ratio is 3 to 2, have the program accept a 3 then a 2. Then compute the ratio using these numbers The program then outputs: The length and width of the patio (in feet). (1 cubic yard = 27 cubic feet.) To calculate the width, you will need to: Find the total cubic feet of the concrete Divide the total cubic feet of concrete by the result of the length to width ratio multiplied by the thickness of the patio, over 12 (inches in a foot) Square root the answer To find the square root of a decimal number, include the header file cmath using the statement #include <cmath>, in your program. The function sqrt, included in…A discount of 20% will be given to any goods that is bought from GMART shop. Write a program that can accept an input price of goods and calculate the actual price of goods after discount. Write all the steps involve to solve the above problem before you get the following output. Price of goods : 10.00 Actual price of goods after discount : 8.00
- You sell regular coffee at 10 rs/bag, cappuccino coffee at 13 rs/bag, and mocha coffee for 15rs/bag. If the user buys more than 100rs worth, they get a 15rs discount. Ask the user how many bags of regular coffee s/he wants. Then ask about cappuccino, and then about mocha. Using the input, calculate the total amount the user will pay. If the total is over 100rs, subtract 15rs from their total. Print their receipt, by writing out how many bags of regular they purchased and how much that works out to, then how many bags of cappuccino and how much that works out to, and then how many bags of mocha they purchased and how much that works out to. Finally write out how much the total will be. So, for example, after executing the program, the output might look like this: You purchased 3 bags of regular, totaling 30rs. You purchased 2 bags of cappuccino, totaling 26 rs. You purchased 6 bags of mocha, totaling 90 rs. Your total purchase cost is 146 rs.Assuming that all residents are given the first 1000L of water for free by the municipality, then are charged R2.00 per litre thereafter. Write a program that will prompt the user to enter the amount of water used by a resident and then computes the amount to be paid. For example, if a resident uses 1200L, then the amount to be paid will be R400A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10 – 19 10% 20 – 49 20% 50 – 99 30% 100 or more 40% Write a program that asks the user to enter the number of packages purchased. The program should then display the full retail price before any discount, the amount of the discount (if any), and the total amount of the purchase after any discount. Do not allow numbers less than 0.
- The New Telephone Company has the following rate structure for long-distance calls: The regular rate for a call is P8 per minute. Any call started after 6:00P.M. (1800 hours) but before 8:00 A.M (0800 hours) is discounted 50%. Any call longer than 60 minutes receives a 15% discount. All calls are subject to 4% federal tax on the cost after any discounts. Write a program that takes the start time for a call based on a 24-hour clock and the length of the call in minutes. The gross cost (before any discounts or tax) should be displayed followed by the net cost (after discounts are deducted and tax is added).Write a program that calculates the amount of money a person would earn over a period of time I f his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing what the salary was for each day, then show the total pay at the end of the period. The output should be displayed in a dollar amount, not the number of pennies.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.