Three problems for c++

profilehomeworkhelp325
movieinfoapp.cpp

// Main.cpp #include <iostream> #include <iomanip> #include <string> #include "Movie.h" // include Movie class definition #include "Movies.h" // include Movies class definition using namespace std; void main() { //Calls in text file for the movie. Movies movies("Box Office Mojo.txt"); string movieCode; //Runs while the statement is not equal to zero double RatioCalc = 0; int statement = 1; while (statement != 0) { cout << "==========================Welcome to Movie Box Mojo Program!=============="<<endl; cout <<endl<<endl; cout << "Go ahead and enter the movie that you would like to search please!" <<endl <<"If you are done with you search please press ENTER to exit the program: "; getline(cin, movieCode); if(movieCode.length() > 0) { Movie m = movies.getMovie(movieCode); if(m.getTitle().length() > 0) { cout << m.toString() << "\n"; if(m.getWorldBoxOffice() > 0) { // Calculated the Ratio value here RatioCalc = ((float)m.getNonUSBoxOffice()/(float)m.getWorldBoxOffice())*100; cout << "The ratio of Non-US to World box office is : " <<std::fixed << std::setprecision(2) << RatioCalc << "%" << "\n\n\n"; } else cout << "No ratio generated due to World Box Office value being zero!\n\n\n"; } else cout << "\nMovie is not found! Please try again\n\n\n"; statement = 8; } else {cout << ""; statement = 0; } } }