C++ Decision Programming

5.0
estrelas
6 classificações
oferecido por
Coursera Project Network
Neste projeto guiado, você irá:

Use the Else statement when the If condition is false.

Use Nested C++ If-Else statements to determine sign.

Use a C++ Switch construct to determine the month.

Clock2 hours
IntermediateIntermediário
CloudSem necessidade de download
VideoVídeo em tela dividida
Comment DotsInglês
LaptopApenas em desktop

In this project you will create an application that yields a zodiac sign based on an input of birth month and day. The process of making decisions is fundamental in programming, just as it is in real life. A pre-existing condition is evaluated, and a decision is made based on the evaluation. For example, if it is cold outside, a person chooses to wear a coat. If a temperature sensor exceeds a certain threshold, the furnace turns off. In C++, as in other programming languages, a decision construct is used to control the sequence of instructions that are executed under certain conditions. It allows the programmer the power to take certain action based on various input conditions. For example, a grading program will need to assign a certain grade based on a test score. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Habilidades que você desenvolverá

C++ nested decision constructsC++ conditionalC++ Decision programmingC++ I/OC++ switch

Aprender passo a passo

Em um vídeo reproduzido em uma tela dividida com a área de trabalho, seu instrutor o orientará sobre esses passos:

  1. Input the Decision Data for the If Statement.

  2. Use the Else statement when the If condition is false.

  3. Use Nested C++ If-Else statements to determine sign.

  4. Use a C++ Switch construct to determine the month.

  5. Create a Compound Condition with Conditional Operator Ternary and Prevent Invalid Values in C++.

Como funcionam os projetos guiados

Sua área de trabalho é um espaço em nuvem, acessado diretamente do navegador, sem necessidade de nenhum download

Em um vídeo de tela dividida, seu instrutor te orientará passo a passo

Perguntas Frequentes – FAQ

Perguntas Frequentes – FAQ

Mais dúvidas? Visite o Central de Ajuda ao Aprendiz.