Can some one help me on these problems

a.) Write a program to input the original price of an item and of d, and
determine on what day the price drops to less than half the original
price.
b.) Write a program to input an integer in between 1-9 and print a line of
output consisting of a line of digits from 1-n followed by descending digits
from n-1.

2.Write a program to read a positive integer to determine

1)whether the integer is even or odd
2)whether the integer is prime or not
3)whether the integer is a perfect