Question: 1) a. Compute n!! Write a program to compute n!! given that n!!=1.3.5.7n if n is odd and n!!=2.4.6.8n if n is even b. Compute

1) a. Compute n!! Write a program to compute n!! given that n!!=1.3.5.7n if n is odd and n!!=2.4.6.8n if n is even b. Compute Fibonacci sequences Write a program to print Fibonacci sequences with the given value n, knowing that: f0 = f1 = 1; fn = fn-1 + fn-2 2) Write a Taxi meter program to calculate the taxi fare for a given mileage. a. The 1st 2km is 15,000 VND b. The next 250m will cost 2000 c. If the travel distance is larger than 30km then each extra km will cost only 5000VND Allow user to input the travel distance in km and print the amount of money to be paid

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!