Answered step by step
Verified Expert Solution
Question
1 Approved Answer
output programming language: C++ Please create the pseudocode, and then code and debug a program to accomplish the following Princess Jewelry Design (aka, PJD) creates
output
programming language: 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 makingit. 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 am Here's an Example of this program running Here's part of the pseudocode so that you can see what I am talking about. prototype functions main declare vars temNum getitemNumberO category getCategory0 hoursWorked getHoursWorked0 silverWeight-getSilverWeight goldWeight-getGoldWeight0 gemPrice-getGemPrice) calcPrices(hoursWorked, silverWeight, goldWeight, gemPrice, wholeSalePrice, retailPrice) displayltAllitemNumber, category, hoursWorked, silverWeight, goldweight, gemPrice, wholeSalePrice, retailPrice) end main float getHoursWorked) Ithis is an example of one of the functions float hours prompt for hours input hours while(hours0) prompt for hours input hours end while retun 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