Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Mark Daniels is a carpenter who creates personalized house signs. He wants an ap

ID: 3527498 • Letter: M

Question

Mark Daniels is a carpenter who creates personalized house signs. He wants an application to compute the price of any sign a customer orders, based on the following factors: The minimum charge for all signs is $30 If the sign is made of oak, add $15. No charge is added for pine. The first six letters or numbers are included in the minimum charge; there is a $3.00 charge for each additional character. Black or white characters are included in the minimum charge; there is an additional $12 charge for gold-leaf lettering Design pseudocode for the following: a. a program that accepts data for an order number, customer name, wood type, number of characters and color of characters. Display all the entered data and the final price for the sign. b. a program that continuously accepts sign order data and displays all the relevant information for oak signs with five white letters. c. a program that contioiusly accepts sign order data and displays all of the relevant information for pine signs with gold-leaf lettering and more that 10 characters. This is what I have so far: a. accept order number accept customer name accept wood type accept number of character and color of characters minimum charge for all signs = $30 if the sign is made of oak + $15 no charge for pine minimum charge for the first six letters and $3 for additional character included in minimum charge (Black and white characters) + $12 for gold-leaf lettering

Explanation / Answer

Let us assume that wood_type is OAK or PINE,gold leafed lettering is represented by characters whose color is GOLD. and it is assumed that 12$ are taken for any number of gold lettering characters(of course $3 will be applicable if count exceed 6). A. Input : order_num,cust_name,wood_type,num_chars,char_colors[num_chars] Pseudocode : final_price = 30 if ( wood_type == OAK ) final_price = final_price + 15 if ( num_chars > 6) final_price = final_price + 3*(num_chars - 6) for i in char_colors { if ( char_colors[i] == GOLD){ final_price = final_price + 12 break; } } print final_price. B. in this case in an infinite while loop ask user to input the data when user does not enter any data of some specific input to exit,exit from loop. use pseudocode A to computer the final price. the pseudocode can be written as : while ( true){ if input is empty break else { get cust_name, set wood_type = OAK. num_chars = 5 . generate order_num ( use counter to keep track order id since we are using white characters initialize char_colors to WHITE call procedure A with parameters cust_name,order_num,wood_type,num_chars and char_colors. output final value and other relevant things. } } C. in this case in an infinite while loop ask user to input the data when user does not enter any data of some specific input to exit,exit from loop. use pseudocode A to computer the final price. the pseudocode can be written as : while ( true){ if input is empty break else { get cust_name, set wood_type = PINE. get number of characters in num_chars. generate order_num ( use counter to keep track order id since we are using gold lettering initialize char_colors to GOLD call procedure A with parameters cust_name,order_num,wood_type,num_chars and char_colors. output final value and other relevant things. } }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote