1) Write down a complete program which declares an integer variable, reads a value from the keyboard into that variable, and writes down the standard output variable's value, twice the value, and square of the value, isolated by spaces. Besides the numbers, nothing else should be written to the standard output except for spaces separating the values.
2) Write down a program which determines the mileage reimbursement for the salesperson at a rate of $.35 per mile.