Write a program that reads the subtotal and the gratuity rate, then computes the gratuity and total.For example, if the user enters 10 for subtotal and 15% for gratuity rate,the program displays $1.5 as gratuity and $11.5 as total.Sample RunEnter the subtotal and a gratuity rate: 10 15The gratuity is $1.5 and total is $11.5Class Name: Exercise02_05

Answers

Answer 1

Answer:

Using Javascript,

function calTotal( subtotal, gratuity){

  gratuityValue = subtotal * (gratuity/100)

  total = subtotal + gratuityValue

  console.log( "gratuity: ", gratuityValue , "\nTotal: ", total)

}

Explanation:

The javascript function above is able to collect two parameters subtotal and gratuity rate in percentage and calculate the total and gratuity value, and displays it on the console.


Related Questions

What are the features that can extend record acees beyong Organization-wide defaults?A. Criteria-based sharing rules.B. Owner-based sharing rules.C. Public or private groups.D. Dynamic role hierarchy.

Answers

Answer: Criteria based sharing rules; Owner-based sharing rules.

Explanation:

The features that can extend record access beyond Organization-wide default are Criteria-based sharing rules and Owner-based sharing rules.

An owner-based sharing rule gives access to the records that certain users own. An example is when the sales manager for a company sees the opportunities that are owned by the sales managers in different locations. For the criteria-based sharing rule, it is not based on the record owners but rather on the record values.

__________ is the most refined and restrictive service model. a) IaaS b) CaaS c) PaaS

Answers

Answer:

c) PaaS

Explanation:

Refined and restrictive service model allows the user to use full package of application stack as demand by the service. It should be noted that "PaaS" is the most refined and restrictive service model.

Platform as a Service known as (PaaS ) is computing platform that gives room for the user in the cloud to manage applications.

PaaS helps to overcome the problem in managing the complexity of software licence. Example of PaaS are window Azure,Apache Stratos.

which bus slot provides highest video performance​

Answers

Answer:

The best slot to use for video cards is the PCI-Express x16 slot. The next best is the AGP slot. The next best is a PCI-Express x1 slot but video cards which fit that slot are very hard to find as of late 2006. The worst choice for a video card is a PCI slot.

Which of the following are provided by most
professional organizations? Check all of the boxes
that apply.
uniforms
a code of conduct
legal representation
a network of professionals
skills validation

Answers

Answer:

B D E mark brain

Explanation:

i got a 100 on the whole lesson

Answer:

2. A code of conduct.

4. A network of professionals.

5. Skills validation.

Explanation: This is the correct answer on Edge 2021, just did the assignment. Hope this helps ^-^.

What is the first step you would take to create a table of authorities?
A. Open the table of authorities dialog box and select text.
B. Select the category before positioning the cursor on the page.
C. Mark citations before opening the Insert Table of Authorities dialog box.
D. Select text and open the Table of Authorities dialog box.

Answers

Answer:

C. Mark citations before opening the Insert Table of Authorities dialog box

Answer:c

Explanation:

You modify a document that is saved on your computer. Where are the changes stored until you save the document?a. Radom access memory RAMb. Read-only memory (ROM)c. Compact disc (CD)d. Universal serial bus (USB)

Answers

Answer:

a. Radom Access Memory (RAM).

Explanation:

If a computer user modifies a document that is saved on his or her computer. This changes are stored on the Radom Access Memory (RAM) until the computer user save the document.

Radom Access Memory (RAM) can be defined as the main memory of a computer system which allow users to store commands and data temporarily.

Generally, the Radom Access Memory (RAM) is a volatile memory and as such can only retain data temporarily.

All software applications temporarily stores and retrieves data from a Radom Access Memory (RAM) in computer, this is to ensure that informations are quickly accessible, therefore it supports read and write of files.

The changes made when a document is modified before saving is stored on; A: Random Access Memory(RAM)

Radom Access Memory (RAM) can be defined as the short term memory of a computer system which makes it to handle all tasks and applications.

Thus means that RAM is a kind of temporary storage that will go off when you shut down the computer. Thus, it is the memory that is required for saving active changes you make before saving.

Read more about Random Access Memory at; https://brainly.com/question/86807

What are 2 ways to access the vendor credit screen in quickbooks online?

Answers

Answer:

First by

Clicking

New Button (+) THEN click Vendor THEN click Credit

Secondly

Click Expenses Center then click New Transaction then finally click Vendor Credit

Answer:

Apply it to an existing unpaid bill, apply it to a future bill

Explanation:

Which of these field types allows multiple, non-exclusive options?

Answers

Question:

Which of these field types allows multiple, non-exclusive options?

A. multi-part

B. checkbox

C. text

D. radio button

E. button

Answer:

The correct option is B) Checkboxes

Explanation:

Field types is a terminology often associated with Database Management.

A field type is often found in a data collection apparatus such a form. It's inherent quality or nature will determine the kind of data that it can collect.

Some field types allow for exclusive options. That is, in some data field types, it's impossible to select more than one option.

For example, a Button field type can only collect one type of value.

A Checkbox on the other can be configured to allow for multiple selections which may or may not be exclusive.

When working with Microsoft Access, for instance, you are required to select the name of the field and define the type of field data.

Cheers!

What kind of keybord is tis ned help pleese I don't no wat itis​

Answers

Answer:

judging by the logo at the top it's a hyperx keyboard and looks to be the alloy core rgb... hope this helps!

hyperX is the brand because it says it right at the top

Steps for assessing the tabs dialog box

Answers

Answer:

A dialog box what that

Explanation:

sorry 1 c3 your times 5

For an activity with more than one immediate predecessor activity, which of the following is used to compute its earliest finish (EF) time? a. the largest EF among the immediate predecessors b. the average EF among the immediate predecessors c. the largest LF among the immediate predecessors d. the difference in EF among the immediate predecessors

Answers

Answer:

The correct option is A

Explanation:

In project management, earliest finish time for activity A refers to the earliest start time for succeeding activities such as B and C to start.

Assume that activities A and B comes before C, the earliest finish time for C can be arrived at by computing the earliest start-finish (critical path) of the activity with the largest EF.

That is, if two activities (A and B) come before activity C, one can estimate how long it's going to take to complete activity C if ones knows how long activity B will take (being the activity with the largest earliest finish time).

Cheers!

The option that will be used to compute its earliest finish time is A. the largest EF among the immediate predecessors.

The earliest finish time simply means the possible earliest times when an individual can be able to complete an assigned activity or project.

For an activity with more than one immediate predecessor activity, to compute its earliest finish time will be the largest EF among the immediate predecessors.

Read related link on:

https://brainly.com/question/17453686

Learning new skills will not help you become a better digital artist: True or false?

Answers

Answer:

false, it'll help a lot

Answer:

false

Explanation:

A network that has locations in different countries is considered a WAN.
a. Trueb. False

Answers

Answer:

True.

Explanation:

Wide area network (WAN) can be defined as a telecommunication network that covers a wide range of geographical locations such as countries or regions across the world for the purpose of communication and sharing information and data between different users.

Hence, a network that has locations in different countries is considered a wide area network (WAN).

Generally, wide area network (WAN) makes it possible for various organizations to interconnect with their branch offices, headquarters and other multiple locations across the globe. Wide area network (WAN) usually span over a distance of 50 kilometers.

Examine the following algorithm.
1. Get the student name.
2. Get the degree program name.
3. Subtract the number of credits taken so far from the required credits for the degree.
4. Get the number of credits required for the degree program.
5. Get the number of credits the student has taken so far.
6. Display the input information in Step 1 and 2.
7. Display the calculated information.
A. What logic error do you spot and how would you fix it?
B. What steps require user interaction (Ex: user must type in some input)?

Answers

Answer:

See the explanation please

Explanation:

A.

The algorithm tries to subtract the number of credits taken so far and the required credits for the degree before getting the number of credits required for the degree program and the number of credits the student has taken so far. Since the values are not known, calculation cannot be done.

Write the step 3 after step 5

B.

Step 1, 2, 4, 5 require user interaction, since it is asking the user to enter values

