Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

I have a question in c++, beginner level, visual studio

Customer Question
I have a question...

I have a question in c++, beginner level

Tutor's Assistant: What programs and versions are you using?

Visual studio 2017

Tutor's Assistant: What is your ideal outcome? How can we solve this for you?

I am working on a project and I am completely stuck and need some guidance on what I am doing wrong

Submitted: 11 months ago.Category: Homework
Show More
Show Less
Ask Your Own Homework Question
Customer reply replied 11 months ago
include file for Caesar cipher code
//#ifndef CAESAR_H
#define CAESAR_H#include <string>class Caesar {private:
//pointers used to refer to the standard alphabet array and the Caesar shift array
char* std_alphabet;
char* c_alphabet;public:
// The constructor . . .
// create the two arrays with the c_alphabet array contents representing the std_alphabet
// characters shifted by a value of the shift parameter
Caesar(int shift = 0);// encrypt a message. Returns count of characters processed
// first string is message, second is encrypted string
int encrypt(const std::string& message, std::string& emessage);// decrypt a message. Returns count of characters processed
// first string is encrypted string, second is decrypted string
int decrypt(const std::string& message, std::string& dmessage);//delete any memory resources used by the class
~Caesar();}; // end of class . . .
#endif
Customer reply replied 11 months ago
ifndef CAESAR_C
#define CAESAR_C#include <string>
#include <iostream>
#include "Caesar.h"using namespace std;int shift, i, k;
char letter = 'a';Caesar::Caesar(const int n) {shift = n;
std_alphabet[26];
c_alphabet[26];
for (i = 0; i < 26; i++) {std_alphabet[i] = letter;
letter++;
}for (i = 0; i < 26; i++) {cout << std_alphabet[i] << " ";
}cout << endl;for (i = 0; i < 26; i++) {k = (i + 5) % 26;
c_alphabet[i] = std_alphabet[k];
}for (i = 0; i < 26; i++) {cout << c_alphabet[i] << " ";
}};
#endif
Customer reply replied 11 months ago
include <string>
#include <iostream>
#include "Caesar.h"int main() {Caesar test(5);cout << test;system("PAUSE");
return 0;
};
Customer reply replied 11 months ago
The first code is the Header file provided by our instructor, we are not allowed to make any changes to that file at all. The next is my .cpp file and the third is my test file. This is as far as I have gotten on the project and I am not exactly sure how to implement the header file properly.
Customer reply replied 11 months ago
I am not exactly sure how to create an array using the pointer in the header file and I am not sure how to create the Caesar object in the test file. Please help.
Answered in 2 hours by:
9/7/2017
Tutor: LogicPro, Engineer replied 11 months ago
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,507
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified
Hi
Ask Your Own Homework Question
Tutor: LogicPro, Engineer replied 11 months ago

Let me know if you still need help. I am still waiting for your response

Ask Your Own Homework Question
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a tutorLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask Scott Your Own Question
Scott
Scott
Scott, MIT Graduate
Category: Homework
Satisfied Customers: 3,040
3,040 Satisfied Customers
Experience: MIT Graduate (Math, Programming, Science, and Music)

Scott is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

13,507 satisfied customers

Expert in Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,556 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,699 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

F. Naz

Chartered Accountant

2,194 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
I need help writing this progra, Write a C++ program that
I need help writing this progra, Write a C++ program that processes records of items purchased. Assume the items are being purchased by one person.Create a class definition for item records with the f… read more
LogicPro
LogicPro
Engineer
13,507 satisfied customers
I am looking to write a function to take in encrypted text
I am looking to write a function to take in encrypted text decrypt it and print out the text. Download link encrypted file: http://wikisend.com/download/4… Download link unencrypted file (what file sh… read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
Hello, Im in Computer Programing I: Intro to C++ at my
Hello, I'm in Computer Programing I: Intro to C++ at my college and I need to write a program that will allow the user to enter a string that will be encrypted using the ROT-N encryption method. I'm h… read more
LogicPro
LogicPro
Engineer
13,507 satisfied customers
Hey i am a c++ student and I am stuck trying to subclass a
Hey i am a c++ student and I am stuck trying to subclass a dog and a cat as children of the parent class Pet. I am having lots of trouble with it and was wondering if i could get the issues cleared up… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
I need help creating a translation dictionary using linked
I need help creating a translation dictionary using linked lists here is what i have struct wordPair { char* englishWord; char* foreignWord; }; struct dictionary { struct wordPair ** data; int nbwords… read more
Wes
Wes
Owner/Consultant
Bachelor\u0027s Degree
377 satisfied customers
1) Fig 7.10 page 278 shows a program simulating rolling 6,000,000
1) Fig 7.10 page 278 shows a program simulating rolling 6,000,000 times a 6-sided die. Write a program that does the same thing with adding up 4 6-sided dice first (totals are between 4 and 24), and t… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
"For LogicPro only" There is two different file.cpp i want
"For LogicPro only" There is two different file.cpp i want you to write for me // first part #ifndef LISTLINKED_CPP #define LISTLINKED_CPP using namespace std; #include // For showStructure #include "… read more
LogicPro
LogicPro
Engineer
13,507 satisfied customers
Your job is to change the program so that it no longer uses
Your job is to change the program so that it no longer uses indexes anywhere within the executable code but instead uses pointers into the array. Hint: This will be easy to think about if you change a… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
Your employer has determined a market for a simple airline
"Your employer has determined a market for a simple airline ticketing system for a very simple airline (Tree Top Airways - TTA). The airline only has two aircraft, named ALFA and BRAVO. Initially, the… read more
Jane T(LLC)
Jane T(LLC)
Master's Degree
18 satisfied customers
Read characters into a char Array until the character p is
Read characters into a char Array until the character 'p' is encountered, up to a limit of 10 characters (including the terminating null character). Extract the delimiter 'p' from the input stream and… read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
Part 1: Write a program called Checkinput, that asks the
Part 1: Write a program called Checkinput, that asks the user to input a value that represents weeks. Calculate and display the number of days in those weeks. Ask the user if he/she wants to input ano… read more
LogicPro
LogicPro
Engineer
13,507 satisfied customers
FOR LOGICPRO ONLY Deadline: I need these by 3/14/2013 please.
FOR LOGICPRO ONLY Deadline: I need these by 3/14/2013 please. Thank you - Inheritance - Shape hierarchy For this assignment 5, please include run time outputs in a .txt file and add it to the Zip. Nec… read more
LogicPro
LogicPro
Engineer
13,507 satisfied customers
Assignment 5 - Inheritance - Shape hierarchy For this assignment
Assignment 5 - Inheritance - Shape hierarchy For this assignment 5, please include run time outputs in a .txt file and add it to the Zip. Necessary skills: Class inheritance, Member function overridin… read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
For LogicPro only. Assignment 3 - simple String Class ________________________________
For LogicPro only. Assignment 3 - simple String Class ________________________________________ Necessary skills: class design, abstraction/encapsulation, constructors, destructor, heap memory manageme… read more
LogicPro
LogicPro
Engineer
13,507 satisfied customers
Assignment 1- Date class ________________________________________ Necessary
Assignment 1- Date class ________________________________________ Necessary skills: Basic class design, constructors and member functions, basic iostream output formatting Description In this assignme… read more
LogicPro
LogicPro
Engineer
13,507 satisfied customers
Note that an ordinary telephone book is not suited for retrieval
Note that an ordinary telephone book is not suited for retrieval of a name for a particular number, at least not by a human user. However, a computer can compare numbers as easily and as quickly as na… read more
LogicPro
LogicPro
Engineer
13,507 satisfied customers
Hi Scott, Sorry to bother you again but I have another
Hi Scott, Sorry to bother you again but I have another JAVA program to get solved and was wondering if you could be of any assistance. If you have time I would like to forward it to you again.... Let … read more
Scott
Scott
MIT Graduate
Master's Degree
3,040 satisfied customers
Have a JAVA program that needs to be developed that simply ...
Have a JAVA program that needs to be developed that simply encrypts then decrypts a message.… read more
Chris Parker
Chris Parker
Senior Associate (Software Engineer)
Master's Degree
76 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x