Starting from:

$25

ITDSIU19023- Fundamentals of Programming: Lab 01 Solved

Write a Taxi meter program to calculate the taxi fare for a given mileage.
 

The first 2km is 15,000 VND
The next 250m will cost 2000 VND
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.

 

Write a function to calculate the factorial with given integer n, which satisfies the following:
if n is odd, factorial = 1 * 3 * 5 * … * n

if n is even, factorial = 2 * 4 * 6 *… *n

 

Write a function to represent a given integer as product of prime numbers
Example: 24 = 2*2*2*3

 

Input an array of n integers, n is even. Sort the first half in increasing order and second half decreasing order

More products