Tenaga Nasional Berhad charges electricity usage according to the following table: Tariff Category Unit Used Rate per kilowatt per hour(kWh) Domestic (D) First 200 kWh 10 cents Next 100 kWh 12 cents Over 300 kWh 9 cents Commercial (C) First 200 kWh 20 cents Next 100 kWh 22 cents Over 300 kWh 18 cents
Q: Loyalty points are awarded by a company based on the amount a customer spend. Loyalty points can be…
A: #include<bits/stdc++.h>using namespace std;#define DASH_COUNT 30int points = 0,p1=0,p2=0,p3=0;…
Q: SUPPLY CHAIN SEGMENTATION ABC ANALYSIS PART ID PRICE (USD) ANNUAL DEMAND PO01 2.25 260 PO02 2.85 43…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: Loyalty points are awarded by a company based on the amount a customer spend. Loyalty points can be…
A: The required C++ code is given below: #include<iostream>#include<iomanip>using namespace…
Q: An intelligent traffic surveillance system has been developed to identify the number of speeding…
A: In the c program, the first step includes the necessary libraries such as stdio.h and stdlib.h and…
Q: Total cost per day = number of product " cost Total cost per week = (number of product * day1 cost)…
A: class Info: def __init__(self,no_of_products,cost,price): self.no_of_products=no_of_products…
Q: Where are the changing cells located? C2 Advty 1 $20 1. Adivity 2 $40 Activity 3 $30 Unit Profit…
A: ans: correct:B10:D10
Q: An intelligent traffic surveillance system has been developed to identify the number of speeding…
A: In the c program, the first step includes the necessary libraries such as stdio.h and stdlib.h and…
Q: deptHead foreman empNumber empNumber | name name hours hours payRate рayRate grossPay grossPay…
A: As per the given question, we need to implement the given diagram using C++. The same can be…
Q: .Show a number of primary and secondary cities (Province column only). The expected output is…
A: It is simply a group by question.
Q: EXERCISE Sales (RM) Salesperson Abdul Laila Date Item |Dishwasher Washing Machine Microwave Rice…
A: Create the Excel sheet using the above data. The Sales column is calculated using the formula that…
Q: margin for Internet sales
A: It is used to analyze profits at the level of an individual sale transaction, rather than for an…
Q: Part 1. The Bavarian Motor Company (BMC) manufactures expensive luxury cars in Hamburg, Germany, and…
A: Let Xjk be the units transported from node-j to node-k Min Z = 30 X12 + 40 X14 + 50 X23 + 35 X35 +…
Q: Mr. Emmanuel Kwame Andoh wants to start a mobile money vending business with 6 branches across the…
A: Transaction,Worker,Worker Branch,Network 2)
Q: _____________________ is any physical storefront that sells goods and services directly to…
A: Option A is wrong because we do not have Breick and mortar stores, similarly option c and option D…
Q: Loyalty points are awarded by a company based on the amount a customer spend. Loyalty points can be…
A: Objective: Objective: This program enters a number of transactions done by one customer along with…
Q: Capital Expansion McJester's Burger Hut plans to expand by opening several new restaurants. The…
A:
Q: Loyalty points are awarded by a company based on the amount a customer spend Loyalty points can be…
A: Objective: This program enables a user to perform several transactions with a company by a user…
Q: 2. Compute the cost based on the following: If the quantity is less than 10 the cost is quantity…
A: import java.util.Scanner;public class CalculatePrice { public static void main(String[] args) {…
Q: Calculate the percentege gain and loss for bearish and bullish stock Mankel Eserds. What is the Code…
A: Introduction: With the relative strength index (RSI), you can determine if a stock or other asset is…
Q: For SA 1, do you mean 2 billion?
A: There are 2 billion values, so it checks each element until the element is found.
Q: The Grocery Store Transactions from December 4, 2021 3 Transaction Time Item Purchased Item Type…
A: Answer is given below-
Q: An oil and gas exploration firm invested $2,000,000 in drilling for natural gas in a nev gas field.…
A: Answer is given below .
Q: Arestaurant in Amman provides 2 offers for customers: o Regular Meal: The base price of the meal is…
A: Program approach:- Using the header file. Function prototypes. Define the main function. Function…
Q: 1. Determine the Marketing Budget of each location using the Marketing Budget Policy Table Marketing…
A: Location Population Marketing Budget Quezon City 27,61,720 33140640 Makati 5,10,383 3572681…
Q: Highway Construction Cost Calculate the total cost of a highway construction project based on the…
A: Python Program: # funtion to calculate income tax rate and owed income taxdef…
Q: Consider a transport company specified below. The company owns a number of vehicles of different…
A: UML Use Case Diagram is the main system/software requirements for a new Incomplete software program.…
Q: At 10% interest rate, how much should you invest today to be able to withdraw Php10,000.00 annually…
A:
Q: Lakeside Boatworks is planning to manufacture three types of molded fiberglass recreational boats -a…
A: Here the objective function must be solved for value of z=0 as breakeven point is a no profit no…
Q: Multiple Choicę (single). Question 5 5. which'one is not a endless nop? i=0; A while(i<10); i++; B…
A: In the first program the program will not run as while loop does not have a semicolon at it's end.…
Q: Loyalty points are awarded by a company based on the amount a customer spend. Loyalty points can be…
A: #include<bits/stdc++.h>using namespace std;#define DASH_COUNT 30/* points : for storing…
Q: Table 1: Vaccine Records by State State Vaccine Dose 1* Dose 2* 1098 Date Total* 3153 5050 12/6/2021…
A: Introduction Given, A database table has given , we have asked to make dependency graph out of…
Q: COTS has a productivity index of a. 16.9 b. 26.2 c. 42.9 d. 70.8
A: 155.COTS has a productivity index of a.16.9 b.26.2 c.42.9 d.70.8 Answer to the above mentioned…
Q: path to al cities stra in the table below. Seattle (0) 207 Boston (6) 1331 Chicago (5) 214 1003…
A: The shortest path from Boston to all other cities
Q: Question 3 Seri Melur Apartment is an apartment complex located above a resort island on the east…
A: the answer is given below:-
Q: Highway Construction Cost Calculate the total cost of a highway construction project based on the…
A: Program: #function to calculate the discount percentage #input is the miles def…
Q: Loyalty points are awarded by a company based on the amount a customer spend. Loyalty points can be…
A: #include<bits/stdc++.h>using namespace std;#define DASH_COUNT 30/* points : for storing…
Q: Loyalty points are awarded by a company based on the amount a customer spend. Loyalty points can be…
A: #include<bits/stdc++.h>using namespace std;#define DASH_COUNT 30int points = 0,p1=0,p2=0,p3=0;…
Q: 1. The ReallyGoodRestaurant has decided to open a small shop beside the restaurant to sell high…
A: As per the rules of Bartleby, i can only solve the 3 parts if they are interrelated so kindly post…
Q: Consider a transport company specified below. The company owns a number of vehicles of different…
A: As per given data transport system uses 3 use cases namely Client, Company, Bank. CLIENT: The client…
Q: From following table, Calculate average waiting time and average turnaround time using FCFS.
A: CPU Scheduling deal with selecting process for execution by the CPU. The primary goal of CPU…
Q: 70. The average time for a transaction to be completed after it has been submitted is called as…
A: GIVEN: The average time for a transaction to be completed after it has been submitted is called as…
Q: Below is your Seat Plan: ME Seat No. 1 - Aquino_Maria ME Seat No. 2 - Balagtas_Peter ME Seat No. 3 -…
A: I have given C++ Code with output in details below.
Q: Loyalty points are awarded by a company based on the amount a customer spend. Loyalty points can be…
A: The required C++ code is: #include<iostream> #include<iomanip> using namespace std; int…
Q: 1. Find the names of all red parts. 2. Find all prices for parts that are red or green. (A part may…
A: As per my company rule, I can solve only 3 questions at a time. So here I solve the queries once…
Q: How many ERP Vendors available in the market? Write the name of any four companies that are using…
A: Enterprise resource planning (ERP) is the integrated management of main business processes, often in…
Q: A company manufactures 1,000,000 units of product yearly. A new design of a product will reduce…
A: The above question is solved in step 2:-
Step by step
Solved in 2 steps with 1 images
- Needs to be done in C# language. Problem 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 tests, etc.) The program should ask for the following data if the patient was an out-patient: • Charges for hospital services (lab tests, etc.)• Hospital medication charges The program should use two overloaded 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. Input Validation: Do not accept negative numbers for any data.C++ Language code and explain Zodiac Sign Identifier - Ask the user's birth month and birth day and return the corresponding Zodiac Sign he/she belongs: Evaluate the user's birth month and day by checking the following: If born from, Mar 21 to Apr 19 - Aries Apr 20 to May 20 - Taurus May 21 to Jun 20 - Gemini Jun 21 to Jul 22 - Cancer Jul 23 to Aug 22 - Leo Aug 23 to Sep 22 - Virgo Sep 23 to Oct 22 - Libra Oct 23 to Nov 21 - Scorpio Nov 22 to Dec 21 - Sagittarius Dec 22 to Jan 19 - Capricorn Jan 20 to Feb 18 - Aquarius Feb 19 to Mar 20 - Pisces Example: What is your month of birth? 1 - January (31 days) 2 - February (27 days, if Leap Year 28 days) 3 - March (31 days) 4 - April (30 days) 5 - May (31 days) 6 - June (30 days) 7 - July (31 days) 8 - August (31 days) 9 - September (30 days) 10 - October (31 days) 11 - November (30 days) 12 - December (31 days) Please enter your birth month: 8 Please enter day of your birth: 16 Please enter your year of birth: 1997 Your birthday is every…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.
- In C++ Programming, write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions: Federal Income Tax: 15% State Tax: 3.5% Social Security Tax: 5.75% Medicare/Medicaid Tax: 2.75% Pension Plan: 5% Health Insurance: $75.00 Your program should prompt the user to input the gross amount and the employee name. The output will be stored in a file. Format your output to have two decimal places. A sample output follows: Bill Robinson Gross Amount: .......................... $3575.00 Federal Tax: ................................ $ 536.25 State Tax: .....................................$ 125.13 Social Security Tax: ................... $ 205.56 Medicare/Medicaid Tax: ......... $ 98.31 Pension Plan: .............................. $ 178.75 Health Insurance: .......................$ 75.00 Net Pay: ....................................... $2356.00 NOTE: The first column is left-justified, and the right column is…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 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.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++ 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.Write a C++ program which calculates the aggregate of a student. The aggregate can be calculated by the formula: Aggregate = (Matrix_marks*2 + Fsc_marks*4) / 24If the aggregate of a student is less than 150 then the program should display message“You can not be admitted to GCUF” otherwise display the message“Congratulation! You admitted in GCUF “Programing in c This program will calculate how pricy two products will be in 2030. It will begin by asking the user for the current price of the products. Then, it will print these values out, so the user knows the values were saved correctly. Next, it will ask the user for the inflation rate. After this, the program should multiply the current prices by the inflation rate. When done, it should print out the estimated-inflated values. For this task, you will need to define a structure with two members. These two members will be the products whose inflated price will be calculated. In the example I chose salt and soap. You will also need a local variable in main that holds the value of the inflated rate. Lastly, this process should be ran twice, each time for a different country. Therefore, you will need to declare two variables of the same structure type. One declaration for country1 and one for country2. The example is running estimated values for Mexico and Canada. You may implement…
- Qn1: You are asked to write a simple C program that will accept an integer value in the range of 5-95 and as a multiple of 5 representing the number of cents to give to a customer in their change. The program should calculate how many coins of each denomination and display this to the user. Valid coin values are 50, 20, 10 and 5. Your solution (program and algorithm) should be modular in nature. This requires the submission of a high-level algorithm and suitable decompositions of each step. Note that for this problem the principle of code reuse is particularly important and a significant number of marks are allocated to this. You should attempt to design your solution such that it consists of a relatively small number of functions that are as general in design as possible and you should have one function in particular that can be reused (called repeatedly) in order to solve the majority of the problem. If you find that you have developed a large number of functions which each performs…Q1:- From the given figure, write a program in C++ LANGUAGE to read the height of cylinder then calculate the volume and the side area of cylinder in the case that the height of all cylinders is greater than or equal to 4.9955 cm according base radius r height h to these rules: Volume = height the base area ii. Side area = i. %3D base height the base perimeter Suppose the number of cylinders is 500In 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…