For this assignment, you will first prompt the user and read in two numbers from them. You need to check and make sure that both numbers are equal to or greater than 0 (can use an if or if/else statement for this). If so, multiply the two numbers together and print the new value to the screen.
If the user enters a number lower than 0, remind the user that they need to enter a number greater than or equal to 0 and exit the program.
Sample Runs
Sample Program Run (user input is underlined)
Please type in two numbers: 100 250
100 * 250 = 25000
Exiting program.
Please type in two numbers: -1 27
Please only enter numbers >= 0.
Exiting program.
(Here's an alternative way to do the same thing:)
Please type in one number: 100
Please type in a second number: 250
100 * 250 = 25000
Exiting program.
Please type in one number: -1
Please type in a second number: 27
Please only enter numbers >= 0.
Exiting program.

Answers

Answer:

number1 = int(input("Please type in one number: "))

number2 = int(input("Please type in a second number: "))

if number1 >=0 and number2 >=0:

   print(str(number1) + " * " + str(number2) + " = " + str(number1 * number2))

else:

   print("Please only enter numbers >= 0.")

print("Exiting program.")

Using a Loop:

while True:

   number1 = int(input("Please type in one number: "))

   number2 = int(input("Please type in a second number: "))

   if number1 >=0 and number2 >=0:

       print(str(number1) + " * " + str(number2) + " = " + str(number1 * number2))

       print("Exiting program.")

   else:

       print("Please only enter numbers >= 0.")

       print("Exiting program.")

       break

Explanation:

*The code is in Python.

Ask the user to enter two numbers

Check if they are both greater than or equal to 0. If they are, print their multiplication. Otherwise, print the remainder message

Print a message says "exiting program"

Note: Since I was not sure if the program keeps going until the user enters a negative value, I wrote two versions of the program. The one that uses the loop continues until the user enters a negative value.

1. Digital videos look sharpest when they are displayed at a resolution that is larger than the frame size.
2. Digital video is a core technology for which of the following?
(a) digital telivision
(b) video conferencing
(c) video messaging
(d) all of the above

Answers

Answer:

(d) all of the above

Explanation:

This is because, not only is digital video a core technology for digital television, it also happens to be a core technology for video conferencing and video messaging. This could be seen in its application in messaging apps for private discussion of for holding official meetings between employees in virtual conference.

Which of the following solutions should an administrator use to reduce the risk from an unknown vulnerability in a third-party software application?
A. Sandboxing
B. Encryption
C. Code signing
D. Fuzzing

Answers

Answer:

A. Sandboxing

Explanation:

The best solution to apply for this task would be Sandboxing. This is a software management strategy that isolates applications from critical system resources and other programs. In doing so you effectively add a secondary security layer on top of the application in order to prevent any and all malware from entering and damaging your overall system. Thus effectively reducing the risk.

Diligent people are as concerned with the ____ as the ___ of their work

Answers

Answer:

Duration; quality/correctness.

Explanation:

Diligence is a way of life. It adds value to a piece of work. When a work is diligently done, it is said to be good or almost perfect. A diligent work evaluates all errors and corrects them from start to finish.

A diligent person takes time to analyse and complete a task to perfection. But diligence also comes with speed. A diligent work as to meet up with deadlines. Diligent people are also as concerned with the speed or duration of their work as to the correctness and quality.

1. When should the architect begin the analysis?
2. What are the activities the architect must execute?
3. What is the set of knowledge domains applied to the analysis?
4. What are the tips and tricks that make security architecture risk assessment easier?

Answers

Answer: c

Explanation:

Because you divide the end to the five

Write a recursive function that receives an array of integers and a position as parameters and returns the count of odd numbers in the array. Let each recursive call consider the next integer in the array.

Answers

Answer:

The following are the description of the recursive method:

public int recursive(int[] x1, int position) //defining a method recursive  

{

   if(position<x1.length) //defining if block that checks position value is less then array length

   {

       if(x1[position]%2==0) //defining if block that checks in array there is even number  

       {

           return 1+recursive(x1, position+1); //use return keyword to call method by incremnent value  

       }

       else//defining else block

       {

           return recursive(x1, position+1);//use return keyword to call method and add 1 in position value

       }

   }

   else//defining else block

   {

       return 0;//return value 0

   }

}

Explanation:

In the given code, a recursive method is declared, that accepts two integer variable "x1 and position", in which "x1" is an array variable, that pass in the function parameter.

In the method, the if block is used that checks the position values is less then array length. Inside this another, if block is used, that checks in the array there is an even number.

In the condition is true, it will call the method by adding the 1. otherwise, go to the else block, in this, it will call the method and add 1 in position variable.  

if the above condition is false, it will go to else block and return a value, that is "0".  

The development of various technologies led to many historic events. Use information from the Internet to describe one major historic event initiated by a technological development or discovery.

Answers

Answer:

The Compass

Explanation:

The compass was one of the foremost technological inventions that forever changed sea navigation.

Before its invention, sailors used landmarks to navigate and when it got dark, they had to stop and wait for daybreak before resuming their journey. Some other people used the inaccurate means of the sun and stars to navigate at sea.

But with the invention of the compass, all these problems were a thing of the past because the compass could provide direction despite the weather or time of the day and as a result, it opened more trade routes and assisted in the Age of Discovery.

Are natural languages capable of expressing algorithms?

Answers

Answer:

Yes.

Explanation:

Natural Language often referred to as Pseudocode, is capable of expressing algorithms. However, it is considered to be extremely difficult to employ due to the following reasons:

1. Natural language is extremely verbose

2. It lacks structure, hence, difficult to locate specific sections of the algorithms.

3. It has expanse meanings.

Therefore, it can be concluded that YES, natural languages capable of expressing algorithms

You can get context-sensitive help information from the Code Editor by_________.A) selecting Contents from the Help menu
B) selecting Index from the Help menu
C) selecting Search from the Help menu
D) positioning the insertion point in a keyword and pressing F1

