C++
C++ Write a program that calculates and displays the acreage of a rectangular lot given the width and depth of the lot entered by the user in feet and inches.
Sample Output 1:-
This program calculates the acreage of a rectangular lot.
Enter the width of the lot in feet and inches.
Feet? 75
Inches? 0
Enter the depth of the lot in feet and inches.
Feet? 120
Inches? 0
A lot with a width of 75' - 0" and a depth of 120' - 0" is 0.206613
acres.
Sample Output 2:
This program calculates the acreage of a rectangular lot.
Enter the width of the lot in feet and inches.
Feet? 277
Inches? 8.25
Enter the depth of the lot in feet and inches.
Feet? 250
Inches? 3.5
A lot with a width of 277' - 8.25" and a depth of 250' - 3.5" is
1.59558 acres.
Note: Could you plz go through this code and let me
know if u need any changes in this.Thank You
=================================
#include <fstream>
#include <iostream>
#include <iomanip>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <vector>
using namespace std;
int main() {
//Declaring variables
double feet1,inches1,widfeet,depfeet,area,feet2,inches2;
cout<<"Enter the width of the lot in feet and
inches."<<endl;
cout<<"Feet? ";
cin>>feet1;
cout<<"Inches? ";
cin>>inches1;
widfeet=feet1+(inches1/12);
cout<<"Enter the depth of the lot in feet and
inches."<<endl;
cout<<"Feet? ";
cin>>feet2;
cout<<"Inches? ";
cin>>inches2;
depfeet=feet2+(inches2/12);
area=(widfeet*depfeet)/(43560);
cout<<"A lot with a width of
"<<feet1<<"' - "<<inches1<<"\" and a depth
of "<<feet2<<"' - "<<inches2<<"\" is
"<<area<<" acres."<<endl;
return 0;
}
===============================
Output:

=====================Could you plz rate me well.Thank You
C++ C++ Write a program that calculates and displays the acreage of a rectangular lot given...
Write a program that prompts the user for student grades, calculates and displays the average grade in the class. The user should enter a character to stop providing values.
Write a java program that computes the total surface area of a rectangular prism. There are six sides, so the area of all six sides has to the summed to get the total area. The program should ask the user to enter the length (L), width (W) and the height )H) for the object in inches. Create a separate method from the main to calculate the area (name the method calcArea). The output of calcArea will return a double. Output;...
Part A) Write a C++ program that calculates the area under a curve. Here is the equation: f(x) = x^2 +1.5x +4 You must prompt the user for the beginning and the ending x values. You are to assume, but not check, that the user will put in whole positive numbers. The units are inches. The program input/output should look something like this: This program calculates the area under a curve between two points on the x axis. The equation...
This is a C program. please help me to write a
pseudocode of the program . also, I want the program In a
do...while loop and the screen output should look like in the
picture. please help me.
3.1. Write a program that asks the user to continue to enter two numbers (at a time). For each pair of numbers entered, the program calculates the product of those two numbers, and then accumulate that product. For each pair of numbers...
Write a C++ program that calculates the discount of the original price of an item and displays the new price, and the total amount of savings. This program should have a separate header (discount.h), implementation (discount.cpp) and application files (main.cpp). The program must also have user input: the user must be prompted to enter data (the original price, and the percent off as a percentage). There must also be a validation, for example: Output: “Enter the original price of the...
in java plz
8.13 LAB 3e: Calculate Energy (1) Write a program that calculates the energy needed to heat water from an initial temperature to a final temperature. Your program should prompt the user to enter the amount of water in kilograms and the initial and final temperatures of the water. The formula to compute the energy Q = M * (finalTemperature - initialTemperature) * 4184 where Mis the weight of water in kilograms, initial and final temperatures are in...
C++ Please Follow Instructions Write a program that displays an inches to centimeters conversion table. Your input will be the smallest number of inches and the largest number of inches to be converted. The intervals will be in 6 inch increments. One inch is equivalent to 2.54 centimeters. Include the following in your program: 1. Include an initial algorithm that outlines your steps. 2. Include a refined algorithm that details how each step will be executed. 3. Prompt the User...
Problem 1: Write a program that reads a positive float number and displays the previous and next integers. Sample Run: Enter a float: 3.5 The previous and next integers are 3 and 4. Problem 2: Write a program that reads two integers and displays their sum, difference, product, and the result of their division. Sample Run: Enter two integers: 8 5 Sum: 8, Difference: 3, Product: 40, Division: 1.6 Problem 3: Write a program that reads a three-digit integer from...
In C++, Write a program that reads in a length in meters and will output the equivalent length in feet and inches. Express feet as an integer and inches to the nearest 1/100 of an inch. You must write and use a function that uses the following function prototype to perform the calculation: void MtoFtIn(double meters, int& feet, double& inches); The function should not input any data or print any results, it only does the calculation. Include a loop that...
Write a program that reads two integer values. It then calculates and displays the sum and average of all values between them, Le. if the first value is vi and the second value is 2, then the program calculates and displays the sum and average of all values in the closed range Iv1,2 Your Program must satisfy the following constraints: A. make sure that v1 is less than 2 B. Use a function named getStats(that takes two integer yalues as...