I need help writing the algorithm I know how to do the flow chart for the first one but I’m not sure if the second question is a for loop

I Need Help Writing The Algorithm I Know How To Do The Flow Chart For The First One But Im Not Sure If

Answers

Answer 1

Answer:

The algorithm is as follows:

(a) Sales and commission

1. Start

2. Input Sales

3. Commission = 0.30 * Sales

3. If sales >= 4000.00 then

3.1   Commission = 0.60 * Sales

4. End If

5. Print Commission

6. Stop

(b) Amount of Rainfall

1. Start

2. Days = 1

3. Total = 0.0

4. While Days <= 31

4.1. Input Rainfall

4.2. Total = Total + Rainfall

4.3. Days = Days + 1

4.4. End If

5. Print Total

6. Stop

See attachment for flowchart

Explanation:

(a) Sales and commission

This begins the algorithm

1. Start

This gets sales from the user

2. Input Sales

This calculates the commission based on 30% (i.e. for sales < 4000)

3. Commission = 0.30 * Sales

This checks if sales is greater than or equal to 4000

3. If sales >= 4000.00 then

This calculates the commission as 60% of Sales

3.1   Commission = 0.60 * Sales

This ends the if condition

4. End If

This prints the calculated commission

5. Print Commission

This ends the algorithm

6. Stop

(b) Amount of Rainfall

This begins the algorithm

1. Start

This initializes the number of days to 1

2. Days = 1

This initializes total rainfall to 0

3. Total = 0.0

The following while loop is repeated until day 31st

4. While Days <= 31

This gets input for Rainfall from the user

4.1. Input Rainfall

This calculates the total rainfall

4.2. Total = Total + Rainfall

This increments the number of days

4.3. Days = Days + 1

This ends the if statement

4.4. End If

This prints the total rainfall

5. Print Total

This ends the algorithm

6. Stop

I Need Help Writing The Algorithm I Know How To Do The Flow Chart For The First One But Im Not Sure If

Related Questions

the guest would like to convert his 100 dollar to peso.How much will the guest receive if the exchange rate is 1 dollar=Php 50.50?​

Answers

Answer:

the answer is $100

I hope it helps

have a nice day

#Captainpower :~

The shapes of AND, OR, and NOR gates have something in common. What is it and why do you think they share that feature?

Answers

There're all conjunctions.

You can seperate them in sentences after a comma for a run-on sentence.

i think i have a virus on my computer what am i supposed to do

Answers

Answer:

call like a phone or computer company and ask wjat thry can do

A client needed a software application to be delivered with a demo of the working software at every stage of development. The project head ensured that all the team members were in the same location. The work was completed in a short duration with minimal documentation and through continuous customer interaction. Which model did the team use? A agile B. spiral C waterfall D. RAD ​

Answers

Answer:

Rapid Application Development (RAD)

Explanation:

Software development life cycle (SDLC) can be defined as a strategic process or methodology that defines the key steps or stages for creating and implementing high quality software applications.

RAD is an acronym for rapid application development and it is a model that is typically based on the concepts of prototyping and iterative development technique with minimal documentation or planning involved.

In the RAD model, more priority is given to the development of the software while minimal attention is given to documentation or planning. Therefore, it focuses on developing softwares within a short period of time and using prototypes (working modules) such as templates, codes, processes, tools, etc.

Basically, the RAD model comprises of five (5) phases and these includes;

I. Business modeling.

II. Data modeling.

III. Process modeling.

IV. Application generation.

V. Testing and turnover.

In conclusion, the RAD model allows software application to be delivered with a demo of the working software at every stage of development for continuous customer interaction.

Answer:

Its rad ladies and gentlemen

Explanation:

guys do you know any websites that rewrites you text so you don’t get plagiarism?

Answers

it’s called typewrite.com !!!

what is the definition of assiduous?

Answers

Answer:

showing great care and perseverance.

Assiduous is constant in application or effort; working diligently at a task; persevering; industrious; attentive: an

Please answer these computer fill in the blanks
1) operators are the _______________ used in formulas to perform a particular calculation
2) the____________feature of Excelhelps to copy the formula quickly
3) Excel provides over ________________used to perform calculations
4) ____________ category of functions includes functions for calculation, and tracking principal and interest
5) ___________ functions returns one of two results you specify based on whether the value is TRUE or FALSE

Answers

Answer:

best

cool

Explanation:

what is processing unit?​

Answers

Answer:

A central processing unit, also called a central processor, main processor or just processor, is the electronic circuitry within a computer that executes instructions that make up a computer program.

Explanation:

Answer:

CPU is processing unit.

The main computer case containing the central components of a personal computer is central processing unit.

The schematic diagram below shows three machines in a production unit connected to a 240 volt supply.
The layout uses different types of wire for the main wire, wire 1, wire 2, and wire 3.
Calculate the maximum current that can flow through each type of wire. The diameter of a wire is related to the maximum amount of current it
can safely carry. Use Internet resources to find the most suitable gauge of wire for each part of the wiring in the circuit. List the highest American
Wire Gauge (AWG) number that you can use for each type of wire. (Hint: For the main wire, consider how the current through it relates to the
currents through each of the machines.)
Also, state how you can protect the wiring from damage If any of the machines exceeds its maximum power rating because of a malfunction.

Answers

Answer:

[tex]\begin{array}{ccc}Wire \ Number &Maximum\ \ Current \ (A)& AWG\\&&\\Main \ Wire&16\frac{5}{6} &9\\&&\\Wire \ 1&9\frac{1}{6} &12\\&&\\Wire \ 2&5&14\\&&\\Wire \ 3&2.5&17\end{array}[/tex]

Explanation:

The given parameters of the circuit are;

The voltage applied to the circuit = 240 volt

The types of wire in the circuit are Main wire, wire 1, wire 2, and wire 3

The maximum current that can flow through each type of wire is given by the max power of the machine powered by the wire

Power, P = Voltage, V × Current, I

∴ I = P/V

The maximum power of the machine powered by wire 1 = 2,200 W

The current flowing through wire 1, I₁ = 2,200 W/(240 V) = 55/6 A = [tex]9\dfrac{1}{6} \, A[/tex]

The maximum power of the machine powered by wire 2 = 1,200 W

The current flowing through wire 2, I₂ = 1,200 W/(240 V) = 5 A

The maximum power of the machine powered by wire 3 = 600 W

The current flowing through wire 3, I₃ = 600 W/(240 V) = 2.5 A

Therefore, Kirchhoff's current law, we have;

The current that the main wire can carry, I = I₁ + I₂ + I₃

∴ I = 55/6 A + 5 A + 2.5 A = 50/3 A = 16.[tex]\overline 6[/tex] A

The current that the main wire can carry, I = 16.[tex]\overline 6[/tex] A

The highest American Wire Gauge (AWG) that can be used for each type of wire are listed as follows;

[tex]\begin{array}{ccc}Wire \ Number &Maximum\ \ Current \ (A)& AWG\\&&\\I&16\frac{5}{6} &9\\&&\\I_1&9\frac{1}{6} &12\\&&\\I_2&5&14\\&&\\I_3&2.5&17\end{array}[/tex]

Therefore, we have;

[tex]\begin{array}{ccc}Wire \ Number &Maximum\ \ Current \ (A)& AWG\\&&\\Main \ Wire&16\frac{5}{6} &9\\&&\\Wire \ 1&9\frac{1}{6} &12\\&&\\Wire \ 2&5&14\\&&\\Wire \ 3&2.5&17\end{array}[/tex]

The answer is not border

Answers

Answer:

#footer {

   border-top: 1px solid rgba(0, 0, 0, 0.3);

   background: rgba(0, 0, 0, 0.25);

   box-shadow: inset 0 1px rgba(255, 255, 255, 0.3);

   height: 40px;

}

Explanation:

hope this helps,

Have a great day

a c program to check the greaster number among the two entered number using if else statement​

Answers

Answer:

