For this lab you will do 2 things:


Solve the problem in an algorithm

Code it in Python

Problem:


Cookie Calories


A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10 "servings" in the bag and that a serving equals 300 calories. Write a program that asks the user to input how many cookies he or she ate and the reports how many total calories were consumed.


*You MUST use constants to represent the number of cookies in the bag, number of servings, and number of calories per serving. Remember to put constants in all caps!


Make sure to declare and initialize all variables before using them!


Then you can do the math using those constants to find the number of calories in each cookie.


Make this program your own by personalizing the introduction and output.




Sample Output:


WELCOME TO THE CALORIE COUNTER!!

Answers

Answer 1

Answer:

Here is the Python program:

COOKIES_PER_BAG = 40 #sets constant value for bag of cookies

SERVINGS_PER_BAG = 10 #sets constant value for serving in bag

CALORIES_PER_SERVING = 300 #sets constant value servings per bag

cookies = int(input("How many cookies did you eat? ")) #prompts user to input how many cookies he or she ate

totalCalories = cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG)); #computes total calories consumed by user

print("Total calories consumed:",totalCalories) #displays the computed value of totalCalories consumed

Explanation:

The algorithm is:

StartDeclare constants COOKIES_PER_BAG, SERVINGS_PER_BAG and CALORIES_PER_SERVINGSet COOKIES_PER_BAG to 40Set SERVINGS_PER_BAG to 10Set CALORIES_PER_SERVING to 300Input cookiesCalculate totalCalories:                                                                                                                       totalCalories ← cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG))Display totalCalories

I will explain the program with an example:

Lets say user enters 5 as cookies he or she ate so

cookies = 5

Now total calories are computed as:

totalCalories = cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG));  

This becomes:

totalCalories = 5 * (300/40/10)

totalCalories = 5 * (300/4)

totalCalories = 5 * 75

totalCalories = 375

The screenshot of program along with its output is attached.

For This Lab You Will Do 2 Things:Solve The Problem In An AlgorithmCode It In PythonProblem:Cookie CaloriesA

Related Questions

Which of the following practices is NOT recommended when designing with type?
A:Choose fonts that reflect the mood and style of your project. DO NOT- Use all caps or bold unless titles, headlines, logos. (graphics vs text) Type over high contrast BG... Is it readable?
B:Choose colors that have a clear contrast with the background.
C:Use all caps or bold text for paragraphs.
D:Make your headings and titles larger than the paragraph text.

Answers

Answer:

C

Explanation:

Typically speaking BOLD OR CAPS CAUSE THE PARAGRAPH TO BE HARD TO READ AND NOT CLEAN IN TERMS OF DESIGN.

But keeping general capitical rules and using italics to put emphasis in the paragraph is much easier to read, and much cleaner to the eye.

Type the correct answer in the box
in which phishing technique are URLs of the spoofed organization misspelled?
anon
is a phishing technique in which URLs of the spoofed organization are misspelled

Answers

Answer: Link manipulation

Explanation:

Answer:

Typo Squatting

Explanation:

Works in the public domain have copyright that are expired or abandoned true or false

Answers

Answer:

False

Explanation:

Only one of the two are true. Works in the public domain have a copyright that has expired only. E.g. Works of classical music artist, are almost always expired, in accorance with American Copyright law. Abandoning a copyright doesn't do anything because so long the copyright has remained unexpired, the copyright remains. Thats why it can take decades for a new movie in a series to release, like "IT" by Stephen King. The copyright hasn't expired but rather was 'abandoned'. Before "IT" 2017 was relasesed, the copyright was abandoned.


Describe how to manage the workspace by putting each feature under the action it helps carry out

Answers

Answer:

Viewing Documents one at a time:Windows+tab keys,

Windows taskbar

Viewing documents at same time:

Snap,Arrange all

Explanation:

 The workspace can be managed by putting control of the surroundings it's far important that you examine all of the factors and items found in your area.

What is the workplace for?

Workspaces had been round in Ubuntu properly earlier than the transfer to Unity. They essentially offer you a manner to organization home windows associated with comparable duties together, in addition to get "additional" screenspace.

The subsequent step is to outline a logical and optimizing feature for the factors with a view to continuing to be on your surroundings, defining that each of them may be capable of carrying out an easy and applicable project for his or her paintings.

