Question: Please create the pseudocode, and then code and debug a program to accomplish the following: Diana Jewelry Design (aka, PJD) creates one-of-a-kind sterling silver and
Please create the pseudocode, and then code and debug a program to accomplish the following:
Diana Jewelry Design (aka, PJD) creates one-of-a-kind sterling silver and gold jewelry items, including earrings (category 1), pins (category 2), pendants (category 3), bolos (category 4), rings (category 5), and necklaces (category 6). The owner needs to know how to price an item once she has finished making it.
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, weight-of-silver-in-ounces, weight-of-gold-in-ounces, gem-price
and then it should call another 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
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.
Part of the pseudocode below;

No use of global variables and you must use functions as I have outlined. The quality of your final output counts.
LANGUAGE C++ / UNDER VISUAL BASIC
prototype functions declare vars itemNum getitemNumbero category - getCategory0 hoursWorked- getHoursWorkedo silverWeight-getSlverWeight0 goldWeight- getGoldWeight0 gemPrice- getGemPrice0 calcPrices(hoursWorked, silverWeight, goldWeight, gemPrice, whole SalePrice retailPrice) displayltAl(itemNumber, category, hoursWorked, silverWeight, goldweight gemPrice, wholeSalePrice, retailPrice) end main /this is an example of one of the functions foat hours prompt for hours input hours while(hours0) prompt for hours input hours end while return hours prototype functions declare vars itemNum getitemNumbero category - getCategory0 hoursWorked- getHoursWorkedo silverWeight-getSlverWeight0 goldWeight- getGoldWeight0 gemPrice- getGemPrice0 calcPrices(hoursWorked, silverWeight, goldWeight, gemPrice, whole SalePrice retailPrice) displayltAl(itemNumber, category, hoursWorked, silverWeight, goldweight gemPrice, wholeSalePrice, retailPrice) end main /this is an example of one of the functions foat hours prompt for hours input hours while(hours0) prompt for hours input hours end while return hours
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
