Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

So far, all of the programming problems we have encountered have given us the re

ID: 3662757 • Letter: S

Question

So far, all of the programming problems we have encountered have given us the requirements around what to program. In real life, however, things are not wrapped up so neatly. Often developers are tasked with gathering the requirements for a program on their own. They may be tasked with defining the problem and then defining the solution along with developing the program. You can read more about requirements gathering here. Consider a real world social change issue. For example: • Books written in English to be translated into other languages • Reconnecting children with parents separated during natural (earthquakes) or human-initiated disasters (war) • Logistics for bringing medication into remote areas or areas under conflict (ebola) • Provision of clean water to impoverished regions Write a short paper on the problem you are trying to solve and how your application will address this issue. If you need to create your own class with your own methods, elaborate of what those methods would be. If they are value-returning, what are the parameters? Lastly, what is the overall impact of your application?

Explanation / Answer

The problem I would like to address is the the provision of clean water to impoverished regions.

First we will find the requirements

1)The areas below poverty line(impoverished)-

2)The standards for clean water- an integer or float values.

3)Checking water levels in each area and comparing them with the single standard as mentioned above.

Implementation:

1)For checking the areas we will create the variables with the name of the place. like char a_name,char b_name.

2) We will set an integer value for the standard poverty like int a=50 where anything below 50 is below poverty line.

3) we will check the poverty value of each area.

for example for a_name we will create a variable int p.This is the value of poverty for this area. After taking an input of the p we will call method check_povertyline(int p ) and pass arguement p to it.

4) The function check_povertyline will chekc if p<50 then it is impoverished area otherwise will ask the user enter another city to check .if it is below this standard then ask user to enter w.

5) .The standard for water quality (int s) will be defined at the beginning.If p<50 then we will ask the user to enter the water quality value( int w). and we will call the function check_clean() by passing the arguement w with this.

void check_clean(int w)

{if w<s;

cout<< "provide clean"

else return o;

}

This method checks the water value against a standard and provides access to clean water where the water quality is of lower standard.

The application basically provides water to areas below the poverty line where the water level is degraded and does not maintain a standard which is kept for a water in pure form.

#include<iosteam.h>

void main()

{ char a_name,char b_name;

int a=50 /* standard for pverty line */

int b;

int s=50 /* water standard */

int p;

cout<<"enter poverty for area";

cin>>p;

check_povertyline(p);

void check povertyline(int p)

{ if p<a;

{cout<<" impoverished area";

cout<<"enter the water level ";

cin>>w;

check_clean(w);

}

else

cout<<" poverished place";

}

void check_clean(int w)

{if w<s;

cout<< "provide clean"

else return o;

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote