Saudações,
Para não perder o costume, irei postar outro exercicio resolvido em uma aula. Dessa vez o exercicio é o seguinte:
– Implemenetar o sistema de contabilidade de um mafioso. (outros detalhes continue lendo o post)
O enunciado do mesmo se encontra no “read the rest of this entry” para não deixar o post muito extenso devido ao longo enunciado.
A resolução do mesmo você pode baixar aqui.
Você é um Mafioso informatizado.
Você vai criar um sistema para gerenciar os seus débitos e também as pessoas que devem a você.
Este sistema será baseado em duas listas encadeadas:* Para isso você vai fazer um programa que manipula mais de uma lista;
* o programa fará isto com um único conjunto de funções e passagem das diversas listas como parâmetros;
* como aplicação imaginemos um sistema de contabilidade simples;
* você vai ter um Plano de Contas constituído por duas listas: débitos e créditos;
* o mesmo conjunto de funções (que você já implementou) vai poder ser utilizado para isso: você somente precisa ampliar o conjunto de parâmetros da função para passar por referência também a lista que você quer alterar.A passagem de parâmetro da lista deve ser por referência porque você deseja que as alterações sejam persistentes.
Cada lista de débitos ou créditos é constituída por lançamentos. Cada lançamento possui:
* um valor real (positivo);
* um nome. Por exemplo, “Pagar proteção à Mafia”Estrutura:
tipo tLançamento {
caracter *nome;
real valor;
};A lista encadeada que conterá os lançamentos terá um elemento de lista definido da seguinte forma:
Estrutura:
tipo tLista {
tLancamento* info;
tLista* proximo;
};
A cabeça de lista de cada lista será uma variável global contendo uma estrutura como abaixo:
tipo cLista {
tLista* lista;
inteiro ultimo;
};No programa principal você vai definir se vai realizar uma operação de débito ou de crédito e vai chamar as operações sobre listas necessárias, passando a lista correta como parâmetro (por referência) para a função que realiza a operação.
Além das operações básicas que a lIsta vai oferecer, você deve implementar uma operação adicional: totalização. Essa operação funciona assim:
* percorre a lista, escrevendo o nome e o valor correspondente a cada item (débito ou crédito)
* soma o valor em uma variável auxiliar
* escreve ao final o total de débitos ou de créditos, dependendo de qual lista você mandou totalizar.
mostbet shaxsiy kabinet login mostbet shaxsiy kabinet login
В этом обзоре мы обсудим современные методы борьбы с зависимостями, включая медикаментозную терапию и психотерапию. Мы представим последние исследования и их результаты, чтобы читатели могли быть в курсе наиболее эффективных подходов к лечению и поддержке.
Только факты! – Наркологическая клиника «Похмельная служба» в Краснодаре
мостбет kirish https://www.mostbet43287.help
pin-up qeydiyyat səhifəsi pinup56439.help
Статья посвящена анализу текущих трендов в медицине и их влиянию на жизнь людей. Мы рассмотрим новые технологии, методы лечения и значение профилактики в обеспечении долголетия и здоровья.
Практические советы ждут тебя – «Похмельная служба» в Краснодаре
scommesse europei italia (https://IT-Betting.com) nuovo papa
dove giocare
sportwedden sites 2026
Feel free to visit my web-site; Combo wedden
veloci dritta scommesse (Valencia) italia
1win bonus kodi ishlamayapti https://1win85063.help/
partita sospesa under e over scommesse
partita sospesa under e over scommesse
Thanks for some other great post. Where else may anybody get that kind of information in such an ideal method of writing? I’ve a presentation next week, and I am at the look for such information.
I wrote down your blog in my bookmark. I hope that it somehow did not fall and continues to be a great place for reading texts.
how to bet the wheel in horse racing how to Pick winners racing
nl beste live sport wedden 2026
Like the way you’ve outlined things. Easy to follow. Not cluttered.
how to place a bet on the grand national
Also visit my homepage – Aintree betting Friday
Abnormal this put up is totaly unrelated to what I was searching google for, but it surely used to be listed at the first page. I suppose your doing one thing proper if Google likes you adequate to place you at the first page of a non similar search.
have already been reading ur blog for a couple of days. really enjoy what you posted. btw i will be doing a report about this topic. do you happen to know any great websites or forums that I can find out more? thanks a lot.
I really like your writing style, excellent info , thanks for putting up : D.
siti di pronostici scommesse (Roma) elettroniche coppa italia
Thank you, I have just been searching for information about this topic for ages and yours is the greatest I’ve discovered till now. But, what about the conclusion? Are you sure about the source?
aviator स्लॉट्स समस्या aviator स्लॉट्स समस्या
Эта публикация обращает внимание на важность профилактики зависимостей. Мы обсудим, как осведомленность и образование могут помочь в предотвращении возникновения зависимости. Читатели смогут ознакомиться с полезными советами и ресурсами, которые способствуют здоровому образу жизни.
Что скрывают от вас? – Похмельная служба Краснодар
mostbet скачать Кыргызстан https://www.mostbet97142.help
1win geolocation Uganda https://1win08952.help/
I’m so happy to read this. This is the type of manual that needs to be given and not the random misinformation that’s at the other blogs. Appreciate your sharing this best doc.
В этой статье обсуждаются актуальные медицинские вопросы, которые волнуют общество. Мы обращаем внимание на проблемы, касающиеся здравоохранения и лечения, а также на новшества в области медицины. Читатели будут осведомлены о последних событиях и смогут следить за тенденциями в медицине.
Все материалы собраны здесь – стоп алко краснодар
mostbet киберспорт http://mostbet43287.help
1вин истифодаи промокод http://1win38596.help/
1win Andijon https://1win85063.help/
1win lucky jet бо пул https://1win38596.help/
По теме “Анализ цен на жилье: прогнозы и тренды”, есть отличная статья.
Смотрите сами:
https://newnedvizhimost.ru
наркология вызов на дом наркология вызов на дом
mines signal 1win https://1win08952.help/
can you bet betting Calculator Horse racing racing online
Roland Garros Scommesse online siti
siti italiani di scommesse grande Fratello (https://Fr-betting.com/)
vstart pronostici scommesse singole – https://Basketball-Wetten.com/ –
1win çıxarış rədd edildi 1win25674.help
The post is absolutely fantastic! Lots of great info and inspiration, both of which we all need! Also like to admire the time and effort you put into your website and detailed info you offer! I will bookmark your website!
You appear to know so much about this, and I see you’re a published author. Thanks
В этой статье мы рассматриваем разные способы борьбы с алкогольной зависимостью. Обсуждаются методы лечения, программы реабилитации и советы для поддержки близких. Читатели получат информацию о том, как преодолеть зависимость и добиться успешного выздоровления.
Читать полностью – Похмельная служба в Краснодаре
can fortune cookies come true https://truefortunecasino-bonus.com .
true fortune casino slots http://truefortunecasino-freespins.com/ .
true fortune casino no deposit bonus 2026 https://truefortunecasino-bonus.com .
Keep it up!. I usually don’t post in Blogs but your blog forced me to, amazing work.. beautiful A rise in An increase in An increase in.
true fortune ndb codes https://www.truefortune-50-free-spins.com .
true fortune no deposit bonus true fortune no deposit bonus .
true fortune free 250 chip no deposit true fortune free 250 chip no deposit .