Write a program for a lawn mowing service. The lawn mowing season lasts for twenty weeks. The weekly fee for mowing a lot under 400 square feet is RM25. The fee for a lot 400 square feet or more but under 600 square feet is RM35 per week. The feet for a lot 600 square feet or over is RM50 per week. Input the length and width from the keyboard for twenty weeks, calculate the area of the lawn, determine and display the total of twenty weeks mowing fee.
Q: Write a C program to calculate Gross Salary of an employee. Here’s simple program to calculate Gross…
A: HI THEREI AM ADDING C CODE AS PER ABOVE REQUIREMENT BELOWPLEASE GO THROUGH IT THANK YOU
Q: Write a C program that will provide an ATM user with the proper change for any dollar amount up to…
A: Run the code for $19, $55, and $200 $19 will be split into 4 dollar notes that will be $10, $5, $2×2…
Q: A. write a c++ program that asks the user to enter values for dollar and convert into peso. display…
A: ANSWER:-
Q: 7. Write a C++ program that calculates and prints the bill for a car rental company. The company…
A: C++ Program for above : #include <bits/stdc++.h> using namespace std; //function to…
Q: please enter the side of the square the Area of the square =25 5
A: Given: Create a C++ application that estimates a square's area. The user is asked to enter the side…
Q: 21. Write a C++ program in which the user enters the height in the format feet.inch and the program…
A: Write a C++ program in which the user enters the height in the format feet.inch and the program…
Q: Write a program to calculate electricity bill charged to a consumer. Ask him to enter the units…
A: Please find the answer below :
Q: Write a program in C to calculate and print the Electricity bill of a given customer. The customer…
A: #include<iostream>using namespace std;int main(){ int customer_id, units; string name;…
Q: Write a C++ program that displays a table of speeds in kilometers per hour with their values…
A: Following program will convert the values from Kilometers per hour(KPH) to Miles per hour(MPH)…
Q: Write a program that, given a number of hours, calculates the number of weeks, days, and hours…
A: Question 1 : Algorithm : Step 1 : declaring and initializing the variables. Step 2 : ask for…
Q: hat generates a random number in range between 1 to 10
A: In C++ rand() is an inbuilt function to generate random numbers included in the standard library of…
Q: Programming C Create a program that tells you how much money you have left after buying furniture…
A: C program to show how much money you have left after buying furniture for your home. Create a…
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 reads the test scores of 25 students in the range 0–100. It should then…
A: Start Input 25 values If Input is in range 0-24, increment case1 If Input is in range 25-49,…
Q: Write a C++ program that displays a table of speeds in kilometers per hour with their values…
A: Given, The formula for converting kilometers per hour to miles per hour:…
Q: The members of the board of a small university are considering voting for a pay increase for their…
A: Algorithm : Step 1 : declare arrays. Step 2 : declare variables. Step 3 : use for loop to ask for…
Q: Write a program in C that asks the user to enter a number of seconds and works as follows: • There…
A: Here we are given user input in seconds. We need to convert it into days, hours , minutes, seconds.…
Q: Write a C program to calculate the parking fare for customers who park their cars in a parking lot…
A: Actually, program is an executable software that runs on a computer.
Q: Write a c++/c program that asks the user to enter the size of the side of lot1 and base and height…
A: Step1: Program: //header files #include<iostream> #include<conio.h> //main body int…
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 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: Exercise #2: Write a C++ program that computes a ride you took in taxi. The bill computed based on…
A: Step 1 : Start Step 2 : In the main function , declare the variables to store the input distance ,…
Q: Write the program using c++ that computes an employees pay. The program should input the number of…
A: #include <iostream>using namespace std;int main() { float…
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: Q4:- write a program in c++ language to read the height of cylinder then calculate the volume and…
A: #include <iostream>using namespace std; int main(){ /* Taking input height and radius of…
Q: Write a C++ program to automate the Grocery shop bill for 6 items. The program asks the grocery shop…
A: In the c++ program, add the necessary libraries in the program. To help the program to run without…
Q: The programming language is C++, write a program base on the given statement. Write a program that…
A: #include <iostream> using namespace std; // Defininig the main functionint main(){ //…
Q: Write a program to read basic salary (bsalary) and sales (sales) then calculate and print the net…
A: C++ program for above : #include <bits/stdc++.h> using namespace std; int main() {…
Q: In your C compiler: 1. Given two numbers X and Y. Write a program to determine the difference…
A: #include <stdio.h>int main(){ //1 int X,Y,R; //reading X,Y value from user…
Q: Q4:- write a program in c++ language to read the height of cylinder then calculate the volume and…
A: Here is the solution:-
Q: 7. Write a C++ program that calculates and prints the bill for a car rental company. The company…
A: Code: #include <iostream> using namespace std; int main() { // Declaring arrays with…
Q: In C++ using endl; Write a program that can be used to calculate the federal tax. The tax is…
A: Program: #include <iostream> using namespace std; //function getData void getData(char…
Q: Write a C program that calculates the total amount of money earned by a salesman worker that earns…
A: INTRODUCTION: We need to write a C program to calculate the total amount earned by the salesman.
Q: Write a C++ program: you are now working for an accounting firm. Your employer is interested in…
A: This program accepts the number of hours and pay rate of an employee as input.For 40 regular hours…
Q: Write a C++ program that calculates the area of a square. The main function asks the user to input…
A: PROGRAM INTRODUCTION: Include the required header files. Start the definition of the function to…
Q: c++ programming Write a program whose input is a character and a string, and whose output indicates…
A: #include <iostream>#include <string>#include <cstdio>using namespace std; int…
Q: Write a program that calculates a weekly wage, based on an hourly payrate and how many hours were…
A: Answer:
Q: Write a C Program that allows a user to enter any number of student test scores until the user…
A: EXPLANATION: - A do...while loop is used to read the scores of the students till 999 is not entered…
Q: Develop a C++ program that asks the user to enter a number. If the user enters 1, the program…
A: Start Input ch If ch is 1, Input N, Calculate and print S1 If ch is 2, Input N, Calculate and print…
Q: . In the sport of diving, seven judges award a score between 0 and 10, where each score may be a…
A: The program defines two variables: difficulty: for deciding the difficulty of each dive.…
Q: Write a C program that will calculate the total payment for a brand new car being purchased on…
A: C program: C is a programming language developed by Dennis Ritchie at AT & T Bell Laboratory in…
Q: Write a C++ program to play the lottery. The program prompts the user to enter an initial sum of…
A: logic: define one function to get reverse of number. Define another function to check generated…
Q: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all…
A: #include <iostream>#include <fstream>#include <cmath>#include <iomanip>using…
Q: in C Write a program to calculate the size of a room and the costs to strip and sand, and seal it.…
A: 1) Below is C Program to calculate the size of a room and the costs to strip and sand, and seal it…
Q: 7. Write a C++ program that calculates and prints the bill for a car rental company. The company…
A: #include<iostream>using namespace std;int main(){ char type;…
Q: 01:- From the given figure, write a program in C++ LANGUAGE to read the height of cylinder then…
A: PROGRAM STRUCTURE: Include the required header files. Start the definition of the main function.…
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: 1. Write a C program which will calculate and display the net salary of an employee after tax and…
A: As per our guidelines we are supposed to answer only one question in case of multiple questions.…
c++
Write a program for a lawn mowing service. The lawn mowing season lasts for twenty weeks. The weekly fee for mowing a lot under 400 square feet is RM25. The fee for a lot 400 square feet or more but under 600 square feet is RM35 per week. The feet for a lot 600 square feet or over is RM50 per week. Input the length and width from the keyboard for twenty weeks, calculate the area of the lawn, determine and display the total of twenty weeks mowing fee.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- (Practice) An automobile travels at an average speed of 55 mph for 4 hours. Write a C++ program that displays the distance, in miles, the car has traveled after 1, 2, and so on hours until the end of the trip.(Data processing) Years that are evenly divisible by 400 or are evenly divisible by 4 but not by 100 are leap years. For example, because 1600 is evenly divisible by 400, 1600 was a leap year. Similarly, because 1988 is evenly divisible by 4 but not by 100, it was also a leap year. Using this information, write a C++ program that accepts the year as user input, determines whether the year is a leap year, and displays a message telling the user whether the entered year is or is not a leap year.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 C++ program that displays a table of speeds in kilometers per hour with their values converted to miles per hour. The formula for converting kilometers perhour to miles per hour is: MPH = KPH * 0.6214. In the formula, MPH is the speed in miles per hour and KPH is the speed in kilometers per hour. The table that your program displays should show speeds from 60 kilometers per hour through 130 kilometers per hour, in increments of 10, along with their values converted to miles per hour.in C Write a program to calculate the size of a room and the costs to strip and sand, and seal it. The price to strip and sand the floor is $2.29 per square foot. The price to seal the floor is $1.79 per square foot. Input is the length and width of the room. Output is the square feet, the cost to strip and sand it, the cost to seal it, and the total cost. be sure to include format the output-input the length and width of the room a working Exit Button and calculating button have the correct amounts properly name all controls and variablesC++ 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.
- Need help with a C++ program Write a C++ program that helps a person determine how long they can hike for under various conditions on a given supply of water. Your program should prompt the user to enter how much water they can carry in liters. Then, for each of the following conditions, print out how many hours the user can hike for. - moderate temperature, moderate difficulty: 1/2 liter per hour- moderate temperature, high difficulty: 3/4 liter per hour- high temperature, moderate difficulty: 1 and 1/2 liters per hour- high temperature, high difficulty: 1 and 3/4 liters per hour SAMPLE OUTPUT Hello! Welcome to the Hiking Water Calculator!How many liters of water can you carry? 8 OK. Here is how long you can hike for on 8 liters of water under the following conditions: moderate temperature, moderate difficulty: 16 hoursmoderate temperature, high difficulty: 10.6666666 hourshigh temperature, moderate difficulty: 5.3333333 hourshigh temperature, high difficulty: 4.5714285 hours.…(C PROGRAMMING ONLY) 6. Deal or No Deal?by CodeChum Admin When I was a kid, I used to watch this TV game show, Deal or No Deal? In the game, there are different brief cases, each labeled with a number. Inside each brief case is an amount in Pesos and the goal is to guess which briefcase contains the smallest amount. In this program, instead of just finding the smallest amount, your task is to ask the user for an integer input and print the values in the array smaller than the inputted integer. Instructions: In the code editor, you are provided with an array with 100 elements.Your task is to ask the user for an integer input and then print all the elements in the array whose value is lesser than the inputted integer.Input 1. Inputted integer Output Enter value: 6132450351503022244. In the sport of diving, seven judges award a score between 0 and 10, where each score may be a floating-point value. The highest and lowest scores are thrown out and the remaining scores are added together. The sum is then multiplied by the degree of difficulty for that dive. The degree of difficulty ranges from 1.2 to 3.8 points. The total is then multiplied by 0.6 to determine the diver’s score. Write a c++ computer program that inputs a degree of difficulty and seven judges’ scores, and outputs the overall score for that dive. The program should ensure that all inputs are within the allowable data ranges.
- Write a C program that will calculate the total payment for a brand new car being purchased on installment. The user will input the car price, amount of downpayment made (for 0% to 80% of the car price), interest rate per annum (from 5% to 20%, can be fractional up to 2 decimal places), and the number of months of amortization (12, 24, 36, 48 or 60). Show a summary of the details inputted by the user together with the amount to be financed and the monthly amortization cost. Dispaly a running tally per month of the number of months paid, the total amortization paid (in pesos), and the total running cost of the car. Please provide comments if possible so that i could follow your code easily :)Make a C program Write a program that will calculate and print out bills for the city water company. The water rates vary depending on whether the water is for home use, commercial use or industrial use. A code of H means home use, a code for c means commercial use and a code of I means industrial use. The water rates are computed as follows: code H: P250.00 plus P0.002 per gallon used code c: P5,000.00 for the first 4 million gallons and P0.002 for each additional gallon. code I: P8,000 if usage is more than 4 million gallons but not moe that 10 million gallons and P18000 if usage exceeds 10 million gallons.Write the program using c++ that computes an employees pay. The program should input the number of hours worked in a week and the pay rate per hour. Any hours that are over 40 and less than or equal to 50 will be computed using (1.5 * payrate). Any hours over 50 will be computed using ( 2 * payrate). The output of the program should be regular pay, overtime pay, double pay and total pay. Regular pay is the pay received for the first 40 hours. Total pay is regular pay plus overtime pay plus the double pay. For this assignment use (if-else). Format your output so it looks nice.