Question
Instructions :CREATE C PROGRAM. Investigate selective statements: if, if-else, if-else - if (nesting), switch. Look at the list of problems and solve. Select problem: Selective
Instructions :CREATE C PROGRAM. Investigate selective statements: if, if-else, if-else - if (nesting), switch. Look at the list of problems and solve. Select problem: Selective structures." Create the flow chart with the solution of each problem. Create the source code. Make the presentation of the diagram and source code of each solution, explaining the problem, how it was reached solution algorithm and how the source code instructions work. Add screenshot of execution. 5.The water in a swimming pool should be kept at a neutral pH level. A common test for pool water pH is to put in a few drops of a solution in a small sample of pool water and observe its color. If purplish, this indicates a high pH (alkalinity). Alternatively, an overly orange shade will idicate low pH(acidity). If the shade is reddish/mildy organge, thisidicates a neutral pH. Write a program that indicates the pH of the water if the color of the sample is entered as p for purple, o for orange or r for reddish. a. Use a multiple selection structure b. Use a switch structure.
Please show more than one way of coding it with C program and more than one flow chart, please explain fully. I appreaciate it.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started