Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help me with my beginner to C++ programming practice problem. I need to s

ID: 3709114 • Letter: P

Question

Please help me with my beginner to C++ programming practice problem. I need to see this written so that i may study it for the exam(alot of photos but the assignment its self is short)

(hopefully this can be done without using vector)

This is the horror_movies.txt :

----------------------------------------------

----------------------------------------------

This is what it is supposed to look like:

Unit 6: Programming CSIS 123 Programming Fundamentals: The purpose of this lab is to gain practice using functions, while reinforcing control statements from previous chapters Your friend is organizing a Halloween party, and would like to display some horror movies as background entertainment. This friend would like to poll some guests to find the three best movies to play during the party, and has provided a file with 30 movies to choose from. You are tasked with writing a program that l display the movies to choose from, and then give the user a chance to vote for the op three movies. In the interest of time, your riend will hand count the results to choose the filrms. Your file of flms lo choose from is here horror movies Ixl Your program should Prompt the user lo review a list of 30 movies .Prompt the user to press any key to continue .Prompt the user to individually select or reject movies using 'y' or 'n Write each selection to an output file .Stop the selection process after the third movie is selected Output the selections lo the screen for the user to review . The program should utilize a minimum of four defined functions Constraints: .Do not use any concepts beyond the current chapter, unless explicitly stated in the tasks below .Re-use a single string variable lor each entry Hint: Each individual function should perform only one function . You may call a function from within a function . You may use a string value to represent the file name, instead of hard-coding. example string filename "filename.txt" file input.open(filename) Task 1: Setup Variables 1. Add horror movies.txt to the resource files folder 2. Use preprocessor directives to include input/output, file inputoutput, and string variables 3. Declare the input file variable you will use in place of cin for horror movies.txt 4. Declare the output file variable you will use inplace of cout for wriling to party selections Ixl 5. Declare a variable to contain a single movie title, of type string 6. Declare a variable to contain the horror_movies.txt file, of type string 7. Declare a variable to contain the party_selections.txt file, of type string. 8. Declare a variable to contain a coun, of type int 8. Declare a variable to contain a previous value of count, of type int 10. Separate Task 1 from Task 2 by pressing ENTER on your keyboard. This provides a single line of whitespace in your code

Explanation / Answer

#include "stdafx.h" #include #include #include using namespace std; string output_fileName = "party_selections.txt"; string input_filename = "horror_movies.txt"; void print_input() { string value; ifstream file(input_filename); if (file.good()) { cout