Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#include using namespace std; int main() { //1. Start //1.1 Declaration of variables( syntax: ) int m;//mark char g;//grade //2. Enter mark, m //2.1 Inform

#include using namespace std;

int main() { //1. Start //1.1 Declaration of variables( syntax: ) int m;//mark char g;//grade //2. Enter mark, m //2.1 Inform user to enter 2 Number cout<<"Please enter mark between 0 to 100: "; //2.2 Enter number cin>>m; if (m>=80) g='A'; else if ((m>=70) && (m<80)) g='B'; else if ((m>=60) && (m<70)) g='C'; else if ((m>=50) && (m<60)) g='D'; else g='E';

//3. Display grade, g //3.1 Inform user the grade cout<<"Grade Obtain : "<

----------------Help me change this coding from multi-way selection to switch selection ----------- using C++ -------

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 Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

4. Use L'Hospital's rule to show the following. (b) ln x x as x

Answered: 1 week ago