#include <stdio.h>

int main(void) {

 int number1, number2;

 printf("Enter first number: ");

 scanf("%d", &number1);

 printf("Enter second number: ");

 scanf("%d", &number2);

 if (number1 > number2) {

   printf("%d is greater than %d!", number1, number2);

 } else if (number2 > number1) {

   printf("%d is greater than %d!", number2, number1);  

 } else {

   printf("%d is equal to %d!", number1, number2);

 }

}

time to throw poggers xqc time to throw pogchamp time to throw pogchamp time to throw pogchamp time to throw pogchamp time to throw houhouhouhou time to throw poogcham

Answers

yes thank you very much

Answer:

yep

Explanation:

The equipment that makes sewing easier and faster is ________​

Answers

Answer:

its a sewing machine

Explanation:

The equipment that makes sewing easier and faster is a sewing machine

3.1.2 Quiz: What Can Information Technology Do for You? Question 8 of 10 What is one reason why a business may want to move entirely online? A. To double the number of employees B. To avoid paying state and local taxes C. To focus on a global market D. To limit the number of items in its inventory​

Answers

Answer:

C. To focus on a global market

Explanation:

Information technology can be defined as a set of components or computer systems, which is used to collect, store, and process data, as well as dissemination of information, knowledge, and distribution of digital products.

An information technology interacts with its environment by receiving data in its raw forms and information in a usable format.

Generally, it is an integral part of human life because individuals, organizations, and institutions rely on information technology and systems in order to perform their duties, functions or tasks and to manage their operations effectively. For example, all organizations make use of information technology and systems for supply chain management, process financial accounts, manage their workforce, and as a marketing channels to reach their customers or potential customers.

Additionally, an information system or technology comprises of five (5) main components;

1. Hardware.

2. Software.

3. Database.

4. Human resources.

5. Telecommunications.

Hence, information technology or system relies on the data it receives from its environment, processes this data into formats that are usable by the end users.

One reason why a business may want to move entirely online is to focus on a global market through the use of social media platforms and networks to reach out to customers in various geographical location.

Jessica has two pens, one red pen and a black pen. The red pen measures 5 inches while the
black one measures 15.24 cenfimefers.
A) How long is Jessica's red pen in centimeters
B) How long is Jessica's black pen in inches
C) which pen is longer
2) John rode 2 kilometers on his bike. His sister Sally rode 3000 meters on her bike. Who rode the
fasthest and
A) How much did John ride in meters
B) How much did Sally ride in kilometers 2012
C) Who rode the farthesten
D) How much farther did they ride (in kilometers)?
E) How much farther did they ride (in meters)?
3) Faye drew two line segments. The first line segment measures 7 inches while the second measures
10 inches.
A) What is the length of the first line segment in centimeters
B) What is the length of the second line segment in centimeters?



branleast ka sakin pag sinagotan moto promise

pag hindi maayos yan report ka sakin​

Answers

Answer:

1.

A) 12.7

B) 6

C) The black pen

2.

A) 2000

B) 3

C) Sally

D) They rode 1 kilometers farther

E) They rode 1000 meters farther

3.

A) 17.78

B) 25.4

Explanation:

A=5×2.54=12.7cmB.=15.24/2.54=6inchC.black pencilsalli rode a bike faster thanjohn.

A.john ride bike in metre=2×1000=2000m

B.salli ride a bike in kilometre=3000/1000=3 km

C.salli rode a bike fastest.sorry i do not know d,e

3.A=7×2.54=17.78cmB.10×2.54=25.4cm

I charge my stylus 2-3 hours a day. But after all the charging the battery only lasts for 5 minutes. I hope someone can rectify this issue for me. Thank you..

Answers

Answer:

Well if your charging it to 100% nd its only lasting 5 minutes it may be because you charger is getting old or is breaking. What model do you have (stylus)

Explanation:

You may need a new internal battery. How long have you had the pen? If it was for a while you may need it to be replaced.

You can use this keyboard shortcut to toggle the visibility of the command line. If for some reason your command line is hidden from the drawing area, then use this keyboard shortcut to bring it back *

