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

Using pseudocode only, create the logic for an application that is designed to a

ID: 3547693 • Letter: U

Question

Using pseudocode only, create the logic for an application that is designed to assist a meteorologist with data collection. Here are the specifications that are given to you:

Unfortunately, the meteorologist who gave you this task went out on sick leave and will not be back before your the date that your contract specifies that the program is to be developed, tested, and made ready for production. Therefore, you must use your best judgment as to any decisions that must be made regarding the program's design.

You will not be the person who will be maintaining the program, so you must make the code as simple as possible while maintaining its functionality. The code must be properly indented with appropriate code comments. The program must include a user friendly dialog so that the meteorologist can operate it with minimal instruction.  The program must also exhibit all of the programming principles we have covered this term.


Also It will use for loops, and arrays, use average in a separate method.  Let the user select a temperature, then output only those readings above the user's setting.

Explanation / Answer

Here is the pseudocode:


float calc_avg(float *array)

{

float sum=0;

for(i=0;i<5000;i++)

{

sum=sum+array[i];

}

return sum/5000.0;

}


void display(float avg)

{

cout<<"Average="<<avg<<endl;

}


string locations[5000];

int times[5000];

float temp[5000];

int i;

for(i=0;i<5000;i++)

{

cin>>locations[i]>>times[i]>>temp[5000];

}

float ret= calc_avg(temp);

display(ret);


Cheers!

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