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.
The required code which calculates the amount of refund made by returning the containers written in python 3 goes thus :
small_size = eval(input('Enter number of 1L or less containers to be returned: '))
#prompts user to enter the number of small sized containers to be returned
big_size = eval(input('Enter number of containers greater than 1L to be returned: '))
#prompts user to enter the number of big size containers to be returned
small_refund = (small_size * 0.10)
#calculates the total refund on small sized containers
big_refund = (big_size * 0.25)
# calculates the total refund on big size containers
total_refund = float((small_refund + big_refund))
#calculates the Cummulative total refund
print('Your total refund is $' + '{0:.2f}'.format(total_refund))
#displays the total refund rounded to 2 decimal places.
Learn more :https://brainly.com/question/14353514
The goals of _____ are to determine the work load at which systems performance begins to degrade and to identify and eliminate any issues that prevent the system from reaching its required system-level performance.
Answer:
volume testing hope this helps :)
Whoever answers FRIST and it has to be correct so if you don’t know don’t waste your time pls. Anyway whoever answer frist I will give you brainliest and some of my points Which type of photography would you use if you wanted to photograph a fly?
Answer:
I think Ariel photography
Explanation:
I’m not sure, but I think so
Jasmine is using the software development life cycle to create a song-writing app. She wants to work with others to create music. What should Jasmine do to begin the process?
Analyze and document the requirements for building the app
Break up the work into chunks and begin writing the app code
Make improvements and enhancements to the app based on feedback Write pseudocode and create a mock-up of how the app will work and look
Answer:Python's built-in library of functions allows programmers to import pre-written applications.
Explanation:
Answer: Analyze and document the requirements for building the app
Explanation: I took a quiz with that question and guessed and got it right. Other than that, I got nothing
What is the output of the following program?
#include
int main()
11
int arr [5] = {1, 2, 3, 4, 5);
arr [1] = 0;
arr [3] = 0;
for int i = 0; . < 5; -+1)
printf ("d", ar 21);
return 0;
return 0;
The question is poorly formatted:
#include <stdio.h>
int main() {
int arr [5] = {1, 2, 3, 4, 5};
arr [1] = 0;
arr [3] = 0;
for (int i = 0;i < 5; i+=1)
printf("%d", arr[i]);
return 0;
}
Answer:
The output is 10305
Explanation:
I'll start my explanation from the third line
This line declares and initializes integer array arr of 5 integer values
int arr [5] = {1, 2, 3, 4, 5};
This line sets the value of arr[1] to 0
arr [1] = 0;
At this point, the content of the array becomes arr [5] = {1, 0, 3, 4, 5};
This line sets the value of arr[3] to 0
arr [3] = 0;
At this point, the content of the array becomes arr [5] = {1, 0, 3, 0, 5};
The next two lines is an iteration;
The first line of the iteration iterates the value of i order from 0 to 4
for (int i = 0;i < 5; i+=1)
This line prints all elements of array arr from arr[0] to arr[4]
printf("%d", arr[i]);
So, the output will be 10305
Could someone give an example or tell me what all of these mean? (For internet source citing) Evaluation: • Domain Name: • Authoritativeness: • Accuracy: • Timeliness: • Objectivity: •Writing Style and Mechanics: • Graphics: • Links:
Evaluation-the making of a judgment about the amount, number, or value of something; assessment
Domain Name-Is a websites name (ex-Google)
Authoritativeness-The quality of possessing authority. The quality of trustworthiness and reliability.
Accuracy-the quality or state of being correct or precise
Timeliness-the fact or quality of being done or occurring at a favorable or useful time.
Objectivity-the quality of being objective.
Writing Style and Mechanics-Style has to do with how a piece of writing sounds. Everyone has a style which develops along with their writing.
Paragraph structure: Each paragraph should begin with a topic sentence that provides an overall understanding of the paragraph. ...
Sentence length: Sentences should be kept as short as possible so that their structure is simple and readable.
Graphics-are visual images or designs
Links- is an open source text and graphic web browser with a pull-down menu system.
How to you convert (both positive and negative integers) denary to Two’s complement and vice versa?
Answer:
To convert from decimal to binary, one approach is to repeatedly divide by 2 as integer division and write down the remainders from right to left:
example: convert 26 to binary
26 / 2 = 13, no remainder => write down 0
13 / 2 = 6, remainder 1 => write down 1
6 / 2 = 3, no remainder => write down 0
3 / 2 = 1, remainder 1 => write down 1
1 / 2 = 0, remainder 1 => write down 1
So 11010 is your result.
For 2's complement, you have to consider youre entire word size. Let's say you have 8 bit representations, then 11010 is really 00011010.
To get the 2's complement, you invert the binary represenation and add 1:
00011010 => 11100101
11100101 + 1 = 11100110 (understand binary addition for this)
So 11100110 is the binary representation of -26.
You can do this entire sequence in reverse, i.e. subtract one, invert and then go back to the decimal representation:
11010 in decimal is 1·2⁴ + 1·2³+ 0·2²+ 1·2¹+ 0·2⁰ = 26
Which object is a storage container that contains data in rows and columns and is the primary element of Access databases? procedures queries forms tables
Answer:
tables
Explanation:
For accessing the database there are four objects namely tables, queries, forms, and reports.
As the name suggests, the table is treated as an object in which the data is stored in a row and column format plus is the main element for accessing the database
Therefore in the given case, the last option is correct
Answer:
D. tables
Explanation:
took the test, theyre right too
Read the following code used to calculate the total cost of an item with tax: price = input("What is the item price? ") tax = price * 0.065 totalPrice = price + tax There is an error in the code. What type of function needs to be used? (5 points) float() int() print() str()
Answer: float()
Explanation: The code used to calculate total price = tax + price.
price = input("What is the item price? ")
tax = price * 0.065
totalPrice = price + tax
Since the input required from the user will be numerical, that is the price of an item, then it has to be stated explicitly, instead the code throws an error as it will read in a string if not stated explicitly.
Also, Given that the total price calculation will require decimal or fractional calculations, using the float() function will allow the program to read in the user input as a numerical value which can be used in further calculation as the float () function provides flexibity when working with fractional values.
When approved for a loan, an individual essentially applied for aid in the area of...
A. Increasing (and financing) immediate increase in cash flow
B. limited liability
C. future educational services
D. protections and insurance
Answer:
The correct answer is A. When approved for a loan, an individual essentially applied for aid in the area of increasing (and financing), as it implies an immediate increase in cash flow.
Explanation:
Every loan involves the delivery of money by a bank or a financial agency to a person or company, with the consideration that the latter will later return said amount, plus an additional amount for interest, within a specified period and may pay in a single payment and in full or through an installment plan. But, in any case, the immediate result of said loan is an increase in the cash flow of the person who obtains said loan, which can be used for the acquisition of goods or services, or to face different eventual expenses.
what are reserved words in C programming?
Answer:
A word that cannot be used as an identifier, such as the name of a variable, function, or label. A reserved word may have no meaning. A reserved word is also known as a reserved identifier.
Explanation:
quick google search
What is one reason why a business may want to move entirely online?
A. To limit the number of items in its inventory
OB. To double the number of employees
C. To focus on a global market
D. To avoid paying state and local taxes
Answer:
The correct answer is C. One reason why a business may want to move entirely online is to focus on a global market.
Explanation:
The fact that a business wishes to move entirely towards the online sales modality implies that there is a desire to expand the possibilities of selling its products beyond the physical place where it has its store.
It is a reality that starting an online business implies that the offered product can be purchased anywhere in the world, thanks to advances in technology and transportation that allow the product to be purchased and delivered in a matter of days, thanks to the advances produced by globalization.
Therefore, the fact that the store goes from physically to online selling makes its potential customers go from being the ones who know the store and live close to it to everyone in the world with access to internet.
Operations that run in protected mode must go through which of the following before they can access a computer’s hardware? A. Kernal B. Network C. Device driver D. User Interface
Answer:
Option A (Kernal) seems to be the right answer.
Explanation:
A Kernel appears to be the central component of such an OS. This handles machine as well as hardware activities, including most importantly storage as well as CPU power.This manages the majority of the initialization as well as program input/output requests, converting them into CPU data-processing commands.The other given option are not related to the given circumstances. So that option A would be the right answer.
Answer:
kernel
Explanation:
which key Moves the cursor to the previous field data sheet view
Answer: Frequently used shortcuts
To do this Press
Show or hide a property sheet F4
Switch between Edit mode (with insertion point displayed) and Navigation mode in the Datasheet or Design view F2
Switch to Form view from the form Design view F5
Move to the next or previous field in the Datasheet view The Tab key or Shift+Tab
Explanation: I hope this helps
The checksum doesn't compute for a packet sent at the Internet Protocol (IP) level. What will happen to the data?
Answer:
As the data computed in the form of modules such as 23456, then every sixteen positions will have the same values. Checksum doesn't cover all the corrupted data over the network, so unchecked corruption does not occur due to undetected technique.
Explanation:
The checksum is the error detection technique used to determine the integrity of the data over the network. Protocols such as TCP/IP analyzed that the received data along the network is corrupted. Checksum value based on the data and embed frame. The checksum used a variety of data and performed many types of data verification. Files include the checksum and check the data integrity and verify the data. Both Mac and Window include the programs and generate the checksum. But sometime checksum does not detect the error over the internet and cause unchecked.
What form of note taking would be MOST beneficial for a visual learner who needs to see the connections between ideas?
Think link
Formal outline
Time lines
Guided notes
Answer:
Think link
Explanation:
Variables defined inside a member function of a class have: Block scope. Class or block scope, depending on whether the binary scope resolution operator (::) is used. Class scope. File scope.
Answer:
The answer is "Block scope".
Explanation:
In the programming, the scope is a code, in which it provides the variable ability to exist and not be retrieved beyond variable. In this, the variables could be defined in 3 locations, that can be described as follows:
Inside a method or the block, which is also known as a local variable. Outside of the method scope, which is also known as a global variable. Defining parameters for functions known as formal parameters.Create Python program code that will use a for loop to ask the user to enterfourintegers. Itwillcount how many of the integers are divisible by 2. The programwill print each of the 4integers and a message saying whether the integeris even or odd. The code will print the total number of even integers
Answer:
is_even = 0
int_numbers = []
for n in range(4):
n = int(input('press any four integer numbers')
int_numbers.append(n)
for n in int_numbers:
if n%2==0:
print(n, 'integer is even')
is_even+= 1
else:
print(n, 'integer is odd')
print('Total even numbers =', is_even)
Explanation:
is_even = 0 (initiates a counter to record the number of even integers).
int_numbers creates a list to store the inputs entered by the user.
int(input()) : allows users to enter an integer number
int_numbers.append(n) : adds user input to list list variable created.
n%==2 : checks if entered digit leaves a remainder of 0 when divided by 2; hence an even number
is_even+= 1: counter updates by 1 for every even number confirmed.
What is Relational Computerized Database
Answer:
is a software used to maintain relational databases in a relational database software system
Answer:
Relational computerized database uses tables and columns to store data. each table is composed of records and each record is tied to an attribute containing a unique value. This helps the user use the data base by search query and gives the opportunity to build large and complex data bases
What is an example of a conditional formula? When would you use it?
Answer: Conditional formatting allows you to format a cell based on the value in it. For example- if you want to high light all the cells where the value is less than 30 with a red color, you can do that with conditional formatting
Explanation:
In cell B12, enter a formula to calculate the amount budgeted for mileage to/from Airport. The amount is based on the Mileage Rate to/from Airport and the Roundtrip Mikes to Airport locates in the Standard Inputs section.
Answer:
Format the Title and Complete the Input Areas
Your first tasks are to format the title and complete the input area. The input area contains two sections: Standard Inputs that are identical for all travelers and Traveler Inputs that the traveler enters based on his or her trip.
Open e01c1Travel and save it as e01c1Travel_LastFirst.
Merge and center the title over the range A1:E1 and set the row height for the first row to 40.
Apply the Input cell style to the ranges B3:B6, E3:E4, and E6:E7, and then apply the Calculation cell styleto cell E5. Part of the borders are removed when you apply these styles.
Select the ranges A3:B6 and D3:E7. Apply Thick Outside Borders.
Enter 6/1/2018 in cell E3 for the departure date, 6/5/2018 in cell E4 for the return date, 149 in cell E6 for the hotel rate per night, and 18% in cell E7 for the hotel tax rate.
Enter a formula in cell E5 to calculate the number of days between the return date and the departure date.
Insert Formulas
The Detailed Expenses section contains the amount budgeted for the trip, the actual expenses reported by the traveler, percentage of the budget spent on each item, and the amount the actual expense went over or under budget. You will insert formulas for this section. Some budgeted amounts are calculated based on the inputs. Other budgeted amounts, such as airfare, are estimates.
Enter the amount budgeted for Mileage to/from Airport in cell B12. The amount is based on the mileage rate and roundtrip to the airport from the Standard Inputs section.
Enter the amount budgeted for Airport Parking in cell B13. This amount is based on the airport parking daily rate and the number of total days traveling (the number of nights + 1) to include both the departure and return dates. For example, if a person departs on June 1 and returns on June 5, the total number of nights at a hotel is 4, but the total number of days the vehicle is parked at the airport is 5.
Enter the amount budgeted for Hotel Accommodations in cell B16. This amount is based on the number of nights, the hotel rate, and the hotel tax rate.
Enter the amount budgeted for Meals in cell B17. This amount is based on the daily meal allowance and the total travel days (# of hotel nights + 1).
Enter the % of Budget in cell D12. This percentage indicates the percentage of actual expenses to budgeted expenses. Copy the formula to the range D13:D18.
Enter the difference between the actual and budgeted expenses in cell E12. Copy the formula to the range E13:E18. If the actual expenses exceeded the budgeted expenses, the result should be positive. If the actual expenses were less than the budgeted expense, the result should be negative, indicating under budget.
Add Rows, Indent Labels, and Move Data
The Detailed Expenses section includes a heading Travel to/from Destination. You want to include two more headings to organize the expenses. Then you will indent the items within each category. Furthermore, you want the monetary columns together, so you will insert cells and move the Over or Under column to the right of the Actual column.
Insert a new row 15. Type Destination Expenses in cell A15. Bold the label.
Insert a new row 19. Type Other in cell A19. Bold the label.
Indent twice the labels in the ranges A12:A14, A16:A18, and A20.
Select the range D10:D21 and insert cells to shift the selected cells to the right.
Cut the range F10:F21 and paste it in the range D10:D21 to move the Over or Under data in the new cells you inserted.
Format the Detailed Expenses Section
You are ready to format the values to improve readability. You will apply Accounting Number Format to the monetary values on the first and total rows, Comma Style to the monetary values in the middle rows, and Percent Style for the percentages.
Apply Accounting Number Format to the ranges B12:D12 and B21:D21.
Apply Comma Style to the range B13:D20.
Apply Percent Style with one decimal place to the range E12:E20.
Underline the range: B20:D20. Do not use the border feature.
Apply the cell style Bad to cell D21 because the traveler went over budget.
Select the range A10:E21 and apply Thick Outside Borders.
Select the range A10:E10, apply Blue-Gray, Text 2, Lighter 80% fill color, apply Center alignment, and apply Wrap Text.
Manage the Workbook
You will apply page setup options, insert a footer, and, then duplicate the Expenses statement worksheet.
Spell-check the workbook and make appropriate corrections.
Set a 1.5" top margin and select the margin setting to center the data horizontally on the page.
Insert a footer with your name on the left side, the sheet name code in the center, and the file name code on the right side.
Copy the Expenses worksheet, move the new worksheet to the end, and rename it Formulas.
Display the cell formulas on the Formulas worksheet, change to landscape orientation, and adjust column widths. Use the Page Setup dialog box or the Page Layout tab to print gridlines and row and column headings.
HELP I WILL MARK BRAINLIEST!!! I NEED ASAP!!!
Python: With a program to store the list of all your friends, then sort the list and print them in alphabetical order. The program should create a loop to accept the names of all your friends. Exit the loop when the user has no more items to input. Then sort the list alphabetically and print out the new list. (Side Note: Make Sure Your Code Works Before Submitting) Note: You cannot predefine the list of friends. The list should be initialized to an empty list
#This is a way without a loop
friends = list(map(str,input("Enter Names: ").split()))
print(sorted(friends))
#This is a way with a loop (for&&while)
friends = list(map(str,input("Enter Names: ").split()))
cool = True
while cool:
cool = False
for i in range(len(friends)-1):
if friends[i] > friends[i+1]:
coo = friends[i]
friends[i] = friends[i+1]
friends[i+1] = coo
cool = True
print(friends)
IANA has primarily been responsible with assigning address blocks to five regional internet registries (RIR). A tech needs to research address blocks assigned in the United States. Which RIR should the tech contact?
Answer:
The American Registry for Internet Numbers ARIN
Explanation:
The American Registry for Internet Numbers (ARIN) is a not for profit organization that serves as the administrator and distributor of Internet numeric resources such as IP addresses (IPv4 and IPv6) ASN for the United States, Canada, as well as North Atlantic and Caribbean islands
There are four other Regional Internet Registry including APNIC, RIPE NCC, LACNIC and AFRINIC.
Carlos, an algebra teacher, is creating a series of PowerPoint presentations to use during class lectures. After writing, formatting, and stylizing the first presentation, he would like to begin writing the next presentation. He plans to insert all-new content, but he wants to have the same formatting and style as in the first one. What would be the most efficient way for Carlos to begin creating the new presentation?
Answer:
see explanation
Explanation:
Carlos can make a copy of the old presentation that preserves all the formatting, and replace old content with new information.
Answer:
going under the Design tab and opening the template that was created for the first presentation
Explanation:
convert thefollowing decimal number to its equivalent binary, octal, hexadecimal 255
Answer:
Binary: 11111111
Octal: 377
Hexadecimal: FF
Explanation:
Given
Decimal Number: 255
Required
Convert to
- Binary
- Octal
- Hexadecimal
Converting to binary...
To convert to binary, we take note of the remainder when the quotient is divided by 2 until the quotient becomes 0;
255/2 = 127 R 1
127/2 = 63 R 1
63/2 = 31 R 1
31/2 = 15 R 1
15/2 = 7 R 1
7/2 = 3 R 1
3/2 = 1 R 1
1/2 = 0 R 1
By writing the remainder from bottom to top, the binary equivalent is 11111111
Converting to octal...
To convert to octal, we take note of the remainder when the quotient is divided by 8 until the quotient becomes 0;
255/8 = 31 R 7
31/8 = 3 R 7
3/8 = 0 R 3
By writing the remainder from bottom to top, the octal equivalent is 377
Converting to hexadecimal...
To convert to hexadecimal, we take note of the remainder when the quotient is divided by 16 until the quotient becomes 0;
255/16 = 15 R 15
15/16 = 0 R 15
In hexadecimal, 15 is represented by F; So, the above division can be rewritten as
255/16 = 15 R F
15/16 = 0 R F
By writing the remainder from bottom to top, the hexadecimal equivalent is FF
how to use command prompt
Answer:
The answer to this question can be defined as follows:
Explanation:
The Command Prompt is a program, which available in windows operating systems, which imitates an input field with windows GUI(Graphic User Interface). It provides a text-based user interface, that can be used to run instructions inserted and carry out advanced organizational activities, following are the step to open a command prompt:
There are two-step to open the command prompt in windows:
First, go to the start button the window. after open start type cmd on the search bar, It will provide the cmd to open it click with mouse or press enter button. With the help of keyboard press (window+R) key together, after pressing it will provide the run prompt in which we write cmd and press enter. It will open a command prompt panel.(ii)
Give two uses of the Start Menu.
Answer:
used folders, files, settings, and features. It's also where you go to log off from Windows or turn off your computer. One of the most common uses of the Start menu is opening programs installed on your computer. To open a program shown in the left pane of the Start menu, click it
A(n) __________ port, also known as a monitoring port, is a specially configured connection on a network device that is capable of viewing all of the traffic that moves through the entire device.
Answer:
The answer is "SPAN"
Explanation:
The full form of SPAN port is "Switch Port Analyzer", which is used to designed specifically for the interface on a network device, that would be able to monitor all traffic passing across the entire device.
The use of this port will also call the mirror ports, that is a popular way of gathering data traffic for tracking purposes. It is primarily used to access the bus switch and all interfaces, which is usually accessible from data transmission.Which of the following statements about an inner class is true? An inner class is used for a utility class that should be visible elsewhere in the program. An inner class that is defined inside a method is publicly accessible. An inner class that is defined inside a method is not publicly accessible. An inner class that is defined inside an enclosing class but outside of its methods is not available to all methods of the enclosing class.
Answer:
(c) An inner class that is defined inside a method is not publicly accessible.
Explanation:
In programming languages such as Java, inner class (also called nested class) basically means a class inside another class or interface. The following are a few things to note about an inner class
i. Inner classes are used to group classes logically so that they are easy to use and maintained.
ii. An inner class defined inside a method of an enclosing class is not publicly accessible. They are called method local inner class
iii. An inner class that is defined inside an enclosing class but outside of its methods are available to all methods of the enclosing class
iv. An inner class has access to members, including private members, of its enclosing class.
Write a program that checks whether a positive number given by an input from the user is greater than 5 and less than 20 with java in eclipse. Output the result.
Answer:
Program written in Java is as follows
See comments for explanations
import java.util.Scanner;
public class CheckRange {
public static void main (String [] args)
{
// This line allows the program accept user input
Scanner input = new Scanner(System.in);
//This line declares variable for user input
int num;
//This line prompts user for input
System.out.print("Number: ");
//This line gets user input
num = input.nextInt();
/* The following if statement checks if the user input is greater than 5 and less than 20 */
if (num > 5 && num <= 20)
{
/* This line is executed if the above condition is true */
System.out.print(num+" is greater than 5 and less than 20");
}
else
{
/*If the condition is not true, this line is executed*/
System.out.print(num+" is not within specified range");
}
// The if condition ends here
}
}
A data set includes data from 500 random tornadoes. The display from technology available below results from using the tornado lengths (miles) to test the claim that the mean tornado length is greater than 2.2 miles. Use a 0.05 significance level. Identify the null and alternative hypothesis, test statistic, P-value, and state the final conclusion that addresses the original claim. LOADING... Click the icon to view the display from technology. What are the null and alternative hypotheses
Answer:
The answer is:
[tex]H_0:\mu=2.2\\H_1:\mu> 2.2[/tex]
Explanation:
[tex]H_0:\mu=2.2\\H_1:\mu> 2.2[/tex]
The test value of statistic t= [tex]\frac{\bar x-\mu}{\frac{s}{\sqrt{n}}}[/tex]
[tex]=\frac{2.31688-2.2}{0.206915}\\\\=0.56[/tex]
The value of P = P(T>0.56)
=1-P(T<0.56)
=1-0.712
=0.288
Since the P value exceeds its mean value (0.288>0.05), the null assumption must not be rejected. Don't ignore H0. This assertion, it mean length of the tornado is greater than 2.2 miles also isn't backed by enough evidence.