Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am having trouble with this problem. When you answer, write the answer into the code. Nothing can be erased in it . How to
I am having trouble with this problem. When you answer, write the answer into the code. Nothing can be erased in it
How to Use the Code Editor
Select the "Run Code" button to execute the program.
Select the "Calculate Grade" button to generate a score based on the completed tasks.
Continue to modify, run, and calculate your code until you are happy with the grade.
Select the "Submit" button to turn in the assignment to your instructor.
Your Tasks
In this lab, you complete a prewritten program for a carpenter who creates personalized house signs. The program is supposed to compute the price of any sign a customer orders, based on the following facts:
The charge for all signs is a minimum of $
The first five letters or numbers are included in the minimum charge; there is a $ charge for each additional character.
If the sign is made of oak, add $ No charge is added for pine.
Black or white characters are included in the minimum charge; there is an additional $ charge for goldleaf lettering.
Instructions
Task : You need to declare variables for the following, and initialize them where specified:
A variable charge for the cost of the sign initialized to
A variable numchars for the number of characters initialized to
A variable color for the color of the characters initialized to "gold".
A variable woodType for the wood type initialized to "oak".
Task Write the rest of the program using assignment statements and if statements as appropriate. The output statements are written for you.
An example of the program is shown below:
The charge for this sign is $
Your current grade is:
HouseSign.cpp
HouseSign.cpp
HouseSign.Cpp This program calculates prices for custom made signs.
#include
Step 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