Answers

Answer:

Ctrl + 9

Explanation:

You can use this keyboard shortcut to toggle the visibility of the command line

What is the name of tool

Answers

Answer:

bro the pic is hazy

Explanation:

but it is looking like octagon

hope it helps you

please mark me as brainlist

Your task is to identify three or more ways that big data is being collected on a regular basis, including one data collection method for each of the following categories:

Data collection on the internet
Digital data collection from a source other than the internet
Analog (non-digital) data collection being performed in physical places

For each of these data collection practices: Describe how the data collection occurs. Analyze the data collection process by answering the following five questions in complete sentences and to the best of your ability:

What data is being collected?
Why is this data being collected?
What are the likely benefits of this data collection?
How might this data collection cause harm?
How likely is it that this data can be accessed by others?

You may use the internet or any other available resources to identify and analyze these data collection strategies.

Answers

Answer:

Data is one of the most valuable resources today's businesses have. ... There are various data-gathering methods you can use with the help of your ... When it comes to data businesses collect about their customers, ... Third-party data offers much more scale than any other type of data, ... Big White Cursor.

Explanation:

The data is one of the most essential and the most important aspects of the  modern world and s collected each and every hour. The data forms an essential element of the internet and digital media.

The data is held soly responsible for the generation of numerous possibilities.The data collected can be used for further processing and creation of new contents.

Learn more about the tasks to identify.

brainly.com/question/20688743.

Documental acerca de los principales materiales que se emplean en la fabricación de medios técnicos utilizados en una oficina.

Answers

Answer:

Los equipos técnicos utilizados en una oficina y los principales materiales utilizados en su fabricación son;

Equipo de oficina [tex]{}[/tex]    Material utilizado en la fabricación

1) Impresoras;           [tex]{}[/tex]    Acero, aluminio, alambres de cobre, plástico, rodillos

2) Monitor de computadora; [tex]{}[/tex]   Pantalla de vidrio, plástico, cables, placas de circuito, resortes

3) Escáneres;     [tex]{}[/tex]  Alfombra compuesta, mesa de vidrio, carcasa de plástico, cables

4) Copiador;   [tex]{}[/tex]       Carcasa de plástico, contenedor de tóner, placa de vidrio, cables de alimentación

5) Proyector;    [tex]{}[/tex]    Lente de vidrio y carcasa de metal para lámpara, cables de alimentación

6) Desfibradora; [tex]{}[/tex]    Engranajes de plástico, correa de cadena de metal, rodamientos

Explanation:

16
Mackenzie is the network administrator for a large security corporation. What task
might Mackenzie perform as part of her job?
O answering calls from customers who need help
9
developing a website for the corporation
12
connecting a new computer to the network
15
testing a new video game before its release

Answers

Answer:

Connecting a new computer to the network.

Answer:

C. Connecting a new computer to the network

Explanation:

That is part of the job and the test say it is correct.

Which of these best represents a call to action?
O A. Bright colors on a billboard
O B. "Buy 1 Get One Free!"
O C. Loud background music to a commercial
O D. "Come in today!"

Answers

Answer:

d

Explanation:

d just did it

"Come in today!" best represents a call to action. Thus, option D is correct.

What is a call to action?

This is an instruction on a webpage or a house call that directs the customer to execute an action. Traditionally, a call to action is expressed as a directive and deed that a person needs to come in soon. Any layout intended to elicit an instant answer or promote an entrepreneurship culture is referred to in promotion as a "call to action."

The shop represents or says that come in today, they were for the customer to come in today and help the people to come in and get the product that is needed.

This suggests that the part there will be a change in the want of the people and the command of the people that the people should immediately want them to come in, it is a strategy to attract the customers. Therefore, option D is the correct option.

Learn more about call to action, here:

https://brainly.com/question/12170995

#SPJ2

