Asif buys four products detergent, ghee, milk and soap from Punjab Cash & Carry. You have to write a program in C++ to input prices along with quantity of above items as input and provide 10% discount on ghee, 5% discount on milk and 7% discount on soap. Print discount of each item and the final bill which Asif has to pay.
Q: write a program in C++ that Mr. Ali has invested an amount of Rs101, 876 in a Bank scheme. Bank…
A: Introduction of the Program: The C++ program calculates the total amount after 7 years using the…
Q: Problem 1 Write a "C" program to find the summation of the following series: 1/8+ 1/27 + 1/64 +…
A: 1) Below are two C programs for problem1 and problem 2 Program to find summation of the series In…
Q: Write a program, USING C, to read and display the information employees in a group. Then edit the…
A: Given: Write a program, USING C, to read and display the information employees in a group. Then…
Q: Develop a program for current electrical billing system based on the given requirements using the…
A: 1. Flowchart for generating electricity bill
Q: uppose you designed a TAXI FARE SYSTEM and you want to valuate the fare in according to the…
A: I have written the following code below:
Q: Write a program in C++ with total change amount as an integer input that outputs the change using…
A: A C++ program for the given criteria is as follows, File name: “main.cpp” #include <iostream>…
Q: Write a program to roll dice (use the “rand” function) for 36,000 times and then calculate the…
A:
Q: Write a C/C++ program that calculates and prints the bill for a cellular telephone company (say ABC…
A: Code written in c++ language for the given problem as follows- #include <iostream> // header…
Q: write a C program named turn_to_letter that decides on the letter grade of the student according to…
A: I have provided solution in step2.
Q: Write a C++ program to calculate total ordering cost. Jacob is a retailer for ice. Normally a bag of…
A: 1. declare quantity, discount. 2. get User input 3. Calculate percentage using above table using if…
Q: Write C# program for the following: Salman’s basic salary is input through the keyboard, his…
A: Lets see the solution.
Q: Write a program in C++ Jordan University of science and Technology has the following rules for…
A: #include <iostream>//header fileusing namespace std;int main() {//main method int n,m;…
Q: Write a function in C called par_ou_impar, which takes an integer as a parameter and if this integer…
A: #include<stdio.h>int par_ou_impar(int n){ if(n%2==0)//given number is even then it will…
Q: A temperature reading in degrees Fahrenheit can be converted to degrees Celsius using Write a…
A: #include <stdio.h>float convertCelFahrenheit(float f){ return ((f-32)*5)/9;}int main(){…
Q: 3. Write a program in C to calculate and print the Electricity bill of a given customer. The…
A: C program to calculate and print electricity bill of customer. program code is in step 2. and…
Q: Write a program to roll 2 dies (use the “rand” function) for 36,000 times and then calculate the…
A: stdlib.h includes a function named rand() which generates us a random integer value from 0 to an…
Q: Write a C++ program that performs the following (see the Appendix for useful functions): (a) Prompt…
A: ∑ indicates summation notation ∏ indicates product notation pow() is use in C++ to compute any…
Q: In C++ Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and…
A: Here I have taken input from the user. Then I have calculated the cost in dollars for 20, 75, and…
Q: 3. Write a program in C to calculate and print the Electricity bill of a given customer. The…
A: #include <stdio.h> int main() { // variable declarations int customer_id, unit_consumed;…
Q: Write a c++ program that calculates the cost of 3 bags of fruit. The 4 possible fruits are pears…
A: i hope it will work for you #include<bits/stdc++.h>#define INF 1000000using namespace std;…
Q: This assignment deals with processing the monthly transactions of the clients of a bank. For each…
A: The answer for the above given program is given below:
Q: Here's is my C++ program exercise 4-12: Suppose that billingAmount is a double variable, which…
A: Declare and initialize the constant variable creditOnFullBillingPayment with 10.00 Declare and…
Q: 8: PGandE.cpp) Consider a gas and electric bill that sets two levels of use as follows: Gas Electric…
A: Coded using C++.
Q: Write a program in c++ that asks the user to input two numbers. If the first number entered is…
A: CODE:- #include <iostream>using namespace std;void check(int n1, int n2);int main(){ int…
Q: Q7/ Write a program in C++ that asks the user to enter two numbers and prints the sum, product and…
A: PROGRAM CODE: #include<iostream>using namespace std; // function declarationdouble…
Q: You are asked to manage salaries of employees of an organization. Write a C++ program to store basic…
A: Create an array of size 15 to store the salaries of 15 employees Input Salary and number of leaves…
Q: Write a complete program in C# to calculate and print the Internet bill of a given 10 customers. At…
A: Arrays are linear data structures that hold data of the same data type. Each element is sequentially…
Q: A person X wants to distribute the property share to his children and the wife. Write a C+ program…
A: We need to take input from a user of the below things - total property worth in PKR number of sons…
Q: In c++, write a unit conversion program that asks which unit to convert from and which unit to…
A: #include<bits/stdc++.h>using namespace std;int main() { float mag; cout<<"Enter the…
Q: Write a c++ program that contains a “main” and 4 functions: In the main function declare 4 integer…
A: Program Approach - Include the essential header files. Define the initialize() function to…
Q: A wholesale furniture store that sells sofas in bulk needs a program to help their cashiers. Write a…
A: We need to write a C++ language program to find the total price, delivery cost, and tax of the sofa…
Q: Q9/Write a program with c++ that inputs a three-digit integer, separates the integer into its…
A: As you have not mentioned the programming language the following code is in c++ programming language…
Q: Use C++ Write a program that simulates flipping a coin to make decisions. The input is how many…
A: For generating head or tail we had used rand() function. Algorithm- 1) ask number of times coin to…
Q: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a…
A: To write a code to computes the tuition in ten years and the total cost of 4 years’ worth of tuition…
Q: Question 4 OneAuni is a sandwich shop which provides a variety of sandwiches. The following are the…
A: Answer : In the above a question we have to do a cpp code of following OneAuni sandwich shop, so I…
Q: Write a Python program that plays the rock-paper-scissors game, that following happens: Rock breaks…
A: Code:- # Hello World program in Pythonimport random def game(): computer = random.randint(1,3)…
Q: Q # 4. Illustrate your knowledge of C-Programming by implementing a 'Game of Dice'. User will start…
A: PROGRAM CODE: #include <stdio.h>#include <stdlib.h>int menu();int roll_a_dice(); int…
Q: Use Python to write a program that play the rock-paper-scissors game, which is where the player…
A: Code:- import random //Logic of the Game def game(): computer = random.randint(1,3) roc =…
Q: A C++ program that creates a program for a new ice cream vendor called LeCream. The management of…
A: Screenshot of C++ Code:
Q: SOLVE IN GRAMMIN UAGE Q# 3. Illustrate your knowledge of C Programming by implementing a Bank ATM…
A: Given: To create a C program for Bank ATM machine.
Q: 3. Write a program in C to calculate and print the Electricity bill of a given customer. The…
A: In this user has to enter customer id Name and unit consumed then according to unit find the rm…
Q: Question 1: Asif buys four products detergent, ghee, milk and soap from Punjab Cash & Cary. You have…
A: Please find the answer below :
Q: b) Write a complete C- Program for Electricity Bill Computation. Program will use two user defined…
A: The objective of the given problem is to compute the electricity bill for the given number of units…
Q: Write a C++ function void rect (int& ar, int& per, int len, int wid) that computes the area ar and…
A: Code for copy #include <iostream>using namespace std; void rect(int *ar, int *per, int len,…
Q: A person X wants to distribute the property share to his children and the wife. Write a C++ program…
A: #include <iostream>using namespace std; int main() { float…
Q: You should read this question as if the change giver is an artificial intelligence-based bank teller…
A: ALGORITHM: Include the required header files. Start the definition of the function to find the…
Q: /Write a program in c++ that inputs a three-digit integer, separates the integer into its individual…
A: Code: #include <iostream>#include <cmath>using namespace std; int main(){ int number;…
Q: Modify the craps program to allow wagering inside of C#, and explain each step (reject if you…
A: After updating the code, I have provided C# CODE along with CODE SCREENSHOT and OUTPUT…
Q: Write a c++ program to display a calendar for a given year. Type of Branches such as switch…
A: Program: #include<iostream> #include<iomanip> using namespace std; int nDays (int…
Asif buys four products detergent, ghee, milk and soap from Punjab Cash & Carry. You have to write a program in C++ to input prices along with quantity of above items as input and provide 10% discount on ghee, 5% discount on milk and 7% discount on soap. Print discount of each item and the final bill which Asif has to pay.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Using C++ write a program Asif buys four products detergent, ghee, milk and soap from Punjab Cash & Carry. You have to write a program in C++ to input prices along with quantity of above items as input and provide 10% discount on ghee, 5% discount on milk and 7% discount on soap. Print discount of each item and the final bill which Asif has to pay. Please input price of 1 box of detergent: <User has to type price> Please input Quantity in boxes of detergent purchased: <User has to enter boxes purchased>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.Asif buys four products detergent, ghee, milk and soap from Punjab Cash & Carry. You have to write a program in C++ to input prices along with quantity of above items as input and provide 10% discount on ghee, 5% discount on milk and 7% discount on soap. Print discount of each item and the final bill which Asif has to pay. Please input price of 1 box of detergent: <User has to type price> Please input Quantity in boxes of detergent purchased: <User has to enter boxes purchased>
- 2. Pure Gems Store sells different varieties of gems to its customers. Emerald, Ivory, Jasper, Ruby, Garnet and their prices are 1760, 2119, 1599, 3920, 3999 respectively. Write a Python program to calculate the bill amount to be paid by a customer based on the list of gems and quantity purchased. Any purchase with a total bill amount above in python Rs.30000 is entitled for 5% discount. If any gem required by the customer is not available in the store, then consider total bill amount to be -1. Assume that quantity required by the customer for any gem will always be greater than 0. Perform case-sensitive comparison wherever applicable.The programming language is C++, write a program for each items base on the given statement. 1. Due to poor result of an examination, your professor decided toincrease each student by 1 point. Input the grade and print the newgrade. If the original grade exceeds 100, then it remains as such. 4. A college student who is registered for 21 units or more is consideredas full time student. The tuition fee for full time is 7000. A part timestudent is charged 300 per unit for tuition. Given the number of unitsa student is registering, calculate and print his tuition fee on the basisof the given criteria.You have been asked by ABC City Council to develop a parking rate calculator using C++. The program must be able to do the following tasks: a. Read entry time of the vehicle b. Read exit time of the vehicle Calculate the parking charges** based on the following parking rate: Hours Rate 1st to 3rd hours 4th to 5th hours 6th to 9th hours RM4 per hour RM3 per hour RM2.50 per hour More than 9 hours RM 2 per hour **Ignore the minute for calculating the parking charges. d. Each vehicle will need to pay 2.5% tax per entry. e. Calculate the tax and display the Final Payment to the user. For this Task, you need to: f. Identify input, output and processes for the g. Create a flowchart to solve the problem program
- write the program in C++ Assume eight employees working at Ziomind Sdn Bhd (Ismail, Atikah, Ravi, Sumaia, Jonathan, Halimah, Salleh, and Khadijah). The working hours are flexible and every employee might work as low as 1 hour or as much as 9 hours per day for 7 days per week. The company would like to prepare a report that displays the number of working hours for each employee per day, the total working hours per week, and the highest working hours in the week achieved by each employee. Write a program that reads the data recorded by the eight employees that contain the following: A one-dimensional array to store the names of the eight employees and a two-dimensional array of eight rows and seven columns of type double to store the seven-day work hours for each employee. A function named read_data() to read data from the user and display the employee’s names and the seven-day work hours. The employee’s name should be stored in the one-dimensional array of type string. A function…You are tasked with helping a friend with managing a pet storeinventory and sales. Create a program written in C to enter and store aninitial number of cats and dogs in addition to the cost price ofeach. The output of the program should include the number ofcats, price per cat, and price for all cats, and the same goes fordogs. Finally, the output should include the total cost of all pets(cats and dogs) in the store. The following instructions shouldbe helpful:- Create an integer variable named cat- Create an integer variable named dog.- Create a float variable named catp.- Create a float variable named dogp.- Create a float variable named ctotal, dtotal, ptotal.- Prompt the user to enter the number of cats and store it inthe variable cat.- Prompt the user to enter the number of dogs and store itin the variable dog.- Prompt the user to enter the price per cat and store it inthe variable catp.- Prompt the user to enter the price per dog and store it inthe variable dogp.…In c++, write a unit conversion program that asks which unit to convert from and which unit to convert to. Reject incompatible conversions such as gal to km. Also ask for value to be converted and display answer. Here are the unit names: fl. oz, gal, oz, lb, in, ft, mi and ml, l, g, kg, mm, cm, m, km
- You are asked to manage salaries of employees of an organization. Write a C++ program to store basic salaries of 15 employees by reading from the user. Calculate tax on salaries and add bonuses to find the final salary that should be paid. If an employee has 0 leaves in the month than a bonus of 8% is added to his/her salary. If an employee has salary more than 1 lac, 15% tax shall be deducted, if salary is between 50,000 and 1 lac, 10% tax shall be deducted, if salary is less than 50,000 than 6% tax shall be deducted. Find final salaries of employees and store in a new array. Program shall than display list of final salaries and also maximum and minimum salaries from final salaries.Using C++ Program, please help me code this problem. The utilities commission has decided that the electric company overcharged its customer for 2 months last year. To make up the difference to the customers, the commission orders the company to decrease each of next month’s bill by 10%. The city also levies a 3% utility tax, which is to be applied to the bill before it is discounted. Also, the 10% discount does not apply to the utility tax. Assume electricity costs 25.50 per kilowatt. Create the program to compute for next month’s electricity bill.write a program in c++ Assume eight employees working at Ziomind Sdn Bhd (Ismail, Atikah, Ravi, Sumaia, Jonathan, Halimah, Salleh, and Khadijah). The working hours are flexible and every employee might work as low as 1 hour or as much as 9 hours per day for 7 days per week. The company would like to prepare a report that displays the number of working hours for each employee per day, the total working hours per week, and the highest working hours in the week achieved by each employee. Write a program that reads the data recorded by the eight employees that contain the following: A one-dimensional array to store the names of the eight employees and a two-dimensional array of eight rows and seven columns of type double to store the seven-day work hours for each employee. A function named read_data() to read data from the user and display the employee’s names and the seven-day work hours. The employee’s name should be stored in the one-dimensional array of type string. A function…