This program reads a file called 'test.txt'. You are required to write two functions that build a wordlist out of all of the words found in the file and print all of the unique words found in the file. Remove punctuations using 'string.punctuation' and 'strip()' before adding words to the wordlist.
Write a function build_wordlist() that takes a 'file pointer' as an argument and reads the contents, builds the wordlist after removing punctuations, and then returns the wordlist. Another function find_unique() will take this wordlist as a parameter and return another wordlist comprising of all unique words found in the wordlist.
Example:
Contents of 'test.txt':
test file
another line in the test file
Output:
['another', 'file', 'in', 'line', 'test', 'the']
This the skeleton for 1:
#build_wordlist() function goes here
#find_unique() function goes here
def main():
infile = open("test.txt", 'r')
word_list = build_wordlist(infile)
new_wordlist = find_unique(word_list)
new_wordlist.sort()
print(new_wordlist)
main()

Answers

Answer 1

Answer:

Explanation:

The following code has the two requested functions, fully working and tested for bugs. It is written in Python as is the sample code in the question and a sample output can be seen in the picture attached below.

import string

def build_wordlist(file_pointer):

   words = file_pointer.read()

   words = [word.strip(string.punctuation) for word in words.split()]

   return words

def find_unique(word_list):

   unique_words = []

   for word in word_list:

       if word not in unique_words:

           unique_words.append(word)

   return unique_words

def main():

   infile = open("test.txt", 'r')

   word_list = build_wordlist(infile)

   new_wordlist = find_unique(word_list)

   new_wordlist.sort()

   print(new_wordlist)

main()

This Program Reads A File Called 'test.txt'. You Are Required To Write Two Functions That Build A Wordlist

Related Questions

Imagine a room full of boxes. Each box has a length, width, and height. Since the boxes can be rotated those terms are inter- changeable. The dimensions are integral values in a consistent system of units. The boxes have rectangular surfaces and can be nested inside each other. A box can nest inside another box if all its dimensions are strictly less than the corresponding dimensions of the other. You may only nest a box such that the corresponding surfaces are parallel to each other. A box may not be nested along the diagonal. You cannot also put two or more boxes side by side inside another box.The list of boxes is given in a file called boxes.txt. The first line gives the number of boxes n. The next n lines gives a set of three integers separated by one or more spaces. These integers represent the 3 dimensions of a box. Since you can rotate the boxes, the order of the dimensions does not matter. It may be to your advantage to sort the dimensions in ascending order.boxes.txt contains:2023 90 70 48 99 56 79 89 91 74 70 91 91 53 56 22 56 39 64 62 29 92 85 15 23 61 78 96 51 52 95 67 49 93 98 25 57 94 82 95 93 46 38 50 32 50 89 27 60 66 60 66 43 37 62 27 14 90 40 16 The output of your code will be the largest subset of boxes that nest inside each other starting with the inner most box to the outer most box. There should be one line for each box.Largest Subset of Nesting Boxes(2, 2, 3)(3, 4, 4)(5, 5, 6)(6, 7, 9)If there is two or more subsets of equal lengths that qualify as being the largest subset, then print all the largest qualifying subsets with a one line space between each subset. The minimum number of boxes that qualify as nesting is 2. If there are no boxes that nest in another, then write "No Nesting Boxes" instead of "Largest Subset of Nesting Boxes".For the data set that has been given to you, here is the solution set:Largest Subset of Nesting Boxes[14, 27, 62][16, 40, 90][53, 56, 91][57, 82, 94][14, 27, 62][27, 50, 89][53, 56, 91][57, 82, 94][14, 27, 62][37, 43, 66][53, 56, 91][57, 82, 94][22, 39, 56][27, 50, 89][53, 56, 91][57, 82, 94][22, 39, 56][37, 43, 66][53, 56, 91][57, 82, 94][32, 38, 50][37, 43, 66][53, 56, 91][57, 82, 94]

Answers

umm have fun with that....

evaluate the arithmetic expression 234 + 567​

Answers

Answer:

801

Explanation:

234 + 567 = 801

You have just started a new job as the administrator of the eastsim domain. The manager of the accounting department has overheard his employees joke about how many employees are using "password" as their password. He wants you to configure a more restrictive password policy for employees in the accounting department. Before creating the password policy, you open the Active Directory Users and Computers structure and see the following containers and OU: eastsim Builtin Users Computers Domain Controllers Which steps must you perform to implement the desired password policy? (Select three. Each correct answer is part of the complete solution.)

Answers

Explanation:

To implement the desired password policy, you have to carry out these steps

1. An organizational unit, OU has to be created for these employees in east-sim.com

2. Since there is an organizational unit created for the accounting employees, you have to put the employees user objects in this Organizational unit.

3. Then as the administrator the next step that i would take is the configuration of the password policy, then i would link this to the already created organizational unit for these employees

Aliah finds an old router that does not support channel bonding. What frequency are the channels limited to?

A.
10 MHz
B.
20 MHz
C.
40 MHz
D.
80 MHz

Answers

A because it’s slower

Who likes virtual if you do what do you like about ot

Answers

Virtual is chill cuz I don’t have to wake up at 5am for in person

Answer:

Explanation:

I do not like virtual because I like to go outside.

In the garden, the ratio of roses to daisies is 2:5. There are 40 roses. How many daisies are there?
help me plz
thx if you do

Answers

Answer: There are 16 daisies.

Explanation: In order to find this number, multiply 5 by 8. This will get you 40. Then, multiply 2 by 8. This will get you 16. Hope this helps. :)

c Write a recursive function called PrintNumPattern() to output the following number pattern.Given a positive integer as input (Ex: 12), subtract another positive integer (Ex: 3) continually until 0 or a negative value is reached, and then continually add the second integer until the first integer is again reached.

Answers

Answer:

def PrintNumPattern(a,b):

 print(a)

 if (a <= 0): return

 PrintNumPattern(a-b,b)

 print(a)

PrintNumPattern(12,3)

Explanation:

Recursive functions are cool.

Define a single function named displayResults that returns nothing and takes two input parameters, an array of counters and the singular counter for the number of doubles rolled. The function displays the estimated probability of rolling doubles as well as the estimated probability of rolling each of the potential values from 1 to the maximum number that can be rolled (which can be calculated from the aforementioned input parameters). Recall, estimated probability is the calculated estimate of the theoretical probability of a scenario. To calculate an estimated probability we take the number of occurrences for a scenario and divide by the number of possible occurrences (the number of simulations).

Answers

Answer:

The function in Java:

public static void displayResult(int outcomes[], int n){

   System.out.println("Occurrence\tEstimated Probability");

   for(int x : outcomes){

       double prob = x/(double)n;

       prob = Math.round(prob * 100000.0) / 100000.0;

       System.out.println(x+"\t\t"+prob);

   }

}

Explanation:

See attachment 1 for complete question

This defines the function

public static void displayResult(int outcomes[], int n){

This prints the header

   System.out.println("Occurrence\tEstimated Probability");

This iterates through the outcomes

   for(int x : outcomes){

This calculates the probability

       double prob = x/(double)n;

The probability is then rounded to 5 decimal places

       prob = Math.round(prob * 100000.0) / 100000.0;

This prints each occurrence and the estimated probability

       System.out.println(x+"\t\t"+prob);

   }

}

See attachment 2 for complete program which includes the main

What is meant by the term text?
A. Printed information only
B. Printed, visual, and audio media
C. Any words conveyed by media
D. Content found only in books and mag

Answers

It’s d pick d because it correct

The term text means content found only in books and mag. Thus, option D is correct.

What is a text?

It is a set of statements that allows a coherent and orderly message to be given, either in writing or through the word of a written or printed work. In this sense, it is a structure made up of signs and a certain writing that gives space to a unit with meaning.

A video is a recording of a motion, or television program for playing through a television. A camcorder is a device or gadget that is used to record a video. audio is the sounds that we hear and mix media is a tool used to edit the video.

Digital camcorders are known to have a better resolution. The recorded video in this type of camcorder can be reproduced, unlike using an analog which losing image or audio quality can happen when making a copy. Despite the differences between digital and analog camcorders, both are portable, and are used for capturing and recording videos.

Therefore, The term text means content found only in books and mag. Thus, option D is correct.

Learn more about text on:

https://brainly.com/question/30018749

#SPJ5

Which sequence represents the hierarchy of terms, from smallest to greatest?
Select one:
a. Database, table, record, field
O
b. Field, record, table, database
c. Record, field, table, database
d. Field, record, database, table​

Answers

The sequence that stands for the hierarchy of terms, from smallest to greatest is  Field, record, table, database

What is database?

A database is known to be a kind of organized group of structured information, or data, that are known to be stored in a computer system.

Therefore, The sequence that stands the hierarchy of terms, from smallest to greatest is  Field, record, table, database

Learn more about database from

https://brainly.com/question/26096799

#SPJ9

PLZ HELP I DIDNT MEAN TO CLICK THAT ANSWR I NEEDD HELP

Answers

Answer:

c.scheduling is the answer

Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price, the change since last month, and the estimated monthly mortgage computed as (currentPrice * 0.051) / 12 (Note: Output directly. Do not store in a variable.). Ex: If the input is: 200000 210000 the output is: This house is $200000. The change is $-10000 since last month. The estimated monthly mortgage is $850.0. Note: Getting the precise spacing, punctuation, and newlines exactly right is a key point of this assignment. Such precision is an important part of programming.

Answers

Answer:

In Python:

cprice= int(input("Current price: "))

lmonth= int(input("Last month's price: "))

print("This house is $"+str(cprice))

print("The change is $"+str(cprice-lmonth)+" since last month")

print("The current mortage $"+str((cprice * 0.051) / 12)+" since last month")

Explanation:

Get current price

cprice= int(input("Current price: "))

Get last month's price

lmonth= int(input("Last month's price: "))

Print the current price

print("This house is $"+str(cprice))

Print the change

print("The change is $"+str(cprice-lmonth)+" since last month")

Print the mortgage

print("The current mortage $"+str((cprice * 0.051) / 12)+" since last month")

Type the correct answer in the box. Spell all words correctly.
Before a new email application could be released to the public, it was released for a few days to some account holders of a website. The project team then collected feedback from this limited number of users and later made the email application available for public use. What type of testing did the project team use?
The project team used ____ testing for the email application.

Answers

Answer:

Business format franchise or Business Brokers

Explanation:

Deidre is studying for a history exam. She reads the chapter in her textbook that covers the material, then realizes she needs to learn the names, dates, and places mentioned in the reading.

Which note-taking tool will help Deidre quickly find the names, dates, and places later when it is time to review?

a sticky note
a highlighter
electronic notes
flash cards

Answers

Answer:

B: Highlighter

Explanation:

Just answered on edge, hope this helps

Answer: B) A Highlighter

Explanation:

Hoda is creating a report in Access using the Report Wizard. Which option is not available for adding fields using the wizard?

1. Tables
2. Queries
Reports
All are available options.

Answers

Answer:

Reports

Explanation:

Answer:

reports

Explanation:

22. The Disc Drive is also known as the:

Answers

Answer:

HDD Hard Disk Drive

Explanation:

Remember partially filled arrays where the number of elements stored in the array can be less than its capacity (the maximum number of elements allowed). We studied two different ways to represent partially filled arrays: 1) using an int variable for the numElems and 2) using a terminating value to indicate the end of elements called the sentinel value. In the code below, please fill in the details for reading values into the latter type of array that uses a sentilnel value. Don't forget to complete the printArray function.
#include
using namespace std;
void printArray(int array[]);
// Implement printArray as defined with one array parameter
int main()
{
const int CAPACITY=21;
int array[CAPACITY]; // store positive/negative int values, using 0 to indicate the end of partially filled array
cout <<"Enter up to " << CAPACITY-1 << " non-zero integers, enter 0 to end when you are done\n";
//To do: Write a loop to read up the int values and store them into array a.
// Stop reading if the user enters 0 or the array a is full.
//To do: store 0 to indicate the end of values in the array
//Display array function
printArray(array);
return 0;
}
// To do: implement display for the given array
void printArray(int array[])
{
}

Answers

Answer:

Complete the main method as follows:

int num;

cin>>num;

int i = 0;

while(num!=0){

array[i] = num;  

cin>>num;

i++;

}

Complete the printArray function as follows:

void printArray(int array[]){

int i =0;

while(array[i]!=0){

   cout<<array[i]<<" ";

   i++;

}}

Explanation:

Main method

This declares a variable that gets input from the user

int num;

This gets input from the user

cin>>num;

This initializes a count variable to 0. It represents the index of the current array element

int i = 0;

while(num!=0){

This inserts the inputted number to the array

array[i] = num;

This gets another input  

cin>>num;

The counter is incremented by 1

i++;

}

The above loop is repeated until the users enters 0

