Answered step by step
Verified Expert Solution
Link Copied!

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 pre-written C++ 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 $35.00.
The first five letters or numbers are included in the minimum charge; there is a $4 charge for each additional character.
If the sign is made of oak, add $20.00. No charge is added for pine.
Black or white characters are included in the minimum charge; there is an additional $15 charge for gold-leaf lettering.
Instructions
Task 1: You need to declare variables for the following, and initialize them where specified:
A variable (charge) for the cost of the sign initialized to 0.00.
A variable (numchars) for the number of characters initialized to 8.
A variable (color) for the color of the characters initialized to "gold".
A variable (woodType) for the wood type initialized to "oak".
Task 2 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 $82
Your current grade is: 0.00%
HouseSign.cpp 1
HouseSign.cpp >...
// HouseSign.Cpp - This program calculates prices for custom made signs.
#include
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions