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 inside the code can be erased. How to

I am having trouble with this problem. When you answer, write the answer into the code. Nothing inside the code can be erased.
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

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

10-7 How will MIS help my career?

Answered: 1 week ago

Question

1. How does Kiwi Experience maintain a continual customer focus?

Answered: 1 week ago