1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
valentina_108 [34]
3 years ago
9

Using Java:

Computers and Technology
1 answer:
mihalych1998 [28]3 years ago
3 0
What’s the question ? What are you suppose to do
You might be interested in
Write a Python function that takes as input parameters base_cost (a float) and customer_type and prints a message with informati
PSYCHO15rus [73]

Answer:

Explanation:

Thanks for the question, here is the code in python

The 3rd example given in question is incorrect

inputs: check_amount = 26.99, customer_type = "generous" --> output: Total owed by stingy customer = $16.83 (with $1.53 tip)

the customer type in the above passed is generous but why the output is showing for stingy, I think this is incorrect

Here is the function, I have given explanatory names so that you can follow the code precisely and also used pretty formatting.

thank you !

===================================================================

def print_tip(base_cost, customer_type):

   TAX_PERCENTAGE = 1.07

   STINGY_PERCENTAGE = 0.1

   REGULAR_PERCENTAGE = 0.15

   GENEROUS_PERCENTAGE = 0.20

   check_amount = base_cost * TAX_PERCENTAGE

   tip_amount = 0.0

   if customer_type == 'regular':

       tip_amount = check_amount * REGULAR_PERCENTAGE

   elif customer_type == 'generous':

       tip_amount = check_amount * GENEROUS_PERCENTAGE

   elif customer_type == 'stingy':

       tip_amount = base_cost * STINGY_PERCENTAGE

   total_amount = tip_amount + check_amount

   print('Total owed by {} customer = ${} (with ${} tip)'.format(customer_type, '%.2f' % total_amount,'%.2f' % tip_amount))

print_tip(20, 'regular')

print_tip(26.99, 'generous')

print_tip(14.99, 'stingy')

8 0
3 years ago
What is the definition of Microsoft Operating System?<br>​
MaRussiya [10]

Answer:

Operating system designed and produced by Microsoft Corporation. Similar to other operating systems, Windows makes a computer system user-friendly by providing a graphical display and organizing information so that it can be easily accessed.

Explanation:

6 0
4 years ago
Read 2 more answers
---------------is a systematic review of a person’swork and achievements over a recent period, usually leading toplans for the f
Rama09 [41]

Answer:

Performance appraisal

Explanation:

Performance appraisal is a systematic review of a person’swork and achievements over a recent period, usually leading toplans for the future.

8 0
3 years ago
While doing research for a newspaper article on different career salaries, Lucinda finds a broad range of salaries for nurses wh
anastassius [24]
From the given situation above, the best suggestion that can be given to Lucinda for a better research tool for her article is that, Lucinda should <span>consult .org websites, perhaps one linked with a nurses’ association, or consult a .gov website with national labor statistics on nursing salaries, both of which are more reliable. The correct answer would be the last option, option D.</span>
7 0
4 years ago
A window frame will expand to fill the entire desktop when you
Dafna1 [17]
Its when you hit the maximize button
5 0
3 years ago
Read 2 more answers
Other questions:
  • If x is an int, which of the following statements adds 5 to the current value of x and stores the new value back in x?
    12·1 answer
  • ​Case-Based Critical Thinking Questions​Case 9-1Melissa, a computer science engineering student, is learning the basics of progr
    11·1 answer
  • Write a program that calculates the balance of a savings account at the end of a period of time. It should ask the user for the
    14·1 answer
  • Write a program to check if an input is a valid hashtag (starts with #, contains only letters, numbers, and underscore, no space
    6·1 answer
  • When was kale discovered?
    9·1 answer
  • A0domain indicates that the computer or DNS name does not exist.
    7·1 answer
  • When creating a documentary, what is not an appropriate source for footage?
    11·1 answer
  • It is very easy to change data into charts<br> what is a Microsoft Excel Microsoft Outlook or both​
    12·1 answer
  • Advertising managers work on websites used in __________?
    13·2 answers
  • Which is the fastest memory in computer​
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!