Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PSEUDOCODE ONLY NEEDED FOR THIS CHEGG QUESTION: Please create the pseudocode, and then code, debug, and create the submittal files for following problem: Design an
PSEUDOCODE ONLY NEEDED FOR THIS CHEGG QUESTION:
Please create the pseudocode, and then code, debug, and create the submittal files for following problem: Design an inventory class that can hold information and calculate data for prints created and sold by the photography dude (see Lesson 11 Assignment All the member variables will be private and all the member functions will be public Variable Name: Description (a are private) image Number an int that holds the item's image number a string that holds the image name up to 25 characters) image Name filmType a string that holds the film type used (string up to 5 characters a float that holds the sales price of each print price Prints prints Sold an int that holds the number of prints sold to date Member Functions Description all are public Default Constructor sets all the member variables to 0 or to Constructor #2 accepts a print's imageNumber, imageName, filmType, pricePrints, prints Sold. The function should copy these values to the appropriate variables. setlmageNumber accepts an integer argument that is copied to the imageNumber variable validate for 0 accepts a string argument that is copied to the imageName variable validate for not empty setlmageName accepts a string argument that is copied to the filmType variable validate for not empty etFilmType accepts a float argument that is copied to the pricePrints variable validate for 0 setPrice Prints setPrints Sold accepts an int argument that is copied to the printsSold variable validate for 0 calculates the total income made from sales (pricePrints printsSold getTota ncome getlmageNumber returns the value in imageNumber variable getlmageName return the value in imageName variable get FilmType returns the value in filmType variable getPricePrints returns the value in pricePrints variable returns the value in printsSold variable get PrintsSold The mutator functions should have an additional layer of validation protection as described in the list above. Creating this bottom-level layer of protection does not negate the need to validate the user input in whatever function calls the mutator function. Make sure to review page 744, "contents of Rectangle. cpp(Version 2) for an example of exit failure. Remember, your data is protected by it's member functions. You can't trust anybody! Use your integer input function and your float input function as you did before
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started