Read more about the workspace :

https://brainly.com/question/26463698

#SPJ2

Which function is used to display a string value to the screen?

print()
main()
run =
Hello, World!

Answers

I believe the answer would be print

Answer:

print()

Explanation:

PV = 11,000 AC = 6000 CV = 4,000. What is SV? What does this calculation tell you?

Answers

Answer:

I don't see an SV in the examples.. I suspect these are the name plate numbers off of a transformer... but.. more context would really help

Explanation:

1.2
Is media a curse or a blessing? Explain.​

Answers

Answer:

i think its both because if there is misunderstanding between media and government then the media distroys the government and if there us no misunderstanding between media and government and if it goes smoothly then its like a blessing for government

Answer:

Media is a blessing...a curse as well when it's misguiding the world and hiding the real sinner and juxtaposing the culprit as the saviour

Edhesive 3.2 Lesson Practice question 1

Answers

value = float(input("Enter a number: "))

if value > 45.6:

   print("Greater than 45.6")

I hope this helps!

The program for the given output can be find in the explanation part which will show the answer "greater than 45.6" if the number exceeds than the digit.

What is computer programming?

The development of individual pieces of software that allow the entire system to function as a single unit is referred to as systems programming.

Many layers are involved in system programming, including the operating system (OS), firmware, and development environment.

The complexity of the instructions that computers comprehend is the primary reason why programming is considered difficult to learn. You cannot instruct computers in English or any other human language.

Individuals interested in becoming computer programmers must first obtain a degree in computer science, information technology, mathematics, or a related discipline.

value = float(input("Enter a number: "))

if value > 45.6:

print("Greater than 45.6")

Thus, above mentioned is the computer program that will give the required output.

For more details regarding computer programming, visit:

https://brainly.com/question/3397678

#SPJ5

Why is the expression “Visiting a Website” confusing?

Answers

Answer:

See explanation

Explanation:

Visiting implies going to a place physically; So, when you say you want to visit a website, in the actual sense, it should mean that you are going to a website physically.

However, a website is not a physical place where you visit, so visit in this case means that you want to see the content of a website through its web address.

So, because you can't visit a website like going there physically, then it's confusing to say I want to visit a website.

What are the steps In order that Jonah needs to follow to view the renaissance report ?

Answers

Incomplete question. The full question reads;

Jonah needs to add a list of the websites he used to his report. He opens the "Websites" document and copies the information. He now needs to change his view to the "Renaissance" report to add the information before saving his report.

What are the steps, in order, that Jonah needs to follow to view the "Renaissance" report?

Click on the View tab.

Go to the ribbon area.

Click on the "Renaissance" report.

Click on the Switch Windows tab.

Explanation:

Step 1.

Jonah should⇒ Go to the ribbon area

Step 2.

At the ribbon area, he should find and⇒ Click on the View tab.

Step 3.

Next⇒ Click on the Switch Windows tab.

Step 4.

Lastly, he can then⇒ Click on the "Renaissance" report.

HTTP is the protocol that governs communications between web servers and web clients (i.e. browsers). Part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. Some of the codes and their meanings are listed below:


200, OK (fulfilled)

403, forbidden

404, not found

500, server error

Given an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.

I need this answer in java not c++ and i can't seem to find a java answer

Answers

Answer:

Here is the JAVA program:  

class Main {  //class name

 public static void main(String[] args) {  //start of main method

   int status = 200;  //sets status to 200

   switch( status ){  //switch statement

case 200:  //if code is 200

System.out.println("OK (fulfilled)");  //displays OK (fulfilled) if case is 200

break;

case 403:  //if code is 403

System.out.println("forbidden");  //displays forbidden if case is 403

break;

case 404:  //if code is 404

System.out.println("not found");    //displays not found if case is 404

break;

case 500:  //if code is 500

System.out.println("server error");  //displays server error if case is 500

break;

default:  //if status is set to code other than above codes

System.out.println("Unknown code");  //displays Unknown code

break;   }    }   }

Explanation:

If you want to take the status code as input from user then use the following statements:

int status;

Scanner input = new Scanner(System.in);

System.out.print("Enter status code: ");      

       status= input.nextInt();

After this you can add the switch code chunk in the Answers section. Also import the Scanner class to take status code as input from user:

