Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C++ Based on the comments in the files, determine the problems, correct them and run them. _______________ // DEBUG 3-2 // Allows user to

Using C++

Based on the comments in the files, determine the problems, correct them and run them.

_______________

// DEBUG 3-2 // Allows user to select an option and displays the price #include #include void main() { char answers[5] = {'a', 'b', 'c', 'd'; 'e'}; double price[5] = {149.95, 215.66, 239.77, 308.11, 500.99}; char selection; int x; cout<<"Enter your choice of our hotel suites"<>selection; while(selection = 'x') { for(x = 0; x<= 5 ; ++x) if(selection == answers[x]) cout<<"Price $"<

// DEBUG 3-3 // decides if word is in first or last half of alphabet #include #include void main() { char word[20]; cout<<"Enter a word "; cin>>word; if(word<= "m") cot<

// DEBUG 3-4 // creates Pig Latin // example - user types "dog" // output is "ogday" #include #include void main() { char word[20]; cout<<"Enter a word "; cin>>word; cout<<"In Pig Latin: "; while(word[x] != NULL) { cout<

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions