Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help. instruction starts Page (15-18) on link also just please fill the answers inside the brackets (h10.cpp) for example codeForDigit(int digit) which takes one digit

help. instruction starts Page (15-18) on link also just please fill the answers inside the brackets (h10.cpp) for example

codeForDigit(int digit) which takes one digit and returns the appropriate code for that digit, using the table above. Use ':' for the half-bars and '|' for the full bars

checkDigit(int zip) which calculates the check digit according to the rules shown above. (in the link there is a chart)

barCode(int zip) which returns an entire bar code by breaking the number into individual digits, encoding that digit, and adding it to the string return value. Finally, calculate and encode the check digit, surround the entire code with the frame bars, and return it.

----------------------------

https://drive.google.com/file/d/0B54VYuzeA502cWlpLVlWNmRRVXc/view?usp=sharing

---------------------------------

//h10.cpp starts here

-----------------------------------

/** * @author * @date * @file h10.cpp */ #include #include using namespace std;

string STUDENT = "soctavio"; // Add your Canvas/occ-email ID

#include "h10.h"

// Put your function implementation (definitions) in this file

string codeForDigit(int digit) { }

string checkDigit(int zip) { }

string barCode(int zip) { }

----------------------------------

// h10.h starts here

-----------------------------------

#ifndef FILE_IDENTIFIER #define FILE_IDENTIFIER /** * @file h10.h * @name * @version * @date */

// Put the interface to the bar-code libary here

string codeForDigit(int digit);

string checkDigit(int zip);

string barCode(int zip);

#endif

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

=+ (b) affect the world interest rate?

Answered: 1 week ago