Write a program Using C# Saudi Airlines permit each passenger to hold one bag. The maximum weight
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program Using C#
Transcribed Image Text:
Saudi Airlines permit each passenger to hold one bag. The maximum weight allowed for the bag depends on the class of the passenger which is: o 30 Kg for First class 'F'. o 25 Kg for Business 'B'. o 20 Kg for Economy 'E'. If the weight of the bag excesses the allowed one, the passenger should pay 10 SR for each Kg. Write a program that calculates the excess baggage charge for the passenger. All input data should be read by the user. Solve the problem using the switch statement. Saudi Airlines permit each passenger to hold one bag. The maximum weight allowed for the bag depends on the class of the passenger which is: o 30 Kg for First class 'F'. o 25 Kg for Business 'B'. o 20 Kg for Economy 'E'. If the weight of the bag excesses the allowed one, the passenger should pay 10 SR for each Kg. Write a program that calculates the excess baggage charge for the passenger. All input data should be read by the user. Solve the problem using the switch statement.
Expert Answer:
Answer rating: 100% (QA)
source code using System namespace BagWeightCalc class ... View the full answer
Posted Date:
Students also viewed these programming questions
-
Using C# Create a class name student which has 3 different attributes and one function has two prosperities from your choice.
-
For the given case study, do the following: Write Functional Requirement Write Non-functional Requirement Draw use case diagram and write use case description also Identify classes and draw class...
-
Draw the activity diagram and state chart diagram for the given scenario. Home Rent System The owner of the system can add each building and its apartments, enter the name of the tenant and the...
-
1. Internal controls are concerned with A) only manual systems of accounting. B) the extent of government regulations. safeguarding assets. C) D) preparing income tax returns. 2. Having one person...
-
Describe the mechanistic and motivational models of job design. What is the emphasis of each?
-
Millions of people use social networking Web sites, such as Facebook and MySpace, to share personal information, including photos and videos with their friends. Should companies use social networking...
-
Describe the advantages and disadvantages of forming a limited liability company (LLC) versus a corporation.
-
Now suppose that the U.S. court hears the case and awards damages to Robco, but the government of Honduras has no assets in the United States that can be used to satisfy the judgment. Under which...
-
1. 2. 3. 4. 5. At critical condition of temperature and pressure for a real gas, what would be the value of 16 Z? Here, Z is its compressibility factor. of species whose In the following list of...
-
Read the following two-part scenario and answer the questions provided. In each of your responses, please include: A clear answer that shows your understanding of the course material All of the...
-
After you have finished preparing all the financial statements, analyze the statements and write a short report summarizing your findings. Use the template provided in the What to Submit section to...
-
Sketch the graph of each equation in Problems 3-30. \(y=2 x^{2}-3\)
-
Quilts R Us (QRU) is considering investing in a new patterning attachment with the cash flow profile shown in the table below. QRU's MARR is 13.5 percent/year. a. What is the internal rate of return...
-
The U.S. economy slowed significantly in early 2008, and policy makers were extremely concerned about growth. To boost the economy, Congress passed several relief packages (the Economic Stimulus Act...
-
A long, thin, positively charged wire runs along the long central axis of a hollow conducting cylinder of length \(10 \mathrm{~m}\), inner radius \(50 \mathrm{~mm}\), and outer radius \(70...
-
Benzene is evaporating at \(20 \mathrm{~kg} / \mathrm{h}\) over the surface of a porous \(10-\mathrm{cm}\)-diameter cylinder. Dry air at \(325 \mathrm{~K}\) and \(1 \mathrm{~atm}\) flows at right...
-
Suppose the economy suffers a negative AD shock and GDP drops from $20 trillion to $ 18 trillion. Assuming the marginal propensity to consumes 0.90, if the Federal Government wants to stabilize the...
-
The age-old saying for investing is "buy low and sell high," but this is easier said than done. Investors who panic about falling prices sell their investments, which in turn lowers the price and...
-
Design second-order lowpass and highpass blocks, and combine them in cascade, to form a bandpass filter with passband \(0.3 \leq \omega \leq 0.4\), where \(\omega_{\mathrm{s}}=1\). Plot the resulting...
-
Plot the pole-zero constellation as well as the magnitude response of the transfer function of Exercise 4.20 for \(M=6,7,8\) and comment on the results. Exercise 4.20 Some FIR filters present a...
-
Design a second-order notch filter capable of eliminating a \(10 \mathrm{~Hz}\) sinusoidal component when \(\omega_{\mathrm{s}}=200 \mathrm{rad} / \mathrm{sample}\) and show the resulting magnitude...
Study smarter with the SolutionInn App