Select all the correct answers.
Daniel is an app developer. He is working on an app for a retail store selling sports goods. The store manager explains that he would like customers to be alerted whenever there is a sale at the store. Interested customers would also be able to send an immediate response and book items they like from their mobile devices. Which statements about the use of the app are true?

It will make shopping easy.
It will enable quick transactions.
It will enable safety.
It will manage health.
It will save time.
Please I really need it because it will decides my grade.

Answers

Answer:

it will make shopping easy

Explanation:

The app will allow customers to shop with their phone instead of locating to the store. It also keeps the customers informed of events and sales for shopping.


8.

Which of the following text pieces can be easily typed using right hand?
A. stewardess
B. lillipop
C. typewriter
D. FACE



Answers

Answer:

Lillipop

Explanation:

If you have your hands correctly placed on the keyboard, the only hand needed to type the word, "lillipop", is the left hand!

Hope I was of Assistance #SpreadTheLove <3

What are the basic parts of sewing machine?​

Answers

Answer:

1. Spool Pin  

Thread usually comes on a spool. That is the wooden thread holder you buy in the store. The spool pin holds the spool of thread for you making it easier for you to thread your machine and keep the thread coming as you want it to. Read about the spool pin felt.

2. Bobbin Binder Spindle  

A bobbin is a little cylinder that may come with or without flanges. It holds the thread that is wound around it. The spindle is where the bobbin is placed during winding.

3. Bobbin Winder Stopper  

The bobbin is only so large. It cannot always hold the amount of thread you want to put on it. This part stops the bobbin from collecting thread when it has reached full capacity.

4. Stitch Width Dial  

On many newer sewing machines, you get a variety of stitch options to use. The purpose of this part is to control the zig-zag stitch option while you are busy concentrating on your sewing.

5. Pattern Selector Dial  

This little dial allows you to select one stitch pattern out of the many that come built into your sewing machine. You just turn the dial to get the pattern that you want on your clothes and other fabrics you want to mend or create.

6. Hand Wheel  

This is the manual needle control which raises or lowers the needle. It is usually located at the right-hand side of the machine. It shouldn’t be that hard to turn.

7. Stitch Length Dial  

More recent sewing machines may have this part attached to them. Its purpose is to control the length of your selected stitch. This helps you stay in control of your sewing duties and make sure you get what you want and need.

8. Reverse Stitch Lever  

Once you push this lever, you get to sew in the opposite direction. This function makes your sewing a little easier and faster to do because you can go forward or in reverse when you need to.

9. Power Switch  

You already know what this switch does. The key to using it is to make sure you turned your sewing machine off before you walk away. Also, it should be located at the right side of your machine.

10. Bobbin Winder Thread Guide  

When you activate this part on your sewing machine, you are guiding the thread towards the bobbin/ This makes winding your thread up a little easier and should prevent twists, tangles or caught thread.

11. Thread Tension Dial  

Tension is important when you do your sewing. Too loose can cause you problems and too much tension could snap your thread and make sewing more time consuming as you have to re-thread the machine. This little part simply controls the tension on the thread so be careful when you use it.

12. Thread Take-Up Lever  

Your top thread passes through this part as you do your sewing. The lever moves up and down with your needle so do not be alarmed that it is constantly moving.

13. Needle Clamp Screw  

Needles do not stay in place by themselves. It would be nice if they did. You need this part to hold your needle where it is supposed to be. It also makes sure your needle is secure as it moves.

14. Presser Foot  

This is the part that holds your fabric so it doe snot slip all over the place while you are working. Controlling your fabric is important while you do your sewing.

15. Bobbin Cover  

Your sewing machine parts do need some protection to keep them in top working order and to help then last you for years. This is the job of the bobbin cover. It protects the bobbin as it covers it.

16. Bobbin Cover Release Button  

Also, you need access to your bobbin when it its filled with thread or there is a problem. This release button helps you to remove the bobbin cover so you have complete access to your bobbin.

17. Feed Dog  

It is an interesting name, but it has a very straightforward function., This part feeds your fabric through the sewing machine while you are sewing. This helps you concentrate on other sewing needs as you work.

18. Needle  

Another self-explanatory label that tells you everything you need to know. The needle is an integral part of the sewing machine and without it, the other parts cannot do their job.

19. Needle Plate  

This part is located right under the needle and an under the presser foot. Its job is to help move the fabric forward as you sew. It may help help push the fabric back when you use the reverse mode on your sewing machine.

Explanation:

Frida has been given the task of creating a database to store all her company's records and sales records. She is going to produce a relational database. The customers records will have the fields Customer_id, Name, Contact_Phone, and card Number. The sales records will have the fields Invoice_number, Item_number, Item_description, Item_cost and Customer_ref.

Complete the diagram below to show how the tables will be combined.

Answers

Answer:

A value that's used to identify a record from a linked table is called a ______. ... A database administrator is setting up a new table that will contain customer ... The fields include name, address, company, phone, email, and customer ID. ... Gina does not know how to write SQL commands and no forms have been created.

Explanation:

What are the main purposes of an operating system?

Answers

Answer:

An operating system has three main functions: (1) manage the computer's resources, such as the central processing unit, memory, disk drives, and printers, (2) establish a user interface, and (3) execute and provide services for applications software.

Internet and global communication came with challenges and opportunities, give example of opportunities from real life?

Answers

Answer:

Employment - The internet has allowed for people to be able to hire others from all over the globe instead of just in the country that they are based. The employers get access to skilled manpower from more than one place and more often than not, this kind of hiring reduces labor costs. Access to more markets - The internet and global communication have led to prosperity for a lot of people as they are now able to buy and/ or sell goods to many more markets. Think for instance, about the Chinese vendors selling on eBay or Amazon. The internet has allowed them to b able to sell to people all over the world instead of just China. Education : The internet also benefits education as students are now able to get help from other people by logging onto the net. People are also able to study in Universities that are far away from where they are based thanks to the internet allowing for instantaneous communication.

pls answer i need to turn it in today!!

In computing flowcharts how are decisions represented?

What is the command used most for decisions?

Answers

Answer:

See Explanation

Explanation:

How decisions are represented?

In flowcharts, decisions are represented using diamond shapes (see attachment)

Decisions could be conditional statement or repetition operations which may have the form of loops or iterations.

Either of theses are represented using the diamond shapes.

Take for instance:

To check if a is greater than b... Simply write if a > b i the diamond box

Command used for most decisions

Most decisions are conditional statements; hence, the if command is often used for decisions.

Which finger is used to press SHIFT key while typing!
A. Little finger
B. Thumb
C. Index finger
D. Ring Finger ​

Answers

Answer:

Little Finger (A)

Explanation:

it would be A. little finger i’m pretty sure
Other Questions
whole blood collected for dna-typing purposes must be placed in a vacuum containing the preservative compensation practices of an integrated manufacturing firm usually include What was formed when biological material became trapped in a molecular bubble? "The District Court's assessment that all this evidence proved racial predominance clears the bar of clear error review. The court emphasized that the districting plan's own architects had repeatedly described the influx of African-Americans into District 12 as a . . . compliance measure, not a side-effect of political gerrymandering. And those contemporaneous descriptions comported with the court's credibility determinations about the trial testimonythat Watt told the truth when he recounted Rucho's resolve to hit a majority-BVAP target; and conversely that Hofeller skirted the truth (especially as to Guilford County) when he claimed to have followed only race-blind criteria in drawing district lines. We cannot disrespect such credibility judgments."-Associate Justice Elena Kagan, opinion of the Court in Cooper v. Harris, 2017Supporters of Kagan's view that a state cannot use race as a predominant factor in creating districts could cite which of the following cases as precedent? _____ electrode extension increases the resistance to the flow of current in the electrode and the current in the arc is _____. Do Programming Problem 2 from chapter 14 of the text. Start with the files that I am linking to below. (These are slightly modified versions of the files from chapter 14 of the text.) Your class should have a DEFAULT_CAPACITY constant and also a capacity data member. For submission purposes, set the DEFAULT_CAPACITY to 1. Your class should double the size of the array when an attempt is made to enqueue an item when the capacity is full. Your class should halve the size of the array when an item is dequeued if it causes the number of items to be half the capacity or less. Lorna is one week pregnant and must consult a medical professional what doctor should she consult brownish-orange and red colors in subsurface horizons are caused by ___________ in the soil. The planets closest to the Sun and found between the Sun and the asteroid belt are Mercury, Venus, Earth and Mars. These planets are known as the __________ planets. Inner planets are also sometimes called the Terrestrial planets The biceps are concentrically contracting with a force of 900N at a perpendicular distance of 3cm from the elbow joint. How much torque is being created by the biceps?O 27Nm flexion torqueO 2700Nm flexion torqueO Beach season coming up...time for those curls!O 270Nm flexion torqueO 27Nm extension torque a full-length play, historically speaking, lasts _____. a. less than one hour b. between one and two hours c. between two and three hours d. between three and four hours Presidents Kennedy and Reagan reduced marginal tax rates to promote work and business risk taking.TrueFalse Properties of Matter Unit Test1 of 121 of 12 ItemsQuestionA scientist adds iodine as an indicator to an unknown substance. What will this indicator reveal about the substance?(1 point)the presence of glucosethe presence of glucosethe presence of lipids or fatthe presence of lipids or fatthe presence of baking powderthe presence of baking powderthe presence of starchthe presence of starch a website whose content is created and edited by the ongoing collaboration of end users is known as Need help with implementation of the struct and the three functions.Part I: Thread-Safe, Unbounded Priority Queue TypeThe first part of the assignment is to implement a thread-safe, unbounded priority queue. "Unbounded" means that instances of the queue does not have a fixed capacity: any number of items can be inserted without removing an item. This means you will have to use dynamic memory allocation to grow and shrink the queue as items are inserted and removed."Items" can be anything - they are represented by a pointer. It is up to the client (i.e., the code using the implementation) to ensure that the void * that is returned is cast to the actual type. Note that, unless everything placed into the queue is of the same type, there is no way for the client code to know what to cast the void *pointer returned by pq_next() to. So the best thing is for each instance of pq_t to be used to store only one type of item.You will define a type:typedef struct { /* your code here */ } pq_t;You will also define three functions:pq_t *pq_create(void) { /* your code here */ } Creates and initializes a priority queue instance and returns a pointer to it. Returns NULL on error (e.g., OS out of memory - should never happen). This includes creating and initializing thevoid pq_insert(pq_t *q, void *item, short prio) { /* your code here */ } insert the given item into the given queue at the given priority. This operation never blocks. If item A has priority x, and item B has priority y, and x > y, then item A will be returned before item B. Negative priorities are allowed.void *pq_next(pq_t *q) { /* your code here */ } Returns the item in the given queue that was inserted with the highest priority. If there is more than one item with the same priority, returns the oldest one. If the queue is empty, this operation blocks until an item is inserted.You may implement the queue abstraction any way you want, but you must use pthread_mutex_t and pthread_cond_t to synchronize access to your data structure, since it will be used by multiple threads at the same time. (In particular, your definition of pq_t must include at least one variable of type pthread_mutex_t and one of type pthread_cond_t.) You will also need to use malloc() and free() to dynamically adjust the size of the data structure. (Note: using pthreads' mutex and condition variable is probably the simplest way to implement this.) when trasnational advocacy network endorse international agreements they are engaging in which type of effect that they can have on international politics? in a sociological context, how is a persons individual identity determined? PLEASE BE QUICK ON TIME LIMIT!!!!!Consider the line y =4x 1.Find the equation of the line that is parallel to this line and passes through the point (-3, -6).Find the equation of the line that is perpendicular to this line and passes through the point (-3,-6)Equation of parallel line:?Equation of perpendicular line:? boys begin to outperform girls on many types of visualspatial tasks starting at age eight or nine, and the difference persists into adulthood. T/F exception handling refers to the logical group of dml actions that is affected by a transaction control statement. T/F ?