I'm pretty lost, please help
I need help with some programming that I've got due soon. Im pretty much completely lost, I really dont even know where to start. I know it says don't expect people to do your work for you, and Im not, but it would definetly help if someone could tell me what I need to do for this assignment. Id really appreciate it. Here is a copy of what Im supposed to do. Thanks.
Before you start, create a text file called xxxxxxx5.txt containing (this will be graded):
1. A clear statement of the problem, in your own words:
2. Describe the input and output information (use variable names and data types).
3. Develop a set of input and output values to use to test your program for several scenarios. Specifically:
a) A normal execution of each operation
b) A case where the user chooses an invalid menu selection (“87”, for instance)
4. Develop PSEUDOCODE for this problem, as discussed in class and in the text.
5. Develop your solution (see below for a more in-depth description)
6. Test your solution.
Using User Defined Functions
Read 4.1 on page 149 for your text.
Modularity allows us to “divided and conquer” the solution for a large problem solution. Each step in the decomposing outline can correspond to a function.
Reusability is a result of modularity where one module can be used by more that one program or module.
Abstraction is provided by the use of modules. The modules can contain the details of the tasks, and we can reference modules with worrying about the details.
Interface is the way to communicate with a module. For a function, the prototype provides the needed information to use a module.
Save your file xxxxxxx5.c, modify the comments and modify/add code to satisfy this assignment.
Carefully creating your pseudocode BEFORE you start will make your coding easier.
Graphical Estimation. The Population Reference Bureau’s world population projection can be modeled by
where P is the population in billions. t is the year with t = 0 is the year 1990.
Write a program the uses the above equation and produces the output as shown in Figure 1.
To do this you will create and use several functions as indicated in Figures 1 and 2.
Figure 1
Figure 2
To get you started with your functions the prototypes are provided below. Use the function and variable names given.
void printDashes();
Prints a row of dashes.
int getEndYear();
Prompts for, reads, and returns the end year for the chart range.
NOTE: The year read must be tested to prevent entering a year outside the range, 1990 to 2100.
void displayHeader( int year );
Print the header lines. Uses printdashes.
double calPop( int t );
Calculates and returns the world population for year t.
void displayPop( int year, int t );
Displays the year, population, and bar chart. Uses calPop and displayStars.
void displayStars( int numStars );
Prints a row of stars.
void displayPercChange( int begYear, int endYear, int beg_t, int end_t );
Displays a statement presenting the change of population. Uses finePerChange and printdashes.
double findPercChange( int beg_t, int end_t );
Caluates and returns the percentage of population change. Uses calPop.
Other specifications.
e = 2.71828. Create a constant for E using a preprocessor directive.
t = 0 represents 1990.
You DO have to do error checking on this assignment. There a specified limit for the end year.