subject
Computers and Technology, 05.05.2020 06:13 Cxylaa

Please help design in executable C++ code the following textbook question from Programming the Logic Eighth Edition, Joyce Farrell Chapter 10 #3 pg 468 :

Design a class named TermPaper that holds an author's name, the subject of the paper, and an assigned letter grade. Include the methods to set the values for each data field and display the values for each data field. Create the class diagram and using the following the pseudocodes that defines the class.

// Pseudocode PLD Chapter 10 #3 pg. 468
// Start
// Declarations
// TermPaper paper1
// string firstName
// string lastName
// string subject
// character grade
// output "Please enter first name. "
// input firstName
// output "Please enter last name. "
// input lastName
// output "Please enter subject. "
// input subject
// output "Please enter letter grade. "
// input grade
// Set the first name for paper1
// Set the last name for paper1
// Set the subject for paper1
// Set the letter grade for paper1
// output "First Name: ", paper1.getFirstName()
// output "Last Name: ", paper1.getLastName()
// output "Subject: ", paper1.getSubject()
// output "Grade: ", paper1.getGrade()
// Stop
#include

using namespace std;

#ifndef _TermPaper
#define _TermPaper
class TermPaper
{
private:
string fName; // first name
string lName; // last name
string subject; // subject of the paper
char letterGrade; // assigned letter grade

public:
TermPaper( );
void setFName(string fN);
void setLName(string lN);
void setSubject(string sub);
void setLetterGrade(char grade);
string getFName( );
string getLName( );
string getSubject( );
char getLetterGrade( );

};
#endif
#include
#include
#include "Termpaper. h"

using namespace std;

TermPaper::TermPaper( )
{
fName = "";
lName = "";
subject = "";
letterGrade = 'F';
}
void TermPaper::setFName(string fN)
{
fName = fN;
}
void TermPaper::setLName(string lN)
{
lName = lN;
}
void TermPaper::setSubject(string sub)
{
subject = sub;
}
void TermPaper::setLetterGrade(char grade)
{
letterGrade = grade;
}
string TermPaper::getFName( )
{
return fName;
}
string TermPaper::getLName( )
{
return lName;
}
string TermPaper::getSubject( )
{
return subject;
}
char TermPaper::getLetterGrade( )
{
return letterGrade;
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
What is the algorithm for building a binary tree program
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
question
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 24.06.2019 20:00
Which element will you include to present numerical on a slide? a: graph b: text c: flowchart d: shapes
Answers: 1
You know the right answer?
Please help design in executable C++ code the following textbook question from Programming the Logic...
Questions
Questions on the website: 13722359