Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I wrote this C++ code but it doesn't work can some PLEASE fix it. Thank You. I don't what i did wrong but the output

I wrote this C++ code but it doesn't work can some PLEASE fix it. Thank You. I don't what i did wrong but the output doesn't show properly it is weird symbols. THANK YOU.

MY CODE -------

#include #include using namespace std;

const int ROWSIZE = 10; const int COLSIZE = 5; const int NUMSIZE = 8; int wordcount=0; /** * Taleph - One Number Word Generator */ void combine(char* array,char letters[][COLSIZE], char* buildArr, int index, ofstream& ofile) { if(index==NUMSIZE) { ofile>array[i]; } cout

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

This is what the code was supposed to be written on.

image text in transcribed

image text in transcribed

0 9 Many people find it difficult to memorize phone numbers, so they use the correspondence between digits on develop the seven-letter word "NUMBERS. Businesses frequently attempt to get telephone numbers that are easy for their clients to remember. Ifa TAKEOUT. Each seven-digit phone number corresponds to many separate seven-letter words the owner of a barber shop would be pleased to know that the shop's telephone number, 424-7288 corresponds to "HAIRCUT." A veterinarian with the phone number 738-2273 would be happy to know that the number corresponds to "PETCARE. Write a program that, given a seven-digit number, writes to a file every possible seven-letter word corresponding to that number. There are 2187 (3 to the seventh power) such words. Avoid phone numbers 2

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_2

Step: 3

blur-text-image_3

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

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago