FUMAT 2021.1
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    #Resumo colaborativo ## Equipes 1. Ezequiel Vigolo - Entrada e saída e operadores Aritmeticos * William Jones - Ausente * Guilherme Locatelli [ ] * Thales Gerhardt - Ausente * Juliane Antunes * https://meet.google.com/atb-uwbm-jry 1. Dilton - Estrutura de Decisão (IF...ELSE) * Felipe Zini [ ] * Miguel Ribeiro * Thiago Rodrigues Melo - Ausente * Welivelton - Ausente * https://meet.google.com/tcp-wkvt-bnc 1. Jessica - FOR * Wellivelton [X] * Matheus Balzan [ ] * Emerson Reginaldo - Ausente * Breno Reck - Ausente * https://meet.google.com/qvb-jfzv-cwc 1. Naun (Ausente) - WHILE * Guilherme Massignan [ ] * Miguel Agostino [ X ] * Vinícius de Melo [ ] * Bruno de Bortoli * João Vitor [ ] * https://meet.google.com/gao-jgea-bmw Sequência de Aulas: * 19/07 - Vetores e Matrizes * 26/07 - Modularização * 02/08 - Revisão * 09/08 - PROVA FINAL * 16/08 - Exame ## Atividade * Sistematizar o conteúdo em arquivo compartilhado * Resolver 2 questões do seu tipo e 2 do nível seguinte #ENTRADA E SAÍDA - OPERADORES aritméticos /* Faça um algoritmo que le o preço de venda do produto, o preço de custo do produto e quantidade de unidades vendidas e informe quanto o foi o lucro naquela venda. */ #include <stdio.h> int main() { float custo, venda, lucro; int qntd_vendida = 0; printf("Preco de custo: R$"); scanf("%f", &custo); printf("\nPreco de venda: R$"); scanf("%f", &venda); printf("Quantidade vendida: "); scanf("%d", &qntd_vendida); lucro = (venda - custo) * qntd_vendida; printf("\nValor do lucro: %.2f", lucro); return 0; } /* Elabore um algoritmo em C, onde o usuário informe o tempo em minutos que gasta para realizar um prova e você irá informá-lo quantas horas equivale o tempo digitado e também quanto ele passou do tempo mínimo de prova que é de 20min (Considere que para a questão que todo o usuário fará um tempo de prova maior que o mínimo). */ #include <stdio.h> int main() { float tempo, horas , tempo_total; printf("\n Minutos necessarios para realizar a prova"); scanf("%f",&tempo); horas = (tempo / 60); tempo_total = tempo - 20; printf("\n O valor de tempo em horas é: %f",horas); printf("\n Tempo ultrapassado pelo usuario é: %f",tempo_total); return 0; } #DECISÃO e operadores relacionais e lógicos /* Criar um algoritmo para ler um percurso em quilômetros, o tipo de carro, e o tipo de combustível (gasolina ou álcool) e depois informar o consumo estimado de combustível deste percursso. Sabendo-se que o carro tipo 1 faz 12 km/l com gasolina e 7km/l com alcool, já o carro do tipo 2 faz 17km/l com gasolina e 9 km/l com álccol. */ #include <stdio.h> int main(void) { float percurso, carro, combustivel, consumo; printf("Informe o percurso em quilometros:\n"); scanf("%f", &percurso); printf("Informe o tipo de carro:\n"); printf("1 para 12 km/l com gasolina e 7km/l com alcool\n"); printf("E 2 para 17km/l com gasolina e 9 km/l com álccol\n"); scanf("%f", &carro); printf("Informe o tipo de combustivel:\n"); printf("1 para gasolina\n"); printf("E 2 para álcool\n"); scanf("%f", &combustivel); if (carro == 1){ if(combustivel == 1){ consumo = percurso/12; printf("O consumo estimado de combustivel é: %.2f litros",consumo); } if(combustivel == 2){ consumo = percurso/7; printf("O consumo estimado de combustivel é: %.2f litros", consumo); } } if (carro == 2) { if(combustivel == 1){ consumo = percurso/17; printf("O consumo estimado de combustivel é: %.2f litros", consumo); } if (combustivel == 2){ consumo = percurso/9; printf("O consumo estimado de combustivel é: %.2f litros", consumo); } } return 0; } /* Faça um algoritmo para calcular a conta de energia, nele o usuário irá informar o preço do kWh , quantidade que kWh consumidos e a bandeira tarifária (verde, amarela e vermelha). Ressalta-se que, se a bandeira for verde não há acrescimo, se a bandeira for amarela o preço do kWh receberá um acrescimo de 10% no seu valor, se a bandeira for vermelha o preço do kWh receberá um acrescimo de 20% em seu valor. Entrará também na conta a taxa de iluminação pública, que é um valor fixo de R$13,20 (treze reais e vinte centavos). */ int main(void) { float preço, quantidade, bandeira, result; printf("Informe o preço do kWh em reais:\n"); scanf("%f", &preço); printf("Informe a quantidade de kWh consumidos:\n"); scanf("%f", &quantidade); printf("Informe a bandeira tarifaria\n"); printf("1 para bandeira verde\n"); printf("2 para bandeira amarela\n"); printf("3 para bandeira vermelha\n"); scanf("%f", &bandeira); if (bandeira == 1){ result = preço * quantidade + 13.20; printf("Sua conta de energia este mês é de: %.2f reais",result); } if(bandeira == 2){ result = (preço + (preço * 0.1)) * quantidade + 13.20; printf("Sua conta de energia este mês é de: %.2f reais",result); } if (bandeira == 3) { result = (preço + (preço * 0.2)) * quantidade + 13.20; printf("Sua conta de energia este mês é de: %.2f reais",result); } return 0; } #FOR Elabore um algoritmo em c, que leia 10 números quaisquer, e mostre ao final: o produto dos 2 primeiros números, a soma do 3°,4º e 5° números, e a média aritméticas do 6º, 7°, 8°, 9º e 10° número. (Utilize a estrutura FOR para responder a questão). #include <stdio.h> int main(void) { float numero, numero_1, i, produto, soma, soma_1, media; soma=0; soma_1=0; for(i=1; i<=10; i++){ printf("\n Informe o numero:"); scanf("%f",&numero); if (i==1){ numero_1=numero; } if (i==2){ produto=numero*numero_1; } if (i>=3 && i<=5){ soma=soma+numero; } if (i>=7 && i<=10){ soma_1=soma_1+numero; } } printf("\n o valor do produto e: %f", produto); printf("\n o valor da soma e: %f", soma); media=(soma_1/4); printf("\n o valor da media e: %f", media); return 0; } #WHILE #include <stdio.h> int main(void) { /* Atidivade 1 - Elabore um algoritmo em c, que leia um conjunto de consultas. O programa deve iniciar perguntado se a consulta foi feita por convênio ou foi particular. Caso ela tenha sido feita por convênio o usuário deve informar qual convênio (Unimed, RedeVida, Internow, são aceitos apenas esses três), caso a consulta seja feita de forma particular deve ser inserido o valor pago. Após cada entrada deve ser perguntando se o usuário deseja inserir uma nova entrada ou encerrar o programa. Quando o programa for encerrado deve ser exibido o número de consultas por convenio e quantas consultas por convênio, bem como quantidade de consultas particular e todo valor que foi pago. (Utilize a estrutura while dentro da resolução desta questão.) */ int consulta, convenio, valor, valor_p, entrada, qtd_1=0, qtd_2=0, qtd_3=0, qtd_p=0; do{ printf("\n Sua consulta sera feita pelo convenio ou particular"); do{ printf("\n Se a sua consulta for pelo convenio digite (1) se for particular digite (2)"); scanf("%d",&consulta); }while(consulta!=1 && consulta!=2); if(consulta==1){ do{ printf("\n Sua consulta sera feita por qual dos convenios Unimed, RedeVida, Internow "); printf("\n Se a sua consulta for pelo convenio Unimed digite (1), RedeVida digite (2), Internow digite (3)"); scanf("%d",&convenio); if(convenio==1){ qtd_1=qtd_1+1; }else if(convenio==2){ qtd_2=qtd_2+1; }else{ qtd_3=qtd_3+1; } }while(convenio!=1 && convenio!=2 && convenio!=3); }else{ printf("informe o valor pago pela consulta particular"); scanf("%d", &valor); qtd_p=qtd_p+1; valor_p=valor_p+valor; } printf("\n Digite (1) para continuar e (2) para encerrar a programação"); scanf("%d", &entrada); }while(entrada==1); printf("\n quantidade de consultas Unimed,%d", qtd_1); printf("\n quantidade de consultas Rede Vida,%d", qtd_2); printf("\n quantidade de consultas Internow,%d", qtd_3); printf("\n quantidade de consultas particular,%d", qtd_p); printf("\n valor gasto nas consulta particular,%d",valor_p); return 0; } /* atividade 2 - Elabore um algoritmo em c, que leia um conjunto de reservas de hospedagem. Em cada reserva será informado o número de quartos, a quantidade de hóspedes, a quantidade de dias e o preço da reserva. Ao final da reserva deve se perguntar se o usuário deseja fazer um nova reserva, e caso ele responda que sim o processo deve continuar até que a resposta para esta pergunta seja não. Ao final do programa deve ser exibido o preço médio da diária por hóspede no hotel e quantidade de reservas que ultrapass */ int reserva, quartos, hospedes, dias; float preco_reserva,preco_medio, total; do{ printf("\n Bem vindo a central do hotel \n quantos quartos deseja reservar\n"); scanf("%d",&quartos); printf("\n quantos hospedes para a reserva\n"); scanf("%d",&hospedes); printf("\n quantos dias\n"); scanf("%d",&dias); printf("\n preço da reserva\n"); scanf("%f",&preco_reserva); preco_medio= preco_reserva/(hospedes*dias); printf("\n O preço médio das ospedagens foram:%.2f\n", preco_medio); printf("\n Digite (1) para fazer nova reserva e (2) para encerrar a programação\n"); scanf("%d", &reserva); }while(reserva==1); total= preco_medio+preco_medio; printf("\n O preço total das hospedagens foram:%.2f\n", total); return 0; } # My first HackMD note (change me!) ###### tags: `Tag(change me!)` > This note is yours, feel free to play around. :video_game: > Type on the left :arrow_left: and see the rendered result on the right. :arrow_right: ## :memo: Where do I start? ### Step 1: Change the title and add a tag - [ ] Create my first HackMD note (this one!) - [ ] Change its title - [ ] Add a tag :rocket: ### Step 2: Write something in Markdown Let's try it out! Apply different styling to this paragraph: **HackMD gets everyone on the same page with Markdown.** ==Real-time collaborate on any documentation in markdown.== Capture fleeting ideas and formalize tribal knowledge. - [x] **Bold** - [ ] *Italic* - [ ] Super^script^ - [ ] Sub~script~ - [ ] ~~Crossed~~ - [x] ==Highlight== :::info :bulb: **Hint:** You can also apply styling from the toolbar at the top :arrow_upper_left: of the editing area. ![](https://i.imgur.com/Cnle9f9.png) ::: > Drag-n-drop image from your file system to the editor to paste it! ### Step 3: Invite your team to collaborate! Click on the <i class="fa fa-share-alt"></i> **Sharing** menu :arrow_upper_right: and invite your team to collaborate on this note! ![permalink setting demo](https://i.imgur.com/PjUhQBB.gif) - [ ] Register and sign-in to HackMD (to use advanced features :tada: ) - [ ] Set Permalink for this note - [ ] Copy and share the link with your team :::info :pushpin: Want to learn more? ➜ [HackMD Tutorials](https://hackmd.io/c/tutorials) ::: --- ## BONUS: More cool ways to HackMD! - Table | Features | Tutorials | | ----------------- |:----------------------- | | GitHub Sync | [:link:][GitHub-Sync] | | Browser Extension | [:link:][HackMD-it] | | Book Mode | [:link:][Book-mode] | | Slide Mode | [:link:][Slide-mode] | | Share & Publish | [:link:][Share-Publish] | [GitHub-Sync]: https://hackmd.io/c/tutorials/%2Fs%2Flink-with-github [HackMD-it]: https://hackmd.io/c/tutorials/%2Fs%2Fhackmd-it [Book-mode]: https://hackmd.io/c/tutorials/%2Fs%2Fhow-to-create-book [Slide-mode]: https://hackmd.io/c/tutorials/%2Fs%2Fhow-to-create-slide-deck [Share-Publish]: https://hackmd.io/c/tutorials/%2Fs%2Fhow-to-publish-note - LaTeX for formulas $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$ - Code block with color and line numbers: ```javascript=16 var s = "JavaScript syntax highlighting"; alert(s); ``` - UML diagrams ```sequence Alice->Bob: Hello Bob, how are you? Note right of Bob: Bob thinks Bob-->Alice: I am good thanks! Note left of Alice: Alice responds Alice->Bob: Where have you been? ``` - Auto-generated Table of Content [ToC] > Leave in-line comments! [color=#3b75c6] - Embed YouTube Videos {%youtube PJuNmlE74BQ %} > Put your cursor right behind an empty bracket {} :arrow_left: and see all your choices. - And MORE ➜ [HackMD Tutorials](https://hackmd.io/c/tutorials)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully