Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Answer Program include include include function to read ... 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

Principles of Information Systems

Authors: Ralph Stair, George Reynolds

11th edition

1133629660, 978-1133629665

More Books

Students also viewed these Algorithms questions

Question

List and describe some other types of MISs.

Answered: 1 week ago

Question

Distinguish between centralized and distributed data processing.

Answered: 1 week ago