Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1- Write a function that takes a weight for a package and the distance it should

ID: 3640468 • Letter: 1

Question

1- Write a function that takes a weight for a package and the distance it should be shipped and displays the charges for the package based on the following:

Weight per 500 miles shipped
2kg or less $1.10
Over 2kg but less than or equal to 6kg $2.20
Over 6kg but less than or equal to 10kg $3.40
Over 10Kg but less than or equal to 20kg $4.60


----------------------------------------------
2- Write a function that takes the string and removes the punctuation marks and spaces from it. Use the string: “I am the Lorax, I speak for the trees… Now, thanks to your hacking my trees to the ground, there's not enough truffula fruit to go round!!!!”

Explanation / Answer

Ans for question 1 #include int main() { float weight=0,distance=0;unitPrice,price; printf("Enter the weight in kg and distance in miles: "); scanf("%f %f",&weight,&distance); if(weight