Starting from:
$30

$24

Area ProgrammingAssignment3

  Project Goals
The goal of this project is to:
1.    Familiarize students with **functions**
2.  Provide students with continued practice with **expressions and selection**.
   Important Notes:
1.    **Formatting**: Make sure that you follow the precise recommendations for the output content and formatting. Your assignment will be auto-graded and any changes in formatting will result in a loss in the grade.
2.    **Comments**: Header comments are required on all files and recommended for the rest of the program. Points will be deducted if no header comments are included.
3.    **Filename**: Save your program as ```area.c```

  Program
Imperial vs Metric!  

We're going to build a program which gets measurements from the user in feet and inches and converts them to meters so we can calculate the area in square meters.   

   The example executable:
An example executable is provided in this repository. You should be able to run it from your project folder.
If you encounter a "permission denied" error when attempting to run the executable, type ```chmod u+x areaExecutable``` into the terminal and try running the executable again.

  Requirements
*main()*  
**Functionality**: The main function should prompt the user for a side measurement in feet and inches. It should then prompt the user for another side measurement in feet and inches. It should then call the appropriate function to convert those side measurements to meters. It should determine which side is the length and width so it can display the appropriate measurement with the appropriate label. Finally, the main function should call the appropriate function to calculate the area and display that area to the screen.

In addition to the main functions, your program should have 2 more functions:

*convertFtToMeter()*  
**Input Parameters**: integer feet value, integer inch value  
**Returned Output**: double meter value  
**Functionality**: This function should convert the feet and inch values to meters. To do this, you can calculate the total number of issues. You can then divide the inches by 39.37 to determine the number of meters. This function should return the converted feet/inches to meters value to the calling function.  

*calcAreaMeters()*  
**Input Parameters**: double side in meters, double side in meters  
**Returned Output**: double square meters value  
**Functionality**: This function should multiply the side parameter values together to calculate the area and return that area value to the calling function.   

  Submission details
To submit your project, you will have to use git on your VirtualBox installation:
1.    After accepting the assignment invitation, copy the clone URL
2.    Type 
```git clone clone URL```
3.    cd into your new assignment directory
4.    After working on your files
5.    When you’re ready, type the following commands: 
```
git add .
git commit -m “your commit message”
git push
```

More products