Answer:
The program in Python is as follows:
qty = int(input("Quantity: "))
price = 100 * qty
if qty >1000:
price = (100 - 0.10 * 100) * qty
print("Cost: "+str(price))
Explanation:
This prompts the user for the quantity
qty = int(input("Quantity: "))
This calculates the price or cost, without discount
price = 100 * qty
This checks if the quantity is greater than 1000
if qty >1000:
If yes, this calculates the price or cost, after discount
price = (100 - 0.10 * 100) * qty
This prints the calculated cost
print("Cost: "+str(price))
Answer:
Automation testing can be used for:
<u>Input-output test
:</u> If the main function of your software is to transform input data into output data you can configure a new test by providing a new input/output pair, then the test will check to see if the output matches with the expected values.
<u>Unit test
:</u> This test is a script to check the return values of a specific code by initializing it and calling his methods. This is a part of a test-driven development process.
<u>Integration test
:</u> This test is a code level script that does a complete check process involving multiple objects. For example, you might make a test for “buy a product” which checks to see if the database is updated, if the data is correct of the person is correct, and if the person placing the order gets the right confirmation email.
<u>Smoke Tests:</u> This test is executed immediately after implementation on production to ensure that the application is still functioning.
When querying a list or table, the use of wildcard symbols maybe used to optimize the search result. The words D*n will return First names which <em>starts with D and ends with n.</em>
- The (*) denotes that the search returns any values or alphabets inbetween D and n.
- Names such as <em>Dean, Don, Drezn</em> and other rated names would be included in the returned query.
Therefore, the returned query would include names starting with the letter D and ends with the letter n.
Learn more : brainly.com/question/25586700
I believe it is 200 per revolution!
Answer:
2.6 seconds
Explanation:
We first start by calculating the speed up
The formula is given as:
n/1+(n-1)F
We have n = 3 which is the number of processors
F = 20% = percentage of algorithm
When we put values into the formula
3/1+(3-1)0.20
= 3/1+2*0.20
= 3/1+0.4
= 3/1.4
Speed up = 2.14
From here we calculate the expected time
T/speedups
= 5.6/2.14
= 2.6
Therefore the expected time is 2.6 seconds