3. Write a program in C to calculate and print the Electricity bill of a given customer. The customer id., name and unit consumed by the user should be taken from the keyboard and display the total amount to pay to the customer. The charge are as follow Charge/unit RM 1.20 200 and above but less than 400 RM 1.50 400 and above but less than 600 RM 1.80 RM 2.00 Unit upto 199 600 and above If bill exceeds RM 400 then a surcharge of 15% will be charged and the minimum bill should be of RM 100/- Test Data : 1001 James 800 Expected Output : Customer IDNO :1001 Customer Name :James unit Consumed :800 Amount Charges RM 2.00 per unit : 1600.00 Surchage Amount : 240.00 Net Amount Paid By the Customer : 1840.00
Q: In C++ write a program that prints the day number of the year, given the date in the form…
A: Program: A program is a set of instructions used to perform certain tasks. There are various…
Q: Write a program IN C++ that displays current time in GMT in the format hour:minute:second such as…
A: The libraries iostream and ctime are significant to run the programs without the error. ctime…
Q: Q1:- From the given figure, write a program in C++ LANGUAGE to read the height of cylinder then…
A: Program code: // include the required header files #include<iostream> using namespace std; //…
Q: Write a program in C++ to calculate and print the Electricity bill of a given customer. The customer…
A: Please find the answer below :
Q: Write the c program that displays the water invoice price on the screen as follows, according to the…
A: Below is the required code in C language. Program Approach: Include necessary header files to get…
Q: In C++ write a program that prints the day number of the year, given the date in the form…
A: Below is the required code in C++ language. Program Approach: Include necessary header files and…
Q: Q1:- From the given figure, write a program in C++ LANGUAGE to read the height of cylinder then…
A: #include <iostream> using namespace std; int main(){ float height, radius, volume, sideArea,…
Q: Use C++ Write a program with total change amount as an integer input, and output the change using…
A: #include <iostream>#include <vector>#include <sstream>using namespace std; void…
Q: Write a program c++ to calculate the value of purchases of a specific product. The value of one…
A: Given: Write a program c++ to calculate the value of purchases of a specific product. The value of…
Q: In C++, create a program that takes in data from the user input and create a "painting" of that…
A: #include <iostream>#include <string>#include <vector>#include <cstring>//…
Q: Write the program in C++ -Write a program that calculates and prints a cell phone bill. The company…
A: Answer. A C++ program that calculates and prints a cell phone bill, is as under:
Q: I want to solve the question in c++ please Modify your program to make the user enter a quantity…
A: #include <iostream> using namespace std;int input(){ int n; cin>>n; return n;}…
Q: Write C program that calculates the volume and the surface area of a writ write a c program that…
A: When we consider a C program, it can be defined as a collection of objects that communicate via…
Q: Write a program in C++ to calculate and print the Electricity bill of a given customer. The customer…
A: EXPLANATION: Include the necessary header files. Create a function that will take the user input…
Q: Write a C ++ program which take number of consumed unit as input and calculator the electricity bill…
A: Sample Response: //C++ program to calculate the electricity bill#include<iostream>using…
Q: Write a program that inputs a line of text from the user and counts; the total numbers of vowels…
A: Here, we have to write a C program to count vowels, consonants, digits and white space characters. C…
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 C++ program to calculate and display the midpoint coordinates of the line connecting the two…
A: Answer c. Given coordinates, x1 = 3 y1 = 7 x2 = 8 y2 = 12 Formula to calculate midpoint of ( x1, x2…
Q: 03: From the given figure, write a program in C++ base radius r LANGUAGE to read the height of…
A: Given: Volume = height * base area Side Area = height * Base Perimeter.
Q: Write a c# program to calculate and print the bill of a given customer. [2] The customer id., name…
A: C# CODE: using System;class HelloWorld { static void Main() { //taking input…
Q: In C++ 1. Write a program that accepts from the user an amount in Peso. It should compute the…
A: Given: The amount entered by the user in Peso. Also, 1 HK dollar = Php 6.51 1 US dollar = Php…
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: Write a C- program that will calculate and print out bills for the city water company. The water…
A: Write a C- program that will calculate and print out bills for the city water company. The water…
Q: A. Write a C program that reads two integers from the user and displays the result of the division…
A: Introduction: Here we need to write a c program that reads two integers from the user and displays…
Q: 3. Write a complete C program for a restaurant that takes the net profit of each day for 4 weeks…
A: Using procedural approach. Using two dimensional array to store daily salary.
Q: From 2/ b/write a program in C++ language, to calculate the income tax for a person whose daily…
A: The program is written in C++. Check the program screenshot for the correct indentation. Please…
Q: Write a program in C++ that prompts the user to enter five test scores
A: Actually. program is a executable software that runs on a computer.
Q: 2:Write a program in C# Sharp to calculate and print the Electricity bill of a given customer. The…
A: Programming instructions: Create required variables. Take input from the user for id , name and…
Q: xyz is a telecom company,there are three recharge plans as listed below- 10$ - 50 Gb for 28 days…
A: Program Approach - Use the header files as per code requirements. Define the main function and…
Q: Write the c program that displays the water invoice price on the screen as follows, according to the…
A: Here is the C program: // Include necessary header files#include <stdio.h>// Define a main…
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: Write a C# program that converts a temperature given in Fahrenheit to Celsius. Allow the user to…
A: using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace…
Q: : Write a program in C to check a given number is even or odd.Using the function with no arguments…
A: Given: Q #2: Write a program in C to check a given number is even or odd.Using the function with no…
Q: In C++ write a program that prints the day number of the year, given the date in the form…
A: Code: #include <iostream>#include <stdio.h>#include <stdlib.h>using namespace std;…
Q: Write a program in C++ to print the college name, location and area code (Higher College of…
A: A required C++ program to print the college name, location, and area code using symbolic constants…
Q: Q1:- From the given figure, write a program in C++ LANGUAGE to read the height of cylinder then…
A: Introduction of Program: The C++ program provided with the height of cylinder as input value, and…
Q: Write a program in C++ to calculate and print the Electricity bill of a given customer. The customer…
A: to do: Write a program in C++ to calculate and print the Electricity bill of a given customer.…
Q: WRITE A PROGRAM IN C++ TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 GHANA CEDIS AT AN…
A: Program: //Header file #include<iostream> //Using namespace using namespace std;…
Q: Write a C++ program using the for statement to print a list of Euro currencies (from 1 to 5), and…
A: Sample Screenshot:
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: Q20/ Write a program. in c++ to print name of the day depending on the day number using functions.
A:
Q: Write a C++program that calculates the area of a Rectangleif the user inserts 'R' or Y, and the area…
A: #include <iostream>using namespace std; int main(){ char ch; int height , width, base;…
Q: In C++ Write a program whose input is a character and a string, and whose output indicates the…
A: #include<iostream>#include<string> using namespace std; // function to print number of…
Q: Write a C++ program whose display heading on the top as “Admissions in Iqra University” that offers…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: are as follow: Unit Charge/unit upto 199 @1.20 200 and above but less than 400 @1.45 400…
A: EXPLANATION Read the input using readline(); Use if-else if statement to implement all the…
Q: In C++ write a program that prints the day number of the year, given the date in the form…
A: Below is the required code in C++ language. Program Approach: Include necessary header files and…
dont forget the output
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- In 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…Please write the following program in C. Write the complete program with correct syntax. A company named Sheba.xyz has recently moved from their old domain to a new domain.However, a lot of the company email addresses are still using the old one(employeeName@kaaj.com). Write a function in C that takes the email id of an employee asinput and checks whether that email id is updated (I.E. using the new domainemployeeName@sheba.xyz) or not.Sample Input:• fahmid@kaaj.com• zaki@sheba.xyzSample Output:• Email address is outdated• Email address is okayWrite a program in C++ to calculate and print the Electricity bill of a given customer. The customerid, name and unit consumed by the user should be taken from the user and display the totalamount to pay by the customer. The charges are as follow: The output will display customer id, name, unit consumed and total amount of bill. Now, Write a description/Explanation of this program, that how it's working.
- Write a Program in C++ for a grocery shop payment bill/. The program should display the final bill/receipt in the following format with and without setw().( C++ ) Write a program in C++ to print the college name, location and area code (Higher College of Technology – Al Khuwair – 33) using symbolic constants COLLEGE, AREA, CODEThe programming language is C++, write a program base on the given statement. 1. Write a program that computes and assess the TF of the students inone semester, based on the given mode of payment below:PLAN KEY Discount or Interest1. CASH 10% discount2. Two Installment 5% interest3. Three Installment 10% interestThe target user must use the key in selecting or choosing the mode ofpayment. The first input data is the TF, and the second input data is themode of paymentSAMPLE INPUT / OUTPUT DIALOGUE:Enter Tuition Fee : 20000(Press 1 for Cash, 2 for Two installment , 3 for Three Installment)Enter mode of payment : 2Your Total Tuition Fee is : 21000
- In C++ using endl; Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions: Function getData: This function asks the user…Write a short computer program in C++ that will read 10 integer numbers entered from a keyboard and then print the smallest number, the largest number, and the average value. Assume all numbers are in the range [-500 … +500]. Execute the program, entering 10 values scattered across the above range, with 5 non-zero positive numbers, 4 negative numbers, and one zero. It is NOT required that that the program check for invalid entries - you may assume that appropriate values are entered correctly. Submit the source program listing and the results. Example: 30 -25 18 -3 10 0 100 -100 200 -200 Smallest = -200 Largest = 200 Average = 3WRITE A PROGRAM IN C++ TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 GHANA CEDIS AT AN INTEREST RATE OF 30% FOR A NUMBER OF YEARS WHICH WILL BE SPECIFIED BY THE USER.
- C++ Create a program that reads a simple arithmetic expression and evaluates it. More precisely, the program reads from the user a line of text that’s supposed to contain two numbers separated by an arithmeticoperator, as in: 35.6 + 12 The program then prints back the expression and its value, as in: 35.6 + 12 = 47.6 The program should verify that the input line contains two numbers, one operator and nothing else. There can be whitespace before the first number, after the second number and between each number and the operator.The operator can be either +, −, *, or /. In case of an error, the program should print: "Invalid expression" and quit.When the program prints the expression, there should be no whitespacebefore the first number and there should be exactly one blank space beforeand after the operator and the equal sign.Use string streams.In C++ Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%.Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000.Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information:Marital statusIf the marital status is “married,” ask for the number of children under the age of 14Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.)Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions:Function getData: This function asks the user to enter the…Write a whole program using c++ to ask the user for his/her name, age, and gpa, then print on the screen "Hello NAME!, you are AGE years old and your Grade Point Average is GPA.", where NAME, AGE, and GPA are replaced by the values that the user typed. User data should be stored in a struct variable of type userType, which has three components: name of type string, age of type int, and gpa of type double.