printArray method

This declares the array

void printArray(int array[]){

This initializes a counter variable to 0

int i =0;

This is repeated until array element is 0

while(array[i]!=0){

Print array element

   cout<<array[i]<<" ";

Increase counter by 1

   i++;

}}

See attachment for complete program

Define a function named sum_values with two parameters. The first parameter will be a list of dictionaries (the data). The second parameter will be a string (a key). Return the sum of the dictionaries' values associated with the second parameter. You SHOULD NOT assume that all of the dictionaries in the first parameter will have the second parameter as a key. If none of the dictionaries have the second parameter as a key, your function should return 0. Sample function call: sum_values(data, 'estimated_annual_kwh_savings') sum_values_by_year

Answers

Answer:

Answered below

Explanation:

//Program is written in Python

sum = 0

def sum_of_values(dict_data, number_of_boys):

for dict in dict_data:

for key in dict.keys():

if key == number_of_boys:

sum += dict[key]

//After looping check the sum variable and //return the appropriate value.

if sum != 0:

return sum

elif sum == 0:

//There was no key of such so no addition.

return 0

paisa pay is facilitated in which e commerce website​

Answers

Answer:

The answer is "Option A".

Explanation:

The PaisaPay is the digital payment service of eBay, whereby buyers can pay sellers through credit card or Online Money Order. For quick, safe transactions or their cash back, their buyers must use PaisaPay. So, it is easier to go to eBay.co.in, was its digital payment service of eBay, whereby purchasers can charge vendors by credit card or Online Bank Transfer.

8.10 Code Practice: Question 2
Edhesive

Answers

Answer:vocab = ["Libraries", "Bandwidth", "Hierarchy", "Software", "Firewall", "Cybersecurity","Phishing", "Logic", "Productivity"]

print (vocab)

for i in range (1, len (vocab)):

   count = i - 1

   key = vocab[i]

   while (vocab[count] > key) and (count >= 0):

       vocab[count+1] = vocab[count]

       count -= 1

       vocab [count+1] = key

       print(vocab)

Explanation: bam baby

In this exercise we have to use the knowledge of the python language to write the code, so we have to:

The code is in the attached photo.

So to make it easier the code can be found at:

vocab = ["Libraries", "Bandwidth", "Hierarchy", "Software", "Firewall", "Cybersecurity","Phishing", "Logic", "Productivity"]

print (vocab)

for i in range (1, len (vocab)):

  count = i - 1

  key = vocab[i]

  while (vocab[count] > key) and (count >= 0):

      vocab[count+1] = vocab[count]

      count -= 1

      vocab [count+1] = key

      print(vocab)

See more about python at brainly.com/question/26104476

how can you stretch or skew an object in paint

Answers

Press Ctrl + Shift + Z (Rotate/Zoom). Rotate the roller-ball control about a bit. The outer ring rotates the layer.

Answer:

Press Ctrl + Shift + Z (Rotate/Zoom). Rotate the roller-ball control about a bit. The outer ring rotates the layer.

Explanation:

Select the correct answer.

Which is an aspect of structural-level design?

A.
scaling
B.
player-adjusted time
C.
difficulty level
D.
radiosity

Answers

Answer:

radiosity

Explanation:

The function below takes one parameter: an integer (begin). Complete the function so that it prints the numbers starting at begin down to 1, each on a separate line. There are two recommended approaches for this: (1) use a for loop over a range statement with a negative step value, or (2) use a while loop, printing and decrementing the value each time. student.py 1 - def countdown_trigger(begin): 2 - for begin in range(begin, 0, -1): 3 print(begin)The function below takes one parameter: a list (argument_list). Complete the function to create a new list containing the first three elements of the given list and return it. You can assume that the provided list always has at least three elements. This can be implemented simply by creating (and returning) a list whose elements are the values at the zero'th, first and second indices of the given list. Alternatively, you can use the list slicing notation. student.py 1 - def make_list_of_first_three(argument_list): 2 WN Ist = argument_list[: 3 ] return IstIn the function below, return the (single) element from the input list input_list which is in the second to last position in the list. Assume that the list is large enough. student.py 1 - def return_second_to_last_element(input_list) :

Answers

Answer:

The functions in Python are as follows:

#(1) Countdown program

def countdown_trigger(begin):

   for i in range(begin,0,-1):

       print(i)

       

#(2) List of 3

