Module 3 Assignment 1 Instructions Upon completion of readin
Module 3 Assignment #1 Instructions
Upon completion of reading the chapters for this module, students will write pseudocode to represent the logic of the given situation below.
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:
Write the pseudocode for a program that accepts data for an order number, customer name, wood type, number of characters, and color of characters. Display all of the entered data, a breakdown of the charges, and the final price for the sign.
Solution
const int min_charge=$30;
int total,x, y
enum wood_Type{pine,oak,maple}
Accept customer_Name,order_Id,wood_Type,numofchars and color as input
Print all the Data mentioned above respectively
Compute the charges using the logic below
Switch(wood_Type)
If case matches pine
total=min_charges
Else If case matches oak
total=min_charge+15
Else if case matches maple
total = min_chargess+20
Again switch between the number of characters
if numofchar>=7 && numofchar <=10
then x=( numofchar -6)
total=total +(x*3)
Else if numofchar > 10
then x=(numofchar-10)
y=total+12;//for characters 6 to 10 each costs 3$ so 4 * 3 = 12
total=y +( x*4)
if color not black and not white
then total= total +12
Display total
