Question: L 0 2 - T 1 : Basic data types, input, calculation, output L 0 2 - T 2 : Combination of character strings L

L02-T1: Basic data types, input, calculation, output
L02-T2: Combination of character strings
L02-T3: Cuts and length of strings
L02-T4: Integer, fixed value, calculation and print formatting
L02-T5: Calculating the mean, formatting the printout, integer and rotation
Submission:
Submit L02-T5 to CodeGrade via Moodle before the deadline.
Note:
Try to use at least one comment in your code
Be especially careful with spaces so that your output follows the sample output. Note that
also each input-string in the program ends with ' n '. The reason for this is that it makes the
output in CodeGrade more readable
If you see some "Code Structure Tests" hidden in CodeGrade but they are not mentioned in
the task description, you don't need to worry about them. They are just there to make sure the
code is ok.
L02-T1: Basic data types, input, calculation, output
Write a program that asks the user for his/her name, an integer, and a decimal number. The
program stores them in different variables whose names you can decide.
Raise the given decimal to the power of the given integer. Display the result as in the example
below using 2 decimal places. End the program by thanking the user.
Example run 1:
Enter your name:
Robin
Enter an integer:
8
Enter a float:
3.46
Decimal 3.46 to power 8 is 20540.39
Thank you for using the program, Robin!
L 0 2 - T 1 : Basic data types, input,

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 Programming Questions!