import java.util.Scanner;

The screenshot of the program along with its output is attached.

Which line will be run?
A. The first line
B. The second
line
// 10 - 8 + 3
18 + 7 + 365
C. Both
D. Neither

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The give code is:

// 10 - 8 + 3

18 + 7 + 365

the given lines of code, if you run it as it is given in the question then the answer is D. Because these lines will run by the compiler but give an error because these lines are not properly written.

However, if we consider, that these lines of codes are correct then the second line will run and the first line will not run because the first line is a comment. Before the beginning of the first line, there is a "//" that shows a comment line. it is a singal line comment and the compiler will not run the comment line.

HELPPPP!!!!
How are unethical practices in the digital sphere the same as or different from such practices in the offline world ?

Answers

It might not seem as if these questions have much to do with your future self as a professional, but theydo. Being ethical online is as important to future employers as being ethical in the workplace. Knowingwhat is ethical and thinking about how to handle these situations will affect the way you handle dilemmasthat come up in the professional world. Online behavior is also one way you shape yourself as a personof integrity. Remember,integrityis the quality of being honest and having strong moral principles. Thedigital realm is a very important arena for exercising integrity

Future employers place equal value on online ethics as they do on ethics in the office. You'll be able to handle ethical difficulties that arise in the workplace better if you are aware of them and consider how to approach them.

What are ethics?

Ethics are defined as a subfield of philosophy that "systematizes, defends, and counsels conceptions of right and wrong behavior."  The Fundamental Ethics Principles. The four ethical tenets are beneficence, nonmaleficence, autonomy, and justice. In order to tell the truth, maintain our word, or assist a stranger in need, we must follow ethical principles.

One method to develop yourself as a person of integrity is through your online behavior. Keep in mind that having integrity means being trustworthy and adhering to high moral standards. The internet world is a crucial space for upholding integrity.

Thus, future employers place equal value on online ethics as they do on ethics in the office. You'll be able to handle ethical difficulties that arise in the workplace better if you are aware of them and consider how to approach them.

To learn more about ethics, refer to the link below:

https://brainly.com/question/11992384

#SPJ2

Write a recursive function that prints out the items of a (possibly empty) singly linked list of integers in reverse order. The function should run in linear time.

Answers

Answer:

Follows are the method definition to this question:

void Reverse_Order(struct Node* h)//defining a recursive method Reverse_Order that takes structure in parameter

{

if (h == NULL)//use if block to check head equal to null

return;//use return keyword

Reverse_Order(h->next);//call method recursively

cout<<h->data;//print data

}

Explanation:

In the above code, a recursive method "Reverse_Order" takes structure as the parameter, and inside the method, structure variable h is used that uses the if conditional statement to check the header equal to null.

In the condition is true, it will use the return keyword, and in the next step, it calls the method recursively, and print its value in the reverse order.

The intersection of a column and row is called a?
worksheet
label
cell
formula

Answers

Answer:

cell

Explanation:

Answer:

Cell

Explanation:

1. I took the test and got it right

2. process of elimination How? worksheet is wrong just by looking at it label isnt correct cause you dont label it. and formula that made no sense what so ever. So i picked the most reasonable answer (Cell) :)

PELASE HURRY
How does passing by reference work in Java?

Answers

Answer:

Explanation:

The Java programming language does not pass objects by reference; it passes object references by value. Because two copies of the same reference refer to the same actual object, changes made through one reference variable are visible through the other.

The best method to prevent information on a disk from being discovered is to: A) use DOD overwrite protocols in wiping information from the disk. B) put the disk and the computer under water. C) melt the plastic disk contained within a hard drive container. D) smash the drive with a stout hammer

Answers

Answer:

C) Melt the plastic disk contained within a hard drive container

Explanation:

Data protection is very necessary from keep saving information from those that are not eligible to access it. It helps to avoid phishing scams, and identity theft.Alot of information are stored on the harddisk daily which can be read by disk drive, as situation can warrant prevention of third party from discovering information on it.There is hard platter used in holding magnetic medium in hard disk which make it different from flexible plastic film used in tapes.The disk drive container helps to hold as well power the disk drive.

It should be noted that The best method to prevent information on a disk from being discovered is to firstly

