Answer:
Here is the Python program:
small_container = int(input("Enter the number of small containers you recycled?"))
large_container = int(input("Enter the number of large containers you recycled?"))
refund = (small_container * 0.10) + (large_container * 0.25)
print("The total refund for returning the containers is $" + "{0:.2f}".format(float(refund)))
Explanation:
The program first prompts the user to enter the number of small containers. The input value is stored in an integer type variable small_container. The input is basically an integer value.
The program then prompts the user to enter the number of large containers. The input value is stored in an integer type variable large_container. The input is basically an integer value.
refund = (small_container * 0.10) + (large_container * 0.25) This statement computers the refund that will be recieved for returning the small and larger containers. The small containers holding one litre or less have a $0.10 deposit so the number of small containers is multiplied by 0.10. The large containers holding more than one litre have a $0.25 deposit so the number of large containers is multiplied by 0.25. Now both of these calculated deposits of containers of each side are added to return the refund that will be received for returning these containers. This whole computation is stored in refund variable.
print("The total refund for returning the containers is $" + "{0:.2f}".format(float(refund))) This print statement displays the refund in the format given in the question. The output includes a $ sign and displays exactly two decimal places by using {0:.2f} where .2f means 2 decimal places after the decimal point. Then the output is represented in floating point number using. format(float) is used to specify the output type as float to display a floating point refund value up to 2 decimal places.
Answer:
This would all depend on what kind of video games you are talking about, most people would say that playing on you phone is like playing a game on a console or a PC.
most kids do play on these three things, so I'm going to go with answer choice C.
Explanation:
Reason why is because just like there are many who play, there are many who don't. I being one who prefers to read would like to make it known that not all teens do play video games, and that there are plenty of those who would rather do something productive.
Most significant digit. That's the same that it's called for any number system.
Answer:
The output to the given code as follows:
Output:
10
100
64
36
16
4
0
4
16
36
64
Explanation:
In the given java code, an integer variable "i" and an array number is defined, which size is 10, in the next step two for loop is declared, that can be described as follows:
- In the first loop, array use loop variable "i" use, which minus the value of 5 and multiplies by 2, and it will calculate the square of that number.
- In the next step, a for loop is declared, that prints these array number variable square.
Answer:
The solution of this question is given below in the explanation section.
Explanation:
To design a database for a new soccer club, the following sequence of activities will be carried out.
_____8_____Create the application programs.
_____4_____ Create a description of each system process.
_____9_____ Test the system. Load the database.
____7______ Normalize the conceptual model.
___1_______ Interview the soccer club president.
___6_______ Create a conceptual model using ER diagrams.
___2_______ Interview the soccer club director of coaching.
____7______ Create the file (table) structures.
____3______ Obtain a general description of the soccer club operations.
____5______ Draw a data flow diagram and system flowcharts.
The correct orders of activities the to design a soccer club database is given below:
- Interview the soccer club president.
-
Interview the soccer club director of coaching.
- Obtain a general description of the soccer club operations.
-
Create a description of each system process.
-
Draw a data flow diagram and system flowcharts.
- Create a conceptual model using ER diagrams.
- Create the file (table) structures.
- Normalize the conceptual model.
- Create the application program
- Test the system. Load the database.