Question: C++ Please create the pseudocode, and then code and debug a program to accomplish the following: Princess Jewelry Design (aka, PJD) creates one-of-a-kind sterling silver
C++
Please create the pseudocode, and then code and debug a program to accomplish the following:
Princess 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
(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 an Example of this program running:
https://screencast.com/t/zWzyCPvg8l8
----------------------------
Here's part of the pseudocode so that you can see what I am talking about.
prototype functions
main
declare vars
itemNum = getItemNumber();
category = getCategory();
hoursWorked = getHoursWorked();
silverWeight = getSilverWeight();
goldWeight = getGoldWeight();
gemPrice = getGemPrice();
calcPrices(hoursWorked, silverWeight, goldWeight, gemPrice, wholeSalePrice, retailPrice);
displayItAll(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(hours < 0)
prompt for hours
input hours
end while
returnhours
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