Melt the plastic disk contained within a hard drive container.

Match the code to the image that it will produce

Answers

there is no image to look at it

Tony Stark wants to build a 1000 meter high tower as quickly as possible. He has unlimited resources and an unlimited budget and is willing to spend any amount to get the job done.

He has chosen to build the tower with blocks that are 100 meters long and 100 meters wide, but only 1 meter tall. The blocks interlock on top and bottom (like legos). They cannot be stacked sideways.

Using special lifters, putting one block on top of another block takes one week. Putting a stack of up to 100 blocks on top of another stack of 100 or less also takes a week. If either stack is more than 100, it takes two weeks.

What is the shortest amount of time that it will take to build the tower?
Why is your answer the shortest amount of time?
How did you solve the problem? What is your algorithm?

Answers

Answer:

10 weeks

Explanation:

100 blocks stacked over 10 weeks will be 1000 meters tall

1000 divided by 100 equals 10

The shortest amount of time it will take to build the tower is 10 weeks.

How can the tower be built in the shortest amount of time?

To minimize the construction time, Tony Stark can follow a strategy where he first builds 10 stacks of 100 blocks each, which will take 10 weeks.

Then, he can stack these 10 stacks on top of each other in a single week since they are all 100 blocks or less. By doing so, he can complete the tower in a total of 10 weeks.

Read more about tower construction

brainly.com/question/30730573

#SPJ2

Given the list my_list containing integers, create a list consisting of all the even elements of my_list. Associate the new list with the variable new_list.

Answers

In python:

new_list = [x for x in my_list if x % 2 == 0]

The list consisting of all the even elements of my_list is given in explanation part.

What is list?

A list is a series of different variables that are all gathered under one common name. You can specify a single variable x instead of developing a program with numerous variables like x0, x1, x2, etc.

Lists are used to group objects together that typically include components from several data types. Another essential element that collects several instances of the same data type is an array.

Another programming method that will be helpful to our algorithm development is the use of lists because many algorithms need the manipulation of collections of data.

Similar to a variable, a list which is also referred to as an array that is a tool for storing data.

It can be defined as:

new_list = []

for i in my_list:

if i % 2 == 0:

new_list.append(i)

Thus, this can be the code for the given scenario.

For more details regarding programming, visit:

https://brainly.com/question/11023419

#SPJ5

Student Generated Code Assignments Option 1: Write a program that will read in 3 grades from the keyboard and will print the average (to 2 decimal places) of those grades to the screen. It should include good prompts and labeled output. Use the examples from the earlier labs to help you. You will want to begin with a design. The Lesson Set 1 Pre-lab Reading Assignment gave an introduction for a design similar to this problem. Notice in the sample run that the answer is stored in fixed point notation with two decimal points of precision. Sample run: Option 2: The Woody furniture company sells the following three styles of chairs: Style Price Per Chair American Colonial $ 85.00 Modern $ 57.50 French Classical $127.75 Write a program that will input the amount of chairs sold for each style. It will print the total dollar sales of each style as well as the total sales of all chairs in fixed point notation with two decimal places.
Sample run:
Please input the first grade 97
Please Input the second grade 98.3
Please Input the third grade 95
The average of the three grades is 96.77

Answers

In python:

first_grade = float(input("Please input the first grade "))

second_grade = float(input("Please input the second grade "))

third_grade = float(input("Please input the third grade "))

print("The average of the three grades is {}".format( round((first_grade + second_grade + third_grade) / 3,2)))

