Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 :

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

28_Days_Later_(2002).mkv An_American_Werewolf_in_London_(1981).mkv Bay_of_Blood_(1971).mkv The_Birds_(1963).mkv The_Black_Cat_(1934).mkv The_Cabinet_of_Dr._Caligari_(1920).mkv Carrie_(1976).mkv Cemetery_Man_(1994).mkv Christine_(1983).mkv Dawn_of_the_Dead_(1978).mkv Dracula_(1931).mkv Eraserhead_(1977).mkv The_Exorcist_(1973).mkv Eyes_Without_a_Face_(1960).mkv Frankenstein_(1931).mkv Freaks_(1932).mkv Halloween_(1978).mkv Hellraiser_(1987).mkv Night_of_the_Living_Dead_(1968).mkv A_Nightmare_on_Elm_Street_(1984).mkv Nosferatu_(1922).mkv Poltergeist_(1982).mkv Psycho_(1960).mkv Re-Animator_(1985).mkv Ringu_(1998).mkv Rosemary's_Baby_(1968).mkv The_Shining_(1980).mkv The_Texas_Chainsaw_Massacre_(1974).mkv Videodrome_(1983).mkv The_Wicker_Man_(1973).mkv

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

image text in transcribed

image text in transcribed

This is what it is supposed to look like:

image text in transcribed

image text in transcribed

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

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 Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions