Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

Students also viewed these Databases questions

Question

Under a wider scope discuss socialism in Tanzania.

Answered: 1 week ago