[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

The Apgar Medical group keeps a patient file for each doctor

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 12
Thread images: 2

File: Logicprogramming.jpg (40KB, 450x382px) Image search: [Google]
Logicprogramming.jpg
40KB, 450x382px
The Apgar Medical group keeps a patient file for each doctor in the office. Each
record contains the patient’s first and last name, home address, and birth year. The
records are sorted in ascending birth year order. Two doctors, Dr. Best and Dr.
Cushing, have formed a partnership.

Design the logic that produces a merged list of patients’ names in ascending
order by birth year.

Helpz. He wants the answer written in pseudocode.
>>
>>146993
use the mergesort algorithm
>>
File: Untitled.jpg (369KB, 1920x1080px) Image search: [Google]
Untitled.jpg
369KB, 1920x1080px
Example of his pseudocode style.
>>
>>146997
No mention of a mergesort algorithm
>>
>>147003
For god's sake.

i=0;j=0;k=0;
while(){c[k++]=(a[i]<b[j])?a[i++]:b[j++];
if(i>len[a]||j>len[b]) break;}
if (i<len[a]) append_rest_of_a_to_c;
if (j<len[b]) append_rest_of_b_to_c;
>>
>>147008
Thanks for trying to help but unfortunately that is too advanced for my class.
>>
>>147022
t h e f u c k ?
h
e
f
u
c
k
?
>>
>>147027
literally look at my screenshot... everything is to be written like that.
>>
>>146993
you kidding right? using that pic you posted all you need to do is replace all the variables with the ones in the example.
>>
>>147054
meh. Thanks anyway brother. I'm assuming that would help but I've had no time to read my textbook and honestly I'm just not in a great state of mind. I'm taking 2 math classes+a biological science+this programming logic course in a 10 week period. It was a huge mistake.
>>
>>147054
Well, to be fair, he does need to know what a postincrement operator and a ternary operator do.

But now he can google them.
>>
>>147069
you are right
Thread posts: 12
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.