Question: this is input data in .txt S 51.0 71.0 90.0 S 101.0 51.0 90.0 S 35.0 71.0 100.0 S 51.0 201.0 95.0 P 72.0 190.0



this is input data in .txt
S 51.0 71.0 90.0 S 101.0 51.0 90.0 S 35.0 71.0 100.0 S 51.0 201.0 95.0 P 72.0 190.0 P 280.0 110.0 V 0.0 0.0 V 80.0 300.0 V 200.0 175.0 V 275.0 55.0
write the program in C language
2 The Story. . Loudspeakers convert an electrical audio signal into a corresponding sound. They are basic units of both indoor and outdoor sound systems such as Hi-Fi sound systems and sound reinforcement systems. Loud speaker placement (ie., deciding where to place loudspeakers) plays a critical role in the audience experience of sound systems. The task in this assignment is to design and implement a program that models the sound patterns across given region equipped with a number of loudspeakers, and calculates any zones that perceive an insufficient sound strength. You do not need to be an audio engineer to carry out this assignment. However, you do need the following background information. The sound pressure level ("sound level for short) is a measure for the perceived sound strength. It is usually measured in a unit called decibel (dB)?. When measuring the sound level of a sound source, the distance needs to be taken into consideration. A distance of one metre (1 m) from the source is a frequently used default distance. Typically, if measured at one-metre distance , a pin dropping generates a 10 dB sound; a Hi-Fi speaker generates a 90 dB sound; a sound reinforcement speaker generates a 100 dB sound ; and a jet engine generates a 150 dB sound. According to the inverse proportional law when a sound level L, is measured at distance r1. then at distance r2. the sound level L2 L2 = L+ 20 logio (E) dB (r2 = 0) (1) For example, when measured at 100 metres, the sound level of a sound reinforcement speaker becomes 60 dB. Note that a sound level value must not be a negative number. If Equation yields a negative number, then Lz should simply be made 0. A music festival organiser would like a tool that allows them to model the sound level in a given region equipped with a number of loudspeakers. The tasks described below lead you to the desired program. Note that the input format for different stages differs slightly, but that all lines in the input file will start with an uppercase letter. You must read the uppercase letter of each line, and process the line accordingly. Some stages only need some of the lines. You may assume that between 1 and 99 loudspeakers will be specified; that between 1 and 99 observation points will be specified; and that the region boundary (Stage 5) consists of between 3 and 99 vertices, 'https://en.wikipedia.org/wiki/Loudspeaker sound levels may be measured using a frequency weighting filter, e.g. , the A-weighting scale, which results in a measurement denoted by dB or decibels on the A-weighting scale . We simply use dB to ease the discussion. https://en.wikipedia.org/wiki/Soundpressure. This equation requires certain conditions to apply, which might not suit our problem settings exactly. Nevertheless, we use it to simplify the discussion
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
