Question: Lab 4 If-Else Objectives: After performing this lab, the students should be able to illustrate conditionals using flow charts write C++ programs that involve if-else


Lab 4 If-Else Objectives: After performing this lab, the students should be able to illustrate conditionals using flow charts write C++ programs that involve if-else statements Names of Lab Group Members: Activity Directions: For each programming exercise, provide your C++ source code and screenshot of your program output. Part I - Flow Charts Flow charts can be used to illustrate execution of different actions based on a set of conditions. In a flow chart, a diamond is used to represent a condition, and a rectangle is used to represent an action / branch. For example, here is a flow chart illustrating how Sheldon from the Big Bang Theory decides on his evening dinner plan: true false Monday (KC false Thai Food true Tuesday true Wednesday false Barbecue bacon cheeseburger Greek true Thursday etc. Salad Pizza 1. Create a flowchart showing available paths to The Cyber Security AS degree. The key class to get to is CISNTWK20 ethical hacking. To get into the class you must at a minimum have: a. Completed CIS50, or b. Earned a network+ certification, or c. Taken a transferrable networking class from a different school, or d. Have sufficient work experience 2. Create a flowchart illustrating how a triangle can be determined as equilateral (three equal sides), isosceles (exactly two equal sides), and scalene (no equal sides), given the lengths of the three sides. Part II If-Else 1. Write a program that reads in three floating-point numbers and prints the smallest of the three inputs. to 2. Write a program that prints all solutions to the quadratic equation ax2 + bx + c. The -b/62-4ac program should ask the user for a, b, and c and use the quadratic formula x = find the solutions. If the discriminant b2 - 4ac is negative, display the imaginary solutions in the form of u vi, where u and v are both real numbers and i = V-1. 2a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
