C++ Decision Programming

提供方
Coursera Project Network
在此指导项目中,您将:

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
Intermediate中级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

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.

您要培养的技能

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

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  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++.

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心