All must be done in C code.(Thonny)
2. Write a program that asks a user for their age and if they’ve had a birthday yet this year, then tells them what year they were born, using the formatting operator (% format)
3. Write the same program from Question 2, but use the string concatenation for output (+ format)
4. Write a program that asks for age and converts the output to a float.
5. Write the same program as Question 4, but displays 4 decimal places of precision
6. Write a program that outputs the text received by the keyboard to a file named “output.txt”
7. Write a program that copies a file and gives the copy a name requested by the user of the program
8. Write a program that asks for a filename from the user. Then makes a copy of the chosen file (remember that that file needs to exist) and then names the copy the same name as the original, but appended with the string “_copy”.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here