subject
Computers and Technology, 02.08.2021 20:10 memeE15

We are in the midst of designing the Cat class. We have already created a class diagram and written most of the pseudocode for the Cat class, which contains attributes for the name of the cat and the gender of the cat, as shown below. +Cat -name: String -gender: Character +Cat() +getName(): String +setName(new Name: String) +getGender(): Character +setGender(newGender: Character) +inputCatData(Ref catFile: InputFile)
Class Cat
Private String name
Private Character gender
Public Module Cat()
Set name = " "
Set gender = ' '
End Module
Public Module setName(String newName)
Set name = newName
End Module
Public Function String getName()
Return name
End Function
Public Module setGender (Character newGender)
If newGender == 'F' OR newGender == 'M' Then
Set gender = newGender
Else
Display "Error: only M or F is allowed for gender, not: ", newGender
Set gender = ' '
End If
End Module
Public Function Character getGender()
Return gender
End Function
Public Module inputCatData(InputFile Ref catFile)
Write this statement
End Module
End Class
Type the exact text for the line of the pseudocode to replace Write this statement, which is the statement that inputs the data for a Cat object from the catFile. The file contains, on each line, the name of the cat, then the gender of the cat.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Read the following scenario, and then answer the question below. you want to send an e-mail to your boss requesting a meeting to discuss a raise. what is the best example of an e-mail to an employer about this meeting? “hey jason. can we chat about getting me more money soon? let me know. peace, meg.” “hello jason. pardon me for sending yet another e-mail today about my need to talk to you about my position and a possible pay increase. i am dying to know when you can talk. sincerely, meg.” “hello jason. i have been with the company for one year and have taken on more responsibilities than outlined in my job description. i would appreciate an opportunity to speak with you about my position. let me know when we can schedule a meeting. you, meg.” “greetings jason! i hope this e-mail finds you well and happy today. i really, really want to talk to you about something important. i am not sure if you have time. i hope you do. get back in touch with me and let me know when we might talk. ever so much for taking the time to read this. sincerely, meg.”
Answers: 3
question
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
You know the right answer?
We are in the midst of designing the Cat class. We have already created a class diagram and written...
Questions
question
Mathematics, 05.09.2019 16:20