Nested if/else statements (C++ programming tutorial)

preview_player
Показать описание
C++ Programming Tutorial: Nested if/else statements

Please support my work:
Every dollar is seriously appreciated and enables me to continue making more tutorials
Рекомендации по теме
Комментарии
Автор

Thank I had too many ideas before and when it comes to entering words. I had to let user enter numbers instead. Now I can do better because of you. ❤️

ahmedalyafeie
Автор

THANK YOUU SO MUCH FOR YOUR HELP *crying

Hasif-ugnq
Автор

Program 1 Nested Statements (if/else with nested statements)

Write a program that computes taxes for the following table, your code must include nested statements, see the lecture for similar example program. Be sure to use proper formulas and good coding practices.

In this program, you will be prompting the user if they are single or married and their income. Using the table below, determine how much they will pay in taxes based on the tax bracket in the column labeled "The tax is".

If status is Single and income is

The tax is
$0 - $8, 000 10%
$8, 001 - $32, 000 $800 + 15%
$32, 001 and above $4, 400 + 25%
If status is Married and income is

The tax is
$0 - $16, 000 10%
$16, 001 - $64, 000 $1, 600 + 15%
$64, 001 and above $8, 800 + 25%

chonrodriguez
Автор

another version

if (gender == "MALE" && age >= 17)
cout << "you do qualify for the team";
else
cout << "you dont qualify";

Mustafalllica
Автор

What should I do if i would like to addition of two number by using Nested if?

អូនសុធារិទ្ធ-ហល
Автор

Thank you so much we have to make a program!

hollowed
Автор

This isn't a nested if/else statement. It's an if within an if statement. A nested if/else statement has multiple else's.

shylildude
Автор

some one plz help I'm a beginner... at 1:25 as soon as he typed "if" the compiler showed (condition) { statements } by it self and i use visual studio and it doesn't do that.. is there a way to make visual studio do that.. it would really help me I'm on pc if that helps.. plz someone message or comment back to my inquiry. thank you and sorry for being so inexperienced.

RattyDaddy
Автор

keep in mind most of people search for this video are begginers so you gotta explain some stuff !!

MTareq
Автор

Hey I have a assignment to do can you help me with that?

dhruvilpatel
Автор

What compiler does the instructor use on these tutarials?

calebmikenas
Автор

This code is out of date for politics in the year 2018. Please update to please every person. :)

PhilBailey
Автор

A rusted system would ruin this algorithm.

zayfex
Автор

Did you just assumed ONLY 2 genders? TRIGGERED

Passerby
Автор

can u stop typing and start explaining plse ???

CoolName