A shop will give discount of 10% if the cost of purchased quantity is more than 1000. Ask user for quantity suppose, one unit will cost 100. Judge and print total cost for user.

Answers

Answer 1

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))


Related Questions

Help brainliest True or False

In Python, the first character in a string has an index position of one.
TRUE/False

Answers

Answer:

False

Explanation:

Hope this Helps! :)

Answer:

False

Explanation:

The first character in the string has an index of 0

Which item is used for formatting in responsive web design?

A.) Adding horizontal scroll

B.) Adding interesting text

C.) Improving image quality

D.) Removing horizontal scroll

Answers

Answer:

B) Adding interesting text

Explanation:

Answer:

Adding interesting text

Explanation:

Match the example with the type of collection.

{'casa': 'house'}


[3, 5]


(3, 5, 'dog')

Answers

Answer: First is a dictionary, second is a list, and third is a tuple

Explanation:

what is the binary for O?​

Answers

Answer:

01001111

Explanation:

Answer:

0000 0000

Explanation:

Suponiendo que el centro de la gravedad de la barra se enchentra a 3 m del punto de apoyo,y su contrapeso, de 4800 N, se encuentra a la distancia indicada en la figura, ¿Cual deberia ser el peso de la barra para que la barrera este equilibrada?

Answers

Answer:

C

Explanation:

because...

Do you think it's better for a young designer to use free, open-source art programs or to pay for commercial programs? Explain your answer, but come up with at least one counterargument that forces you to defend your position when you explain why you think one option is better than the other.

Answers

Answer:

The young designer should use free open-source art programs for his designs. The designer can create new tools and get and update a verse collection of design tools in the software.

Explanation:

An open-source program is a software or application whose source code is available for changes, upgrade and sharing within the public.

Rather than in closed-source software where all upgrades and changes are made only by the tech-company with the license, and the expensive nature of the purchase, the open-source code programs are mostly free with a general public license.  

Which was the first computer network in the world

Answers

Answer:

ARPAnet in 1969

Explanation:

hope this helps :)

Jason works for a restaurant that serves only organic, local produce. What
trend is this business following?

digital marketing
green business
e commerce
diversity

Answers

Answer:

green buisness

Explanation:

green business because it’s all natural and it’s organic

For which of the following situations would it be best to use a heuristic in order to find a solution that runs in a reasonable amount of time?
A Appending a value to a list of n elements, which requires no list elements be examined.
B Finding the fastest route that visits every location among n locations, which requires n! possible routes be examined.
c Performing a binary search for a score in a sorted list of n scores, which requires that fewer than n scores be examined.
D
Performing a linear search for a name in an unsorted database of n people, which requires that up to n entries be examined.

Answers

Answer:

The answer is "Option B".

Explanation:

In this question, determining the optimal path between several locations, which requires n!. It's also examining possible routes. It could just suggest here, designers need to do those equations as we have several forms. They have several methods to find the best and efficient path. Its basic idea is to use heuristic approaches for complex or uncertain issues so we do not provide proven solutions for linear programs.

The situation that should be best to use a heuristic in order to find a solution that runs in a reasonable amount of time is option B.

The following information should be considered:

For measuring the optimal path that lies between several locations that needs n!.It also examine the possible routes. It consist of various methods for determining the efficient path.

Learn more: brainly.com/question/17429689

The role of the
protocol is to make sure communication is maintained.
FTP
IP
ТСР
HTTP

Answers

Answer:

Tcp

Explanation:

Which of the following is a palette of colors, fonts and special effects which complement one another?
O Placeholders
O Theme
O Background
Slide Masters

Answers

Answer:

Theme

Explanation:

How do you access the printing functions and settings in Outlook messages?
O Click the Print button on top of the message in the Reading Pane.
O Open the Print window under the View tab on the ribbon.
O Go to the navigation bar and click the Print icon at the bottom.
O Go to the message and access the Backstage view of the message.

Answers

Answer:

it D Go to the message and access the Backstage view of the message.

Explanation: just trust me

Which details in paragraphs 1-5 contrast with your experience and expectations?

Based on these details,what do you think the setting of the story is?

Answers

Answer:

among us

Explanation:

Based on the following passage on construction technology during the Middle Ages, why might a worker not be allowed to join a guild?
During the Middle Ages, a family worked in a trade for generations, with fathers training sons and passing knowledge along bloodlines.
Masons learned how to carve elaborate gargoyles; glaziers made intricate stained-glass windows. These skilled workers were organized into
guilds, and on a construction site, guild workers were highly esteemed while lower-level unskilled workers completed simple routine tasks.
All laborers were paid.

He did not pass the necessary exams to qualify for guild membership

He had signed a contract forgoing payment in exchange for on-the-job training.

He was not born into a family of skilled laborers

His specialty did not fall under masonry or glazing.

Answers

Answer:

He was not born into a family of skilled laborers

Explanation:

a deque is a type of collection,but it is not automatically available when you open IDLE. What is missing that allows you to use the deque class?

Answers

Answer:

Import

Explanation:

The import instruction does what it sounds like it imports a file class from file function from file it's very flexible.

The import instruction does what it sounds like it imports a file class from file function from file it's very flexible.

What is Import instructions?

When you transition to Shopify from another platform or need to make several adjustments to your products or inventory, importing products into your Shopify store using a CSV file might be helpful.

The data from the CSV file is transformed into products when you import products, and you can choose whether to publish your new products to all sales channels or only your web store.

You have the ability to overwrite any existing goods with the same handle when importing a CSV file. For any columns that are absent, the current values will be used.

Therefore, The import instruction does what it sounds like it imports a file class from file function from file it's very flexible.

To learn more about CSV file, refer to the link:

https://brainly.com/question/29242949

#SPJ2

Complete the static method stringSearch, which returns a String that tells where the first occurrence of the characters (chr) were found ("The characters were found at ____ index.") or it says, "Those characters could not be found." The String to be searched (phrase) and the characters that are being looked for (chr) are passed in as arguments. (9 points) public static String stringSearch (String phrase, String chr) { ** Complete the code ** }

Answers

Well can't do it for you but try using that phrase argument with string compare functionality

KeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnn

Answers

Answer:

Hey

Explanation:

Thank.you for your comment!

Using this feature keeps the message thread intact.


Reply

Opt out

New message

Signature

Answers

Answer:

Option 1: Reply is the correct answer.

Explanation:

Emails are used for business and official communications.

Let us look at the options one by one

Reply:

The reply option opens the email editing window. When the reply option is used the emails then are arranged in the form of a message thread. So the reply option keeps the message thread intact.

Hence,

Option 1: Reply is the correct answer.

Give two examples of search​

Answers

Answer:

goo.gle and ya.hoo

Explanation:

Web browser, book looking up

What types of data can you filter using the
AutoFilter tool? Check all that apply.
text
numeric data
images
sound
DONE

Answers

Answer: A and B

Explanation: just did it on edge

PLS i need help - programming challenge

Write an algorithm that:

· Ask the user to input how many GCSE’s they have.

· They should then be allowed to enter a result for each GCSE grade.

· The computer should work out how many points they have got (9=9, 8=8, 7=7 etc).

· If their score is 40 or over it should output ‘You can go to the sixth form’

· If they their score between 35 and 39 it should output ‘A discussion is needed’

· Otherwise it should say ‘Sorry not enough points.’

Answers

This is written in python 3, so you need to have python and rename the file to GCSE.py

It runs in vanilla python, no addons required.

HELP ASAP! prompt what is search engine?

Answers

Answer:

Prompt Search allows a user to set a keybinding that when activated will open a small popup search bar. This allows the user to search their search engine of choice from anywhere within chrome. It also supports command line style interaction where users can use the up and down arrow keys to navigate previous searches.

Answer:The search engine is a software system that is designed to search the information about anything on the world wide web.

Explanation: got it correct edge

You created a two-dimensional array with the following code.

>>> A = [21, 'dog', 'red']
>>> B = [35, 'cat', 'blue']
>>> C = [12, 'fish', 'green']
>>> E = [A, B, C]
How do you refer to 'cat'?

E[1, 2)

E[1,2]

E[1][2]

E[1,2]

Answers

Explanation:

My answer is E[1][1]

but I don't see it here

Answer:

E[1][2] that is correct I just took t

In video game development, the person who oversees and directs the entire design team and is the key vision keeper is
the

Answers

Answer:

The Lead Designer

Explanation:

The Lead designers main role is to oversee how a game looks and is played. They manage a, normally small, design team. They work with them to come up with many aspects of the game itself like; characters, props, and plots to the game. they also, makes sure that the team itself stays on track, is within budget, and meets the designated deadlines.

In this lesson you wrote code to make the turtle draw squares. Briefly describe how the code for
crawing a rectangle would be different than drawing a square. (Example rectangle at right)

Answers

Explanation:

that programming language you must use?

Menu options are usually selected by _____the mouse.

Answers

Answer:

clicking

Explanation:

right clicking the mouse

Energy requirements of analog and digital signals.

First to get the correct answer is brainliest!

Answers

Analog signals require more energy.

Analog=Constant flowing modulated

Digital is bursts of on/off binary data.

Answer:

Explanation:

Analog requires more energy but I’m still trying to figure out what digital is please let me know if you found the answer

How do I do this? Can someone please tell me.

Answers

Answer:

Below is a quick example of how to do it.  Note though that the instruction to output "annual rainfall to one decimal place" sounds erroneous to me, as I would expect the numbers to be entered as integers (but perhaps I'm wrong).

In my opinion it would be far more sensible to round the average to a single decimal place instead.

start a running tally at zero

set "aboveTally" to zero (this will be used to count which months are above the average)

for each month{

   prompt for rainfall that month, storing it in an array

   Also add that value to the running tally

}

average = tally / 12

// Output list of month's rainfalls, and get a tally of those above average

for each month{

       print month + ": " + amount input for this month

       if total for month > average: aboveTally++

}

//output total anual to one decimal place:

print "total anual rainfall: " + (int)(tally * 10) / 10

//output number of months above the average:

print "Number of months above averayge: " + aboveTally

Using the drop-down menu, complete these sentences to describe algorithms. Algorithms are instructions to solve a problem. Algorithms are when written in a programming language. Algorithms are step-by-step instructions for or to follow to solve a problem. Programmers use algorithms to and .

Answers

Answer:

Algorithms are instructions to solve a problem

Explanation:

Answer:

1. step by step

2. computer programs

3. a person

4. a computer

5. solve logic problems

6. start writing new programs

Explanation:

i just did it and got them all right

What are the first letters of each of the 3 main colors in javaScript? (seperate with commas)

Answers

Answer:

R, G, B

Explanation:

Red, Green, Blue

Other Questions
Help plz:)))Ill mark u Brainliest 1. Egypts floods were When analyzing an allegory, what is one thing a reader should look for while considering a character's traits?clothingactionsobstaclesmotives write an equivalent expression for the following using distributive property A(9b+13) What is an example of a character-versus-society plot?A) Bev wants to keep the lost puppy, but she knows that is not the right thing to do.B) Cathy and her best friend both want to win the same contest.C) Max and his Dad are hiking, and they get lost in the woods.D) Johnny is new at school, and he wants to fit in. has technology made communication better? what is a roan color in cattle is controlled by codominant genes for both red and white hair. if a roan cow is crossed with a white bull, what percentof offspring would be white? will mark brainliest for who can answer these hi 2 questions uh each has 2 questions in them that need to be answered so please don't just answer 1 question part in the question....id k i just need help, please 1. what is a formulary? who pays the cost of items not listed?2. when should you review your health insurance options? why should you review the available plans? What is one theme that sets the modern era apart from previous timeperiods?A. IndustrializationB. Cross-cultural communicationC. TradeD. Religious intolerance Here are some of the tRNA molecules in Lucy's white blood cells. Let's see if tRNA #1 is carrying the correct amino acid for its anticodon.Using the RNA Pairing Rules, find the correct codon for this tRNA's anticodon.Anticodon CCACodon Amino AcidRNA Pairing RulesA UG C If answered correctly, I will give brainliest and 30 points. i also need this asap.The linear functions f(x) and g(x) are represented on the graph, where g(x) is a transformation of f(x):A graph with two linear functions; f of x passes through 5, 0 and 10, 10, and g of x passes through negative 3, 0 and 2, 10.Part A: Describe two types of transformations that can be used to transform f(x) to g(x). (2 points)Part B: Solve for k in each type of transformation. (4 points)Part C: Write an equation for each type of transformation that can be used to transform f(x) to g(x). (4 points) WILL GIVE BRAINLIEST! 100 POINTS! ALIEN AND SEDITION ACTSBy calling people "aliens", how does this allow the government to ignore these people's inalienable rights? Explain your position, why, or why not? Give examples, or evidence. The original price of a CD is 9.95 tax is 4% what the answer How does agriculture affect your daily life? List 3 items that are CRUCIAL to your daily life and where they come from Tyler and Cassie both work as furniture movers on the weekends. The equationy = 35x + 50 represents the amount of money, y, Tyler earns after working hours. The equation y = 25x + 80 represents the amount of money, y, Cassie earns after working x hours. After working how many hours will Tyler and Cassie earn equal amounts? ~Can ~ someone ~ help ~ me ~ out ~ please?~A circular plate has a radius of 22 centimeters. What is the area of the plate? Susan reads a book at a rate of 1 page every 3 minutes. If her reading rate remains the same, which method could be used to determine the number of minutes for her to read 18 page? * I will give brainliest to the first person who answers what -3 + -1 is How has human land use impacted the environment?the answer is for anyone who needs it Ways that humans impact the environment is pollution and deforestation which can cause global warming and mass extinction. When humans pollute the earth they slowly start to cause global warming. When we burn fossil fuels to generate electricity, drive our cars, and power our lives we release heat trapping gasses into the atmosphere which slowly makes the world warmer. Deforestation get rid of some of our oxygen supply but it also can lead to mass extinction. When we cut down and burn trees it gets rid of animals homes. If the animals homes get destroyed they are forced to compete with other animals for their survival. Therefor one animal will survive while the other one dies and if this process occurs frequently it leads to many animals going extinct.