Question: C++ (Structs 1) Write a program that creates and uses a struct of a movie. A movie consists of a title and the year that
(Structs 1) Write a program that creates and uses a struct of a movie. A movie consists of a title and the year that came out. The main program uses this struct to ask for the uers' favourite movie. The programmer's favourite movie is hard-coded in the main function. Here is a sample run: nter title: Terminator 2 nter year: 1992 y favorite movie is: 2001 A Space Odyssey (196 And yours is: Terminator 2 (1992) (Structs 2) Write a C++ program te add two fractions and display the result sum fraction. Your program will prompt the user to input fraction 1 and fraction 2. See the example output below. You will need to use a C++ structure to define a fraction. The structure has two members: numerator and denominator. Write a function that adds two fractions. An example run is the following: nter traction 1: numerator denominator:1 Enter fraction 2:numerator denominator:2 7/6 Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
