write a c++ program to display a calendar for a given year Ask a user to enter the year and the new year's day of the year entered. cout <<"Enter a calendar year to display?"; cout <<" what is the new year's day?";
Q: The Drive-Rite Insurance Company provides automobile insurance policies for drivers. Design a…
A: // Take input from user policy number, customer last name, customer first name, age, premium due…
Q: Write a c++ program where mikayla jylana deposit her money in time deposit at a bank of Php 25000.…
A: #include<iostream> using namespace std; int main(){ float…
Q: Write a program using if-blocks that allows the user to input a taxable income value into a text…
A: According to the Question below the Solution: HTML: <!DOCTYPE html> <html>…
Q: Write a C++ program that will ask the user to input the following: total monthly income, total…
A: House Model Total Contract Price Down Payment Monthly Amortization…
Q: A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a…
A: The main objective of the c++ program is to prompt the user to enter the amount of milk in liters as…
Q: Engineering P4.4.1.9 A mass m is attached to the end of a rope of length r= 3 meters. The rope can…
A: Required: A mass m is attached to the end of a rope of length r = 3 meters. The rope can only be…
Q: language program which should display 4 items (keyboard, mouse, monitor and speaker) with their…
A: Note: As not mentioned I have solved the question in Python language Code: name = ["keyboard",…
Q: A mobile company charges the following rates to the user: For first 5 mins = $5 For next 10 mins =…
A: The input will be name along with minutes of usage and then final bill is calculated and displayed
Q: If money is left in a particular bank for more than 5 years, the bank pays interest at a rate 4.5%;…
A: PROGRAM CODE: #include <iostream> using namespace std; int main(){ int numYears,money;…
Q: A company selling household appliances gives commissions to its salesman determined by the kind of…
A: Procedure Followed: Include header files. Start main method. Declare variables:…
Q: Q6 Answer the following question based on the given statement. "Calculation of electricity meter…
A: Answer: The meter reading code is given below : #include <stdio.h>#include <conio.h> int…
Q: Write a C program that computes the employee’s payroll of ABC Company. The user is first asked to…
A: Name, hours, wage per hour will be the only inputs and then gross, net and all deductions are…
Q: A triathlon is a multiple stage sports competition, where athletes compete for fastest overall…
A: Use a loop to iterate for 50 times and accept the input and store minimum time and respective player…
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: Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the…
A: Store minutes as long int to store longer values
Q: In C++, if the statement ( int a-5, b=2: ) is written at the beginning of the program, then the…
A: I HAVE PROVIDED THE ANSWERS FOR ALL 10 QUESTION 1.ElectricalEng2.4.53.char h='all';4.unsigned5.5…
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: The New Telephone Company has the following rate structure for long a. The regular rate for a call…
A: As not mentioned I have solved the question in C++ language Code:…
Q: You are required to produce a C++ program which solves the following: A worker is paid according to…
A: C++ code :- #include <iostream> using namespace std; int main() { int…
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: 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 program that computes for the values of X, Y and Z, depending upon the choice entered from…
A: Hello Student, hope you are doing well, I will be trying my best to explain and fulfill your query.…
Q: Write a C++ program to automate the Grocery shop bill for 6 items. The program asks grocery shop…
A: In step 2, you will get C++ code. In step 3, you can see the sample output.
Q: Write a C++ program that reads in temperature in Celsius and displays temperature in Fahrenheit;…
A: The below is a temperature conversion formula that converts celsius to fahrenheit is as follows…
Q: The Drive-Rite Insurance Company provides automobile insurance policies for drivers. Design a…
A: According to the information given:- Drive-Rite Insurance Company gives automobile insurance…
Q: Create a C++ program that will input a single letter and printout the corresponding digit on the…
A: Use case statements and group all 6 cases for a single statement
Q: The Kingdom of Aleria uses gold coins and other metals for their money and their exchange rate is as…
A: 1 gold coin is equivalent to 15 silver coins 1 gold coin is equivalent to 25 nickle coins 1 gold…
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: A Computer Science instructor at a computer school wants his students to create a program that…
A: #include<iostream> using namespace std; int main(){ double…
Q: Write a C program to calculate the amount in OMR (Omani riyal) when the amount in INR (Indian rupee)…
A: Step-1: StartStep-2: Declare a integer variable amount and take input from userStep-3: Declare a…
Q: Write a program in C# that will ask user to input his age and determine if he or she is eligible for…
A: Please find the answer below :
Q: Write the reading program: basic salary (bsalary) and sales (sales), then calculate and print the…
A: Here, first you need to declare some variables for all salaries. Then prompt user to enter basic…
Q: 1. Write a simple program to determine the credit card types according to annual income and user…
A: #include <iostream> using namespace std; int main(){ int inc,interest;…
Q: The Kingdom of Aleria uses gold coins and other metals for their money and their exchange rate is as…
A: Algorithm: Start Read no.of gold coins n Ask user's choice of unit output (S- silver, N-Nickel, C-…
Q: Write a program that calculates a weekly wage, based on an hourly payrate and how many hours were…
A: Answer:
Q: Write the reading program: basic salary (bsalary) and sales (sales), then calculate and print the…
A: C++ program is given below
Q: 1. Get three exam grades from the user and compute the average of the grades. Ou average of the…
A: ALGORITHM Start Declare 3 variables- (grade1, grade2 and grade3) of float type Declare another…
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 simple C# console application to accept the item name and item price. The program should…
A: Here is your code with an output .
Q: Write a program to calculates the cost to a company for a proposed raise. The program prompts for…
A:
Q: The Drive-Rite Insurance Company provides automobile insurance policies for drivers. Design a…
A: Since this is a multipart question as per guidelines we are allowed to solve only first three sub…
Q: Ajax Manufacturing needs a program for employees to calculate gross pay themselves in order to have…
A: Working of the flowchart Prompt user to enter hours worked Read hours Prompt user to enter pay rate…
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: Write a C++ program that asks the user to enter the number of books purchased this month and then…
A: Given that, Write a C++ program that asks the user to enter the number of books purchased this…
Q: Using C++ Write a program that will receive two integer items from an operator and display to the…
A: Here, first you need to declare 2 variables for two integers, 4 variables for sum, difference,…
Q: The programming language is C++, write a program base on the given statement. Write a program that…
A: Note: Below is the required program in C++. Programming Approach: Defining necessary header files.…
Q: Hell’s Kitchen decided to make a TV program that allows the user to enter 2 readings for their…
A: Please refer below for the code and output: Language used is C: #include <stdio.h>int…
write a c++
Ask a user to enter the year and the new year's day of the year entered.
cout <<"Enter a calendar year to display?";
cout <<" what is the new year's day?";
a leap year is:
IF year%4 = 0 AND year%100 != 0 OR year%400 = 0
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
- A customer in a supermarket is purchasing four different items. The items and the exact quantities purchased are listed below: Item Quantity Candy 2 Apple 10 Cookies 3 Hot-Dog 5 Write a c++ program that stores the quantities of the four purchased items in four variables. Using the cout object, print the information about the quantities of each item purchased.The programming language is C++, write a program base on the given statement. Write a program that examines the value of a variable called TEMP.Then display the following messages, depending on the valueassigned to TEMP. TEMPERATURE MESSAGE Less than 0 ICEBetween 0 and 100 WATERExceeds 100 STEAMIn order for the bulb to work, 3 buttons must be pressed and the button values must provide exactly the required energy, there should be no more or less. It is assumed that the buttons are pressed simultaneously, the order is not important. If the required energy is provided with the entered button values, the program should output "Bulb On", if not, "Bulb Does Not Light" output. Code the program in C language, following the rules below. 1. The number of buttons and their values will be taken from the user.2. The energy required for the bulb to work will be taken from the user.3. You have to design the program RECURSIVE.4. The triple button groups that provide the required energy do not have to be listed, it is sufficient to send a message to the screen
- Write a C++ program that asks the user to enter the number of books purchased this month and then displays the number of points awarded. An online book club awards point to its customers based on the number of books purchased each month. Points are awarded as follows: Books Purchased Points earned 0 0 1 5 2 15 3 30 4 or more 60Write an application that inputs three integers from the user and displays the sum, average, product, smallest, and largest of the numbers. [Note: The calculation of the average should result in an integer representation of the average. So, if the sum of the values is 7, the average should be 2, not 2.3333….] For C# programmingIn C++ , Write a program for a Bookstore to take an order from a customer, calculate how much to charge a customer based on his/her order, and display a receipt. The store sells only three books, designated by their authors: Cervantes ($41.25 each), Homer ($15.85 each), and Shakespeare ($30.50 each). Your program is to work as follows: Display a welcome message (e.g., “Welcome to the Bookstore!”) Prompt the user for his/her first name Prompt the user to input the number of books by Cervantes s/he wants Prompt the user to input the number of books by Homer s/he wants Prompt the user to input the number of books by Shakespeare s/he wants Compute the total amount due, including a 10% sales tax Display amount due Ask the user how much money s/he will pay Display a receipt listing the name of the user, the quantity of each item ordered, the total cost of the order, and the amount the user will have left after paying Execution of the compiled program should appear roughly as follows…
- Use C++ programming language A customer in a store is purchasing five items. The prices of the five items are:Price of item 1 = $15.95Price of item 2 = $24.95Price of item 3 = $6.95Price of item 4 = $12.95Price of item 5 = $3.95Write a program that holds the prices of the five items in five variables. Display each item’sprice, the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is7%.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…Write a C++ program whose display heading on the top as “Admissions in Iqra University” that offers admission in Computer Science as choice 1, Software Engineering as choice 2, Computer Engineering as choice 3, Business management as choice 4, Pharmacy as choice 5. The program takes integer input as choice number. And their percentage in float. On the basis of their choice decide whether a student is eligible for this department or not. If eligible display message “Your admission is confirmed”. Else display message “change your field”. Selection criteria >=85 Computer Engineering Less than 85 and greater and equals to 82 Computer Science Less than 82 and greater and equals to 79 Software Engineering Less than 86 and greater and equals to 76 Business management Less than 88 and greater and equals to 70 Pharmacy
- 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 program that accepts money in US dollars through an Input Box function and converts it to Kenya Shillings.. The program should output the Kenya Shilling value through a Message Box function upon the click of a command button. (1 US Dollar = 90 Kshs)...please use C language to solve this.Write a simple C# console application to accept the item name and item price. The program should calculate the Value Added Tax(VAT) and print a slip with price, VAT and total price. Assume that the VAT percentage is 15% as in South Africa