Hi well i'm going to be honest our professor gave us this to program I am studying variables and Memory and the book learning c++ by creating game on UE4 engine gives odd examples compared to the problem itself and code.
Can some one program this or show me an example of it so i can better understand it and compare it to my textbook so i don't go back completely blank on Monday. I've been at it for 4 hours and climbing.
"The Problem: Develop a C++ program that solves this problem. A Lawn Mowing company called Lawn Care Inc. would like to enter the dimensions of a lawn for their customers and have the program calculate the total square footage of that lawn. To keep things simple let's say they won't have more than six measurements at a time and that there are now triangle or curve measurements. Since we are limited on our C++ skills; create 6 different variables to store those values when the user enters them. Instruct the user to enter a 1 if they only have four measures for a particular lawn - like this:
Please enter Bob Barkers (6) lawn measurements.
Enter a 1 if you don't have that many measurements to add.
We will learn a more efficient method for this in the future but for now try this exercise.
Once you have the measurements, calculate the total sq footage of the lawn and then use your previous algorithm (assignment 2) to develop code that sets the price per mowing based on:
0 - 3000 sq ft = $25.00 per mowing
3001 - 5000 sq ft = $45.00 per mowing
5001 and above sq ft = $75.00 per mowing.
Make sure you make 3000 = 25.00 as well as 3001, 5000 = 45.00 and 5001 = 75.00 so you have to use the <= and >= symbols instead of just < or >.
Ask the owners name and use it in the program as a string."