def make_list_of_first_three(argument_list):

   print(argument_list[:3])

#(3) Second to last

def return_second_to_last_element(input_list):

   print(input_list[-2])

Explanation:

The countdown function begins here

#(1) Countdown program

This defines the function

def countdown_trigger(begin):

This iterates through the function

   for i in range(begin,0,-1):

The prints the list elements

       print(i)

       

The list of 3 function begins here

#(2) List of 3

This defines the function

def make_list_of_first_three(argument_list):

This prints the first 3 elements

   print(argument_list[:3])

The second to last function begins here

#(3) Second to last

This defines the function

def return_second_to_last_element(input_list):

The prints to second to last list element

   print(input_list[-2])

Why each of the six problem-solving steps is important in developing the best solution for a problem

Answers

Answer:

The Answer is below

Explanation:

Each of the six problem-solving steps is important in developing the best solution for a problem because "each of these steps guarantees consistency, as every member of the project team understands the steps, methods, and techniques to be used."

For illustration, step one defines the problem to be solved.

Step two seek to find the main or underlying issue that is causing the problem

Step three: assist in drawing the alternative ways to solve the problem.

Step four: this is where to choose the most perfect solution to the problem

Step five is crucial as it involves carrying out the actual solution selected.

Step six is the step in which one check if the solution works fine or meets the intended plan.

Hence, all the steps are vital

What can relaxation help to reduce?

body image

stress

self-control

self-respect

Answers

It can reduce stress

Write a Python program that asks the user for their name and then prints the name out in all uppercase and then in all lowercase letters. The output should look like this:

What is your name? Maria

Your name in all uppercase letters is: MARIA

Your name in all lowercase letters is: maria

Answers

Answer:

name = input("What is your name? ")

print("Your name in all uppercase letters is " + name.upper()

print("Your name in all lowercase letters is " + name.lower()

Explanation:

The first line takes in the user input and stores it in the variable name.

The second line concatinates the string with the variable name. Then to turn the string name to upper case i used the .upper() in built python method. and did the same thing with the .lower()

Answer:

print("What is your name?")

string = "Your name in Uppercase letters:MARIA"

print(string.upper())

string = "Your name in lowercase letters"

print(string.llower())

Wesley purchased a word-processing software program. He used it for a year, during which he got regular updates every two months. After a year, he was not allowed to update the software. However, he could continue using it. Why did the updates stop?

Answers

Group of answer choices.

A. The software was corrupt and resulted in a bug.

B. He purchased a license with maintenance for a year.

C. The organization discontinued the software.

D. He purchased an open-source license.

E. He purchase a perpetual non-maintenance license.

Answer:

B. He purchased a license with maintenance for a year.

Explanation:

A software can be defined as a set of executable instructions (codes) or collection of data that is used typically to instruct a computer how to perform a specific task and to solve a particular problem.

Basically, softwares are categorized into two (2) main categories and these are;

I. Open-source software.

II. Proprietary software.

A proprietary software is also known as a closed-source software and it can be defined as any software application or program that has its source code copyrighted and as such cannot be used, modified or distributed without authorization from the software developer. Thus, it is typically published as a commercial software that may be sold, licensed or leased by the software developer (vendor) to the end users with terms and conditions.

In this scenario, Wesley purchased a word-processing software program. He used it for a year, during which he got regular updates every two months. However, after a year, he was not allowed to update the software but he could continue using it.

This ultimately implies that, Wesley purchased a licensed software with maintenance for a year and as such he would stop receiving an update from the software developer after his subscription expired.

Select all the correct answers.
Mark is unable to connect to the internet or to any of the computers on his network, while nearby computers don’t have this problem. Which three issues could be causing the problem?

slow transmission of data
improper cable installation
faulty software configuration
interference between the signals on cables close to each other
improper connection of a network cable to the jack

Answers

Answer:

I. Improper cable installation.

II. Interference between the signals on cables close to each other.

III. Improper connection of a network cable to the jack

Explanation:

The standard framework for the transmission of informations on the internet, it is known as the internet protocol suite or Transmission Control Protocol and Internet Protocol (TCP/IP) model. Thus, the standard Internet communications protocols which allow digital computers to transfer (prepare and forward) data over long distances is the TCP/IP suite.

In this scenario, Mark is unable to connect to the internet or to any of the computers on his network, while nearby computers don’t have this problem. Therefore, the three issues which could be causing the problem are;

I. Improper cable installation: this involves not installing the ethernet cable in the correct destination port.

II. Interference between the signals on cables close to each other: interference usually results in the disruption in network signals.

III. Improper connection of a network cable to the jack: the right connectors such as RJ45 should be used.

Jack is part of the software quality assurance team in a company. Which activity should Jack perform as a part of software quality assurance?
A.
billing
B.
recruiting
C.
testing
D.
installing
E.
accounting

Answers

Answer:

C - testing

Explanation:

quality assurance is another name for verifying something. so when you verify software, you test the software.

Do you think renewable energy can power the world?

Answers

Yes because we could just use it over and over again

Answer: think that the author chose to tell these two stories because they contrast each other perfectly. They show the two sides of Chicago during the time and reinstate the idea of the White City and the Black City. A common theme in the book is good vs. evil and the telling these two stories is almost a perfect depiction of it during the time period. I believe that both of these stories must have been told in order for the author to get his message across. On one side, the Fair represents the growing prosperity and magnificence of all of its wonders it beholds. On the other side, the author shows the crime, poverty, and darkness of Chicago. These two stories symbolize the truth behind the world. If the fair was told, we would be missing the fact that not everything was as great as what people thought it would be. Behind all the extravagance of the fair lies its complete opposite. If the author just told the Holmes’s story, we would lose the other point. Not everything was terrible in Chicago. Although there was crime and poverty, this was an era of innovation and technology and a feeling of growth and prosperity as well. I believe that the author chose to use these two stories to show that in reality, there are both good and bad things. Nothing can be perfect, and this is shown in the construction of the fair and the crime that happened on the side. However, the opposite cannot be said as well. This is the beauty of the world as there is always hope and room for improvement. I think that the author wanted to show us the balance between good and evil using these two instances in history. Although I found the Holmes plot slightly more interesting, I believe that both stories must have been there in order for the author to have gotten his true meaning across.

Explanation:

Other Questions
hey guys! just so you know, DO NOT click on those tinylnk file links. they are a SCAM Was Lenin a good guy or a bad guy? Which system of inequalities is shown? What is the value of tangent theta in the unit circle below? One-half StartFraction StartRoot 3 EndRoot Over 3 EndFraction StartFraction StartRoot 3 EndRoot Over 2 EndFraction StartRoot 3 EndRoot What is the value of y in 6y+4 name three activities that a visitor to ixtlan de juarez in oaxaca is likely to do A taxi cab cost $1.75 for the 1st mile and .75 for each additional mile you have $20 to spend on your ride was in a quality could be certified and how many miles you can travel if N is a number of additional miles Which of the following processes in the nineteenth century most directly created the economic needs filled by Indian indentured servants in the Caribbean? so this up on gooble and u will find the answere ANd quiziz will pop up and give u the ans were and u give to me so its a win win The leading source of energy in Africa is -A. oilB. coalC. hydroelectricity D. natural gas Find the area of the composite shape shown below:6ft9ft3ft 4ft please help!! its about percents and finding the totals cost!!!help fast Write an equation for the amount of money, , that will be collected if boxes of chocolate bars are sold. Which is the independent variable and which is the dependent variable In the following diagram, m AC=97 and m CD= 112. Find the measure of anglex. Which of the following artists most inspired Picasso?a.Matisseb.Braquesc.Gauguind.Duchamp On Monday, your parents tell you that you have a doctor appointment immediately after school on Thursday. When Thursday comes, you forget to go to your doctor appointment. Explain several reasons why you may have forgotten. Who did the first graders recognize? Who did they NOT recognize? From the supersize me moviePlease help!!!! What rule is used to simplify exponents when multiplying polynomials? Convert 5.5 feet to inches. There are 12 inches in 1 feet. Sandra buys stamps that cost $0.65 each she spends a total of $158.60 on the stamps. To determine how many stamps she buys, she needs to divide $158.60 by $0.65 At a movie theater, an adult ticket costs $10 anda bag of popcorn costs $6. If a group of adultsbought tickets to a movie and 4 bags of popcorn,what expression could be used to determinehow much in total the group spent, in dollars?A) 10x + 6, where x is the number of adultsB) 10x + 24, where x is the number of adultsC) 16x, where x is the number of adultsD) 6x +10, where x is the number of bags ofpopcorn purchasedCan I have help