Programing Tasks – Some of the tasks require general, proper functionality of a user-dened…

Programing Tasks
Some of the tasks require general, proper functionality of a user-dened function and struct
data type. Some of the test cases involve unit testing of your function, independent of your
calls from main(). For this project, organize all code in one le, namely main.c.
1. Dene a struct data type titled Hill that has the following subitems:
a char array of length 20 titled name, which stores the name of the hill.
an int array of length 2 titled loc, which stores the (x, y) coordinates, in order, for
the location of the peak of the hill.
a double variable titled height, which stores the height of the hill.
a double variable titled slope, which stores the steepness parameter for the hill.
2. Write the setHill() function, which should create, assign all subitems, and return a brand
new Hill type variable based on the following inputs to the function (specically in this
order):
a char array of length 20 representing the name of the hill.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now