First_ grade = float(input("Please input the first grade ")) and second_ grade = float(input("Please input the second grade ")), third_ grade = float(input("Please input the third grade.

What is Program?

A computer utilizes a program, which is a collection of instructions, to carry out a particular task. A program is like a computer's recipe, to use an analogy.

It has a list of components (known as variables, which can stand for text, graphics, or numeric data) and a list of instructions (known as statements), which instruct the computer on how to carry out a certain operation.

Programming languages with particular syntax, like C++, Python, and Ruby, are used to develop programs. These high level programming languages are writing and readable by humans.

Therefore, First_ grade = float(input("Please input the first grade ")) and second_ grade = float(input("Please input the second grade ")), third_ grade = float(input("Please input the third grade.

To learn more Programming, refer to the link:

https://brainly.com/question/11023419

#SPJ2

For everyday files that users will use regularly on a user's own Word-compatible computer, the best file format to save as is: o PDF. DOCX ORTE. OTXT.​

Answers

Answer:

DOCX? I think

Explanation:

Two middle-order batsmen are compared based on their performance in their previous cricket match.
Batsman A got 9 runs more than Batsman B and Batsman A's runs are 56% of the sum of both their runs.
What runs did Batsman A and B score, respectively?

Answers

How many points is this for

Call the favoriteFruit function with parameter "pineapple". I'm stuck and probably doing it all wrong. Can anyone help?

Answers

In this example, we simply have to call the function.

favoriteFruit("pineapple");

Your output will be "My favorite fruit is pineapple."

________________________ is an information system that stores user data in many different geographical locations and makes that data available on demand.

Answers

Answer:

CDN(content delivery network)

Explanation:

Content delivery network(CDN) which can as well be regarded as Content Distribution Network helps in acheiving high website performance, it essential in reduction of latency, through making the time a request is made using a website to when the website is fully loaded to be short and Minimal. It important in a situation whereby there is traffic loads from the users as well as server. It should be noted that CDN

is an information system that stores user data in many different geographical locations and makes that data available on demand. CDN's usefulness is also found in Cloud computing network such as Software as a service(SaaS). Google doc is an example.

In much of the world, SI units are used in everyday life and not just in science. Why would it make sense for people in the United States to use SI units in everyday life, too?

Answers

Answer:

The use of SI is a way to standardize all measurements.

Explanation:

The use of SI is a way to standardize all measurements. In this way, people all over the world can communicate the data without any confusion. This allows them to exchange quantitative information when it comes to business and science in an effective and convenient way.

Why would a programmer use a web library?

a
to learn about the history of a programming language
b
to quickly insert functions and code into web pages
c
to find books available in their area
d
to see what websites looked like before they were updated

Answers

A programmer that uses a web library quickly inserts functions and code into a web page. The correct option is b.

What is a web library?

Programming libraries are helpful resources that can speed up the work of a web developer. They offer pre-written, reusable portions of code so that programmers can easily and quickly create apps.

A library is a group of documents, applications, scripts, routines, or other pieces of code that can be used as references in computer programming.

Therefore, the correct option is b. to quickly insert functions and code into web pages.

To learn more about web library, refer to the link:

https://brainly.com/question/30137392

#SPJ1

Write a program that declares variables named init1, init2, and init3, to hold your three initials. Display the three initials with a period following each one, as in J.M.F.

Answers

Answer:

Written in Python

init1 = input("initials 1: ")

init2 = input("initials 2: ")

init3 = input("initials 3 ")

print(init1+"."+init2+"."+init3)

Explanation:

This line prompts user for init1 and gets the input

init1 = input("initials 1: ")

This line prompts user for init2 and gets the input

init2 = input("initials 2: ")

This line prompts user for init3 and gets the input

init3 = input("initials 3 ")

This line prints out the required output

print(init1+"."+init2+"."+init3)

Identify the computer cycle in each of the descriptions below by choosing the answer from the

drop-down menus.

The keyboard and mouse are examples of

devices.

The part of the information processing cycle in which raw data is received is known as

The part of the information processing cycle where raw data is converted into meaningful information is

The type of memory used during the processing cycle is

The series of mathematical steps taken by the CPU during processing results in

Answers

Answer:

1. Input.

2. An input.

3. Processing.

4. Random Access Memory (RAM).

5. An output.

Explanation:

1. The keyboard and mouse are examples of input devices.

2. The part of the information processing cycle in which raw data is received is known as an input.

3. The part of the information processing cycle where raw data is converted into meaningful information is processing.

4. The type of memory used during the processing cycle is Random Access Memory (RAM).

5. The series of mathematical steps taken by the CPU during processing results in an output.

Answer:

1. Input

2. Input

3. Processing

4. Random Access Memory (RAM)

5. Output

Explanation: Just did it on edge 2023!

Is 583 a string or a number?

Answers

It is a number that is the answer

Answer:

a string

answer

Other Questions
what is the concept of the doppler effect? Your company is planning to build a pipeline to transport gasoline from the refinery to a field of storage tanks. The parameters for the prototype system are a pipe diameter of 1 m, with a flow velocity of 0.5 m/s at 25C. The model system will use water at STP with a geometric scaling factor of 1 : 20. What fluid velocity is required in the model system to guarantee kinematic similarity in the form of equal Reynolds numbers? A person has a reasonable chance of surviving an automobile crash if the deceleration is no more than 30 "g's" (g = 9.8 m/s^2). Calculate the force on a 65 kg person accelerating at this rate. * Use the square to answer the question.5 in.What is the perimeter of the square?A 10 inchesB. 15 InchesO c. 20 InchesO D. 25 inches What are the functions of four registers? Barb is a freshman attending a 4-year college. She has been approved for a $12000subsidized federal loan at 4.29% for 10 years. How much will the U.S. Department ofEducation pick up in interest costs during her 4.5-year non-payment period? What kind of taxes are likely to pay for universities and police? -a.local taxesb. state taxesC. federal taxesd. income taxesPlease select the best answer from the choices providedABD What is the length of LA? Morrison and Greene have decided to form a partnership. They have agreed that Morrison is to invest $150,000 and that Greene is to invest $50,000. Morrison is to devote one-half time to the business, and Greene is to devote full time. The following plans for the division of income are being considered: A. Equal division. B. In the ratio of original investments. C. In the ratio of time devoted to the business. D. Interest of 6% on original investments and the remainder equally.E. Interest of 6% on original investments, salary allowances of $40,000 to Morrison and $70,000 to Greene, and the remainder equally.F. Plan (e), except that Greene is also to be allowed a bonus equal to 20% of the amount by which net income exceeds the total salary allowances.Required:For each plan, determine the division of the net income under each of the following assumptions: (1) net income of $115,000 and (2) net income of $200,000. Selections must be from Unit 1: William Bradford (U1L2), Anne Bradstreet (U1L4), Phillis Wheatley (U1L4), Jonathan Edwards (U1L5), Olaudah Equiano (U1L6), Thomas Paine (U1L7), and Thomas Jefferson (U1L8).12a. Identify two early American/colonial authors from the list above along with a text/excerpt they wrote. Possible Selections: Author choice 1 and selection:Author choice 2 and selection:12b. What is similar and/or different about each authors purpose in your two selections above? (Is it to inform, explain, persuade, create, express, reflect, etc.?) 12c. What is similar and/or different about each authors audience in the two selections above? (Think about who the author is writing to.)12d. What is similar and/or different about each authors style in the two selections above? (Think about themes, word choice, tone, form, etc.) 3- The velocity-time graph below shows the motion of aball in free fall. What is the acceleration of the ball from0.5 to 0.7 seconds? Show your work: Which quote from Passage 1 best highlights Tarzan's determination?A O "Tarzan was anxious to return to the cabin and continue his investigationsof its wondrous contents."B. "... but the pictures caught his fancy most, though the strange little bugswhich covered the pages where there were no pictures excited his wonderand deepest thought."C. "He did not accomplish it in a day, or in a week, or in a month, or in a year;but slowly, very slowly, he learned after he had grasped the possibilities..."D "From then on his progress was rapid. With the help of the great dictionaryand the active intelligence of a healthy mind..." Help pls I will give brainliest Find the missing angles. in high elevation forests n Pennsylvania, ecologists have noticed a serious decline in certain tree species. Some scientists propose that increased soil acidity might be the cause. Whats the phenomenon? A. Mercury contamination B. Decreased in pH caused by climate change C. Acid rain, which is caused by SO2 from combustion mixed with atmospheric water vapor D. Ozone depletion What is 3/100 - 1/50 equal? What is the main difference between active and passive transport?the size of the particlethe energy requiredthe location where it occursthe type of cell that performs it When Was the Declaration of Independence Signed? why was an amendment needed to end slavery in the united States?? Customers at the Palace Pro Shop receive a 10% discount if they are members. All customers must pay 7% in sales tax. The function f(x)=0.9x is used to determine the price of an item after the 10% member discount, where x is the regular price of the item. The function g(x)=1.07x is used to determine the total amount customers pay for a purchase after all discounts are applied. Which function can be used to determine T(x), the total amount a member pays for an item with a regular price of x dollars?T(x)=0.963xT(x)=0.17xT(x)=1.19xT(x)=1.97x