Answers

Answer:

D) positioning the insertion point in a keyword and pressing F1

Explanation:

In order to get context-sensitive help information from the Code Editor, a user should do the following:

1. call in your code to open the help topic with functions description

2. select the function name and press F1. This will open the topic with the function description

3. a user can view this help in the Microsoft Help Viewer or Web browser, this is based on the Visual Studio IDE Help settings.

Hence, the correct answer is: option D positioning the insertion point in a keyword and pressing F1

Consider the partition problem: given n positive integers, partition them into two disjoint subsets with the same sum of their elements. (Of course, the problem does not always have a solution.) Design an exhaustive-search algorithm for this problem. Try to minimize the number of subsets the algorithm needs to generate.

Answers

Answer:

Please see below

Explanation:

The relevant algorithm has been attached as images herein as part a and part b. There are 2 important steps in solving this query.

First, you need to acquire a sum value of the array. For an odd sum, the output will come out as false since there cannot be 2 subsets whose sums are equivalent to each other.

Second, in case of an even sum, acquire sum divided by two and locate a subset of the array that has an equivalent sum to this (use recursion or dynamic programming).

50 pts. please help ! Explain briefly the role, responsibilities, and required background of the production designer of a film.

Answers

Answer:

Production Designers are responsible for creating and managing the visual aspects of a film, television or theatre production. They work closely with the Director and Producer to create the design style for aspects such as sets, graphics, props, lighting and costumes.

Explanation:

Answer:

The production designer makes sure the film looks good. They are professionally responsible to oversee its visuals. They should know the setting, characters, and time period. They make parts of the film based on the visual aspects. Years of experience regarding film should back them up so that they can manage the movie. They work with the director and producer as well. A style is be portrayed through costumes, lighting, props, sets, etc.

Explanation:

edg2021

I wrote this, change wording

A wall is built of bricks. What force is being applied to each brick from the bricks above? ​

Answers

Answer:

Gravitational Pull is the force that is being applied to each brick.

What type of program can you use to enter your java program?a) compiler.b) editor.c) spreadsheet.d) database.

Answers

Answer:

Editor

Explanation:

A compiler translates languages

A spreadsheet is a document in which data is arranged in columns and rows

A database is a structured set of data held in a computer

An editor allows you to, well, edit code

Hope this helps!

(Please mark Brainliest!)

How to represent derived attributes in database?

Answers

Answer:

Derived attribute can be defined as a type of attribute where its value will be derived from one or more of the other attributes of the same entity set.

Explanation:

An example of derived attribute is when we have an entity set called General. The set then has attributes like [Form], [Characteristics], [Address}, (Employment No).

(Employment No) which is represented distinctly in the attribute set can be called a derived attribute if it can be derived from one or more of the other attributes.

Derived attribute can be gotten through calculating values and not storing values.

For example, let us consider the following record of Teachers records;

