Question: A well-known movie store located in Amman, aimed to organize the movie selling process on monthly basis. At the end your program should do some

A well-known movie store located in Amman, aimed to organize the movie selling process on monthly basis. At the end your program should do some analysis and generate some reports. Your task is to help this store organizing their selling movies based on movies genre (movies type). According to the requirements of the movie store, you should identify the following: 

a) create a 2D array of type char (string array) named genres, to store the basic film genres. Suppose that the size of this array is 6X30 

Define an integer array named pieces with size of 6, to store the available number of pieces of each movie genre 

Define another float array named prices with size of 6, to store the price of each movie genre. Suppose that all movies of the same genre have the same price, and the price will be entered in US dollars (USD)

b) to deal with genres, you need to define the following functions: 

inputGenres(), a function to read movies genres 

changeCase(), a function to convert movie genres to uppercase letter 

displayGenres(), a function to printout movies genres

c) to deal with pieces, define the following functions: 

fill Pieces(), to fill out the pieces array with random numbers from 3 until 10

d) to deal with prices, define the following functions: 

input Prices(), to fill out the prices array with positive real numbers which represents prices in USD 

convert Prices(), to convert prices into JoD, the new values will be stored in the same array. Suppose that 1 JoD = 0.7 USD

e).  The program should display a menu to allow the user to choose among 4 options as follows: 

Option A, sell Movie() a function to simulate the selling process of a movie. Here you need to pass the movie genre as integer. So, the number of pieces will be decreased by 1. If the number of pieces reaches 0, you should alert the user that there is no more movies for this genre. 

Option B, add New Movie() a function to add a new piece of a movie genre. Here you need to pass the movie genre as integer. So, the number of pieces will be increased by 1. 

Option C, search Price(), to search for a price within prices array. This function should return the position of this price within the same array 

Option D, selling Summary(), to exit the options and display a summary of selling items for all movie genre. 

Step by Step Solution

3.41 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Program include include include function to read ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!