Question
C + + (coding) Functional Requirements: Mario Romero creates one-of-a-kind sterling silver and gold jewelry items, including earrings (category 1), bolos (category 2), necklaces (category
C + + (coding)
Functional Requirements:
Mario Romero creates one-of-a-kind sterling silver and gold jewelry items, including earrings (category 1), bolos (category 2), necklaces (category 3), pins (category 4), rings (category 5), and cuffs (category 6). Mario needs to know how to price an item once he has finished making it.
Programming Requirements:
Your program should call separate functions to input and validate each of the following values:
item-num
item-category (1,2,3,4, 5 or 6)
hours-worked (>0)
weight-of-silver-in-ounces (>=0)
weight-of-gold-in-ounces (>=))
gem-price (>=0)
and then it should call one other function to calculate the wholesale price and the retail price of the item as follows:
wholesale-price = (hours-worked * 30 + weight-silver-in-ounces * 17.80 + weight-gold * 1200 + wholesale-gem-price) * 1.5
retail price = 5 * wholesale-price
(Hint: Use pass by reference for some of the parameters to help you in the above function.)
Main() should then pass EVERYTHING to a function that displays all of this in the most beautiful and professional way possible.
Here's part of the pseudocode so that you can see what I am talking about. prototype functions main declare vars temNum getltemNumber), category-getCategory0; hoursWorked - getHoursWorked0; silverWeight -getSilverWeight0; goldWeight - getGoldWeight0; gemPrice getGemPrice0; calcPrices(hoursWorked, silverWeight, goldWeight, gemPrice, wholeSalePrice, retailPrice); displayltAll(itemNumber, category, hoursWorked, silverWeight, goldweight, gemPrice, wholeSalePrice, retailPrice); end main float getHoursWorked) //this is an example of one of the functions float hours prompt for hours input hours while(hoursStep 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