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 06:40
Match the personality traits with their description
Answers: 2
question
Computers and Technology, 23.06.2019 12:50
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
You know the right answer?
Please help design in executable C++ code the following textbook question from Programming the Logic...
Questions
question
Mathematics, 16.12.2020 22:50
question
English, 16.12.2020 22:50
question
Health, 16.12.2020 22:50
question
Mathematics, 16.12.2020 22:50
question
Mathematics, 16.12.2020 22:50
question
Mathematics, 16.12.2020 22:50
Questions on the website: 13722363