Answered step by step
Verified Expert Solution
Question
1 Approved Answer
EE 109 Lab 2 Conditional Control Structures Spring 2021 Goal: Use If-else and switch conditional control structures. Instruction: Complete the following exercise and submit your
EE 109 Lab 2 Conditional Control Structures Spring 2021 Goal: Use "If-else" and "switch" conditional control structures. Instruction: Complete the following exercise and submit your lab report in MS Word file via Blackboard: 1. Do the lab exercises. 2. Copy and paste the followings into your lab report and submit it in Blackboard: a. C++ codes for Exercises 3 and 4. b. Screenshot of the Outputs for Exercises 3 and 4. Problem: Develop a program that asks a use for classification code (1, 2, 3, or 4) and print FRESHMAN or SOPHOMORE or JUNIOR or SENIOR or INVALID INPUT based on the user input. Exercises: 1. Draw a flow diagram/chart for a solution that uses if-else control structure. 2. Draw a flow diagram/chart for a solution that uses switch control structure. 3. Write and test a C++ program for the above problem using if-else control structure. Copy and paste your C++ code and screenshot of your test output into your lab report. 4. Write and test a C++ program for the above problem using switch control structure. Copy and paste your C++ code and screenshot of your test output into your lab report
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started