(‘Teacher Number’, ‘Name’, ’Date of Birth’, Age today)

(‘E105’, ‘Samson’, ’07-Dec-1990’, 0)

This record shows that the teacher Samson was born on 7th of December, 1990. At the time of record insertion, he was born and 0 years old. What will be the value of his age on ’07-Dec-2000’? It is about 10 years. It clearly shows that the value is not fixed and it is a variable whenever the DOB is adjusted.

Therefore, we are not creating our table with derived attributes in it. Instead, the values ofderived attributes can be calculated at the time of retrieval and shown to the user. Hence, the record will look like as follows;

(‘E105’, ‘Samson’, ’07-Dec-1990’)

This means that 0 is a derived attribute from the Date of birth.

what is TCP/IP adress​

Answers

Answer:

It's a computer networking protocol

Explanation:

TCP/IP stands for Transmission Control Protocol / Internet Protocol.

Hope this helps!

(Please mark Brainliest)

Next
Digital sound recordings capture sound waves and divide them into distinct segments. Each segment is assigned a value. What is
that value called

Answers

Answer:

sampling height

Explanation:

Digital sound recordings capture sound waves and divide them into distinct segments. Each segment is assigned a value. The value is sampling height.

What are sound waves?

Sound waves are defined as the pattern of disruption brought on by sound energy leaving the sound source.

It is also defined as a mechanical wave that develops as a result of the medium's particles vibrating back and forth when the sound wave travels through it.

Sound waves are produced by these vibrations and travel through materials including wood, water, and the air.

The medium's particles move when an object vibrates, as well. Sound waves are the name for this motion, which continues until the particles run out of power.

Thus, digital sound recordings capture sound waves and divide them into distinct segments. Each segment is assigned a value. The value is sampling height.

To learn more about sound waves, refer to the link below:

https://brainly.com/question/21995826

#SPJ2

Other Questions
If DE=23, EF=9, find the value of DF. Add a comma or an exclamation point to the following sentences to set apart the interjection. No _____ I will not give in to your temper tantrum! No _____I don't believe we have received your letter yet. Well _____maybe she can get a ride with someone else. Oh ______ You startled me! So _______ when would you like to eat dinner? Which number in the group below is the largest? -12, -11, -9, -5, -15 what is the SI unit of volume? Question is on the picture Thanks in Advance Greg puts $10,000 into an equity indexed annuity which allows compounding on gains within the annuity. The product has a minimum guaranteed return of 3% annually. Greg's participation rate is 90% of the S&P 500 index in years exceeding the minimum guaranteed return. There is also a cap of 10% on gains. After 3 years and with no fees taken into consideration, Greg is trying to figure out the value of his equity indexed annuity. Returns were as follows:Year 1 - 12.5% Year 2 - -4.0% Year 3 - 5% With these returns, Greg should find that the balance of his annuity is approximately which of the following after year 3? [A] $11,750 [B] $11,840 [C] $12,032 [D] $12,167 HELP ME ASAP HELP ME PLZZZ HELP MEEEEEEEEE Explain the difference between the associative addition and the commutative addition Why would requiring more than a simple majority in order to pass a law be considered a weakness under the Articles of Confederation? Followers of which religion believe that they are God's "Chosen People?OAHinduismBConfucianismJudaismDBuddhism Draw a right triangle and label the hypotenuse and legs Which best describes Sanford Dole's role in achieving US annexation of Hawaii?O He was appointed territorial governor.O He led the committee to overthrow the monarchy.O He owned one of the largest pineapple plantations.O He took the side of the monarchy against the government. Please Help! Answer the question on this picture! if a gymnasium is 80 feet long and 60 feet wide, what will the distance be between opposite corners Is burn a predicate or a subject In 1849, many people moved west to settle in California and hoped to strike it rich by finding Scientist are studying different jackets made for extremely cold A substance has density , mass m, and volume V. If the volume is tripled, what is the new mass? Which river is associated with the settlement of ancient Egypt? A) Tigris, B) Ganges, C) Yellow, D) Nile. When he wrote the Declaration of Independence, Thomas Jefferson may not have recognized that it would be studied and admired by generations. However, the Declaration has gained that status over time. Do you think it should be admired? Why or why not? 5-7 sentences