Answer:
Hi Um how do i create an answer/question on here? I have a question about aa qestion on my quiz
Explanation:
Answer:
"double tax_rates[5]= {0.10, 0.15, 0.21, 0.28, 0.31};" is the correct answer for the above question.
Explanation:
- An array is a user-defined data type that is used to define the multiple variables of a single type in a continuous storage location.
- In the C-programming language, When the user wants to declare an array he needs to define with the help of data type and size of the array with the help of the following syntax-- "Data_type variable_name [size_of_the_array];".
- When the user wants to initialize the static value in the array then he can do that by the help of following syntax: "Data_type variable_name [size_of_the_array]={first_value,second_value,....,last_value};
- The above question asked to defined the array of tax_rates name of type double with the above-defined value then he can do that with the help of above-defined syntax (which is defined in the answer part).
Answer:
<em>The programming language in Python is as follows:-</em>
#Prompt user for input string
userinput = input("Enter a string: ")
#Print the last character of the input
print("The last character is "+userinput[-1])
#End of Program
Explanation:
This line is a comment
#Prompt user for input string
This line prompts user for input
userinput = input("Enter a string: ")
This line is also a comment
#Print the last character of the input
This next line prints the last character of the input string; the last character is defined by the index -1
print("The last character is "+userinput[-1])
In this exercise we have to use the knowledge in computational language in python to write a code with circles and squares.
<h3>how to draw geometric figures in python?</h3>
<em>inputs = 100</em>
<em>radius</em>
<em> draw_circle(radius);</em>
<em> pendown()</em>
<em> begin_fill()</em>
<em> circle(radius)</em>
<em> end_fill()</em>
<em> penup()</em>
<em>left(90)</em>
<em>forward(radius*2)</em>
<em>right(90) </em>
<em>penup()</em>
<em>setposition(0,-200)</em>
<em>color("gray")</em>
<em>bottom_radius = int(input("What should the radius of the bottom circle be?: "))</em>
<em>draw_circle(bottom_radius)</em>
<em>draw_circle(bottom_radius)</em>
See more about python at brainly.com/question/18502436