Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pay attention to program requirements c++ last 2 are the output Paragraph Styles The ACME Ethernet Cable Company sells spools of 1000 feet of Cat6

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

pay attention to program requirements c++ last 2 are the output

Paragraph Styles The ACME Ethernet Cable Company sells spools of 1000 feet of Cat6 Ethernet cable for $154.50 each. e company keeps track of the number of spools it has in stock in the file inStock.txt and the number it has on backorder in the file backorder.txt. Each file contains a single integer. Write a modular program, spFunctionsHWspools.cpp, that accepts an order and creates an invoice for the order The program should ask for the following data: The number of spools ordered. Input Validation: Do not accept numbers less than 1 for spools ordered Whether there are special shipping and handling charges If there are special charges, the program should ask for the special charges per spool. Otherwise, shipping and handling is normally $15 per spool Input Validation: Do not accept a number less than 0 for shipping and handling charges. . . State of residence The file state Tax.txt contains a list of states (using a state's two letter abbreviation) to keep track of whether the company must collect taxes or not. If an order ships to a state indicated in the file, the company must collect the amount of tax indicated by the percentage rate in the file. Each line of the file contains a two letter abbreviation for a state followed by a space and then a percentage (including the s sign). An example of what state Tax.txt might contain: . AR 9.38% CA 8.25% ID 6.03% SC 7.22% TX 8.19% State tax is to be applied to product cost only; it should not be applied to shipping and handling charges. If the state abbreviation entered by the user is not in the file, no state tax applies

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

ance 45000 Di 56o,00o sold equipd with octed rvres on

Answered: 1 week ago