Ship, CruiseShip, and CargoShip ClassesDesign a Ship class that has the following members:a. a member variable for the name of the ship (a string)b. a member variable for the year that the ship was built (a string)c. A constructor and appropriate accessors and mutatorsd. A virtual print function that displays the ship's name and the year it was built.

Answers

Answer 1

Answer:

def shipvari(ship);

Cruiseship="" #defining a string

YearBuilt= ""

for i in range(ship);

if Cruiseship="";

print(CruiseShip)

Give the rest a try!


Related Questions

You are suddenly given a very large (1000 ) number of old desktop computers with old CRT monitors. What could you do with them

Answers

Answer:

I would fix them if they were broken, make good use of them and give them out to other people as marketing or sell them.

Explanation:

Write a C Program to Print the initial letter of Name Ferdous

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The question is about writing a C program that prints the initial letter of Name Ferdous.

Therefore, below is the given complete code that prints the first letter of the name Ferdous.

#include <stdio.h> /*import strandard input/output library*/

#include<string.h> /*import string library to handle string type of data*/

int main(void) /*started the program execution- program entry point*/

{

char *str = "Firdous";   /*char to pointer str contains string "Firdous"*/

int len = strlen(str);   /*this line of code is not neccary, but if you print other character for example last character of the name then you can use it*/

printf("First Letter of the name is: %c", str[0]);  /*print first letter of the name*/

}  /**program terminated*/

What are the similarities and differences between the editor-in-chief, managing editor, assignment editor, and copyeditor? Your response should be at least 150 words.

Answers

Answer:

Editor. An editor is the individual in charge of a single publication. It is their responsibility to make sure that the publication performs to the best of its ability and in the context of competition. A managing editor performs a similar role, but with greater responsibility for the business of the publication.

Explanation:

Cell address $A$4 in a formula means it is a ___________. *



A. All of the above

B. Mixed cell reference

C. Relative cell reference

D.Absolute cell reference​

Answers

Answer:

The answer to this question is given below in the explanation section

Explanation:

Cell address $A$4 in a formula means it is an Absolute Cell Reference.

Absolute cell reference does not change when you copy the formula to other cells. when the $ symbol added in the front of the column and row, makes it absolute. It stops the row and column numbers from changing when you copy to other cells. The given $A$4 cell address contains the value in column A and row 4. It does not change the value when you copy the formula that has mentioned ($A$4) into other cells. For example, if you have value 10 at row 4 and column A. Then you multiple column B with A4 cell value and you want that A4 value will not change while copying formula from C1 to C10. You can use in column C1 as =B1*$A$4. Then you copy the formula to cell 10. The value of $A$4 will not change.

while the other options are not correct because:

In the relative cell reference values get changed in the formula, while in the mixed cell reference you can either locked the row or column while the row or column changes when the formula is copied respectively.

Write a program that reads a string from the user containing a date in the form mm/dd/yyyy. If the user entered 12/10/2019, then it should print the date in the form December 10, 2019. solution in python.

Answers

Answer:

months = ["January","February","March","April","May","June","July","August","September","October","November","December"]

date = input("mm/dd/yyyy: ")

splitdate = date.split("/")

print(months[int(splitdate[0])-1]+" "+splitdate[1]+", "+splitdate[2]+".")

Explanation:

This line initializes a list of all 12 months

months = ["January","February","March","April","May","June","July","August","September","October","November","December"]

This prompts the user for date

date = input("mm/dd/yyyy: ")

This splits the date into three parts; mm with index 0, dd with index 1 and yy with index 2

splitdate = date.split("/")

The following prints the required output

print(months[int(splitdate[0])-1]+" "+splitdate[1]+", "+splitdate[2]+".")

Analyzing the print statment

splitdate[1] represents the day of the date

splitdate[2] represente the month of the date

However, in months[int(splitdate[0])-1]

First: splitdate[0] represents the month of the year as a string in numeric form e.g. "12", "01"

It is first converted to an integer as: int(splitdate[0])

Then the corresponding month is derived from the month list

I've got the answer, I just need someone to explain it, please!

Answers

the reason this answer is 80 seconds is because if you add y(30 sec) + z(50 sec) = 80 seconds which would be the two processors

What is the last usable host IP address on the 192.168.32.9/30 network?

Answers

Answer:

192.168.32.10

Explanation:

HOPE THIS HELPS:)

The ________ function deletes all elements of the list.

Answers

Answer:

clear

clear() :- This function is used to erase all the elements of list.

Explanation:

The clear function deletes all elements of the list. The clear method removes all the elements from a list.

What is a function?

Simply said, a function is a “chunk” of code that you may reuse repeatedly rather than having to write it out several times. Programmers can divide an issue into smaller, more manageable parts, each of which can carry out a specific task, using functions.

A list's whole contents are cleared via the clear() method. It returns an empty list after removing everything from the list. No parameters are required, and if the list is empty, no exception is raised. The clear function is present in all languages of computers but has different codes and functions.

Therefore, the list's whole contents are removed by the clear function. All of the elements in a list are removed by the clear method.

To learn more about the function, refer to the link:

https://brainly.com/question/17001323

#SPJ2

Given positive integer num_insects, write a while loop that prints that number doubled up to, but without exceeding 100. Follow each number with a space.
Sample output with input: 8
8 16 32 64
Here's what I havenum_insects = 8 # Must be >= 1print(num_insects, '', end='')while num_insects <= 100 : num_insects = num_insects * 2 print(num_insects,'', end="")This code prints the number 128 even thought the loop is set to end after 100? Why is that?

Answers

Answer:

The while loop is executed one more time when num_insects is 64. It gets doubled and 128 gets printed. Then the while loop is not executed anymore since 128 exceeds 100.

So the reason you see 128 is because the multiplication by 2 happens inside the loop before you print. You enter it with 64, but by the time you get to the print statement, it was already multiplied.

The solution is to switch the print and the multiply:

num_insects = 8 # Must be >= 1

while num_insects <= 100 :

   print(num_insects,'', end="")

   num_insects = num_insects * 2

This has one added advantage that the very first print statement outside the loop can be removed.

I really need help with this question I will give you five stars

Answers

Answer:

A

Explanation:

Which interpersonal skill is the most important for a telecom technician to develop?

active listening

teamwork

conflict resolution

social awareness

Answers

Answer:

active listening is interpersonal

Answer:

active listening

Explanation:

edg2021

telecom technicians go to homes and officies to listen to the consumers demands to fix their internet and other telecommmunication issues. They mostly work alone and simply need to be aware of the issue and what they are doing to fix it.

match the databse function to it's purpose

Answers

Answer:

Explanation:

Which database functions?

1, and
Which line of code could be used for a constructor?
e
O definit (firstName, lastName, id Num):
O definit(self, firstName,lastName,idNum):
O def
_init_(firstName, lastName idNum):
O def
_init__(self, firstName,lastName idNum)

Answers

Answer:

i think (first name last name id Num)

Sam’s password is known to be formed of 3 decimal digits (0-9) in a given order. Karren and Larry are attempting to determine Sam’s password by testing all possible combinations. If they are only able to try 10 combinations every day, how many days would it take to try all the possible combinations? 1000 100 3 73

Answers

Answer:

100

Explanation:

Answer:

The answer is 100, hope this helps!

Explanation:

what are the different alignment options available in Microsoft​

Answers

Answer:

Step 1 − Click anywhere on the paragraph you want to align and click the Align Text Left button available on the Home tab or simply press the Ctrl + L keys.

Left Alignment

Center Aligned Text

A paragraph's text will be said center aligned if it is in the center of the left and right margins. Here is a simple procedure to make a paragraph text center aligned.

Step 1 − Click anywhere on the paragraph you want to align and click the Center button available on the Home tab or simply press the Ctrl + E keys.

Center Alignment

Right-Aligned Text

A paragraph's text is right-aligned when it is aligned evenly along the right margin. Here is a simple procedure to make a paragraph text right-aligned.

Step 1 − Click anywhere on the paragraph you want to align and click the Align Text Right button available on the Home tab or simply press the Ctrl + R keys.

Right Alignment

Justified Text

A paragraph's text is justified when it is aligned evenly along both the left and the right margins. Following is a simple procedure to make a paragraph text justified.

Step 1 − Click anywhere on the paragraph you want to align and click the Justify button available on the Home tab or simply press the Ctrl + J keys.

Justify Alignment

When you click the Justify button, it displays four options, justify, justify low, justify high and justify medium. You need to select only the justify option. The difference between these options is that low justify creates little space between two words, medium creates a more space than low justify and high creates maximum space between two words to justify the text.

Answer:

There are four main alignments: left, right, center, and justified. i think i answered this correct but easier to understand

Given an array of users, write a function, namesAndRoles that returns all of user's names and roles in a string with each value labeled.For example: const users = [ { name: 'Homer', role: 'Clerk', dob: '12/02/1988', admin: false },{ name: 'Lisa', role: 'Staff', dob: '01/30/1965', admin: false },{ name: 'Marge', role: 'Associate', dob: '09/10/1980', admin: true } ] namesAndRoles(users) // Name: Homer // Role: Clerk // Name: Lisa // Role: Staff // Name: Marge // Role: Associatefunction namesAndRoles(users) { return users } namesAndRoles(users)

Answers

Answer:

def namesAndRoles(users):

   for user in users:

       return f"{user[name]}, {user[role]}"

Explanation:

The python program gets the list of dictionaries of the users in a company and returns the user names and their roles. The code is defined as a function and is executed when the function is called.

On a flowchart, what does an oval represent?

a
output

b
process

c
start or stop

d
input

Answers

On a flowchart, start or stop does an oval represent.

The following statement calls a function named half, which returns a value that is half
that of the argument. (Assume the number variable references a float value.) Write
code for the function.
result = half(number)

Answers

Answer:

function half(number) {

     let result = number/2;

     return result;

}

Explanation:

Let G = (V, E) be an undirected graph. Design algorithms for the following (in each
case discuss the complexity of your algorithm):
(a) Assume G contains only one cycle. Direct the edges s.t. for each u, indegree(u) [tex]\leq[/tex] 1.
(b) Determine whether it is possible to direct the edges of G s.t. for each u, indegree(u) [tex]\geq[/tex] 1.
If it is possible, your algorithm should provide a way to do so.
(c) Let S be a subset of edges s.t. every cycle of G has at least one edge in S. Find a
minimum size subset S.

Answers

Answer:

i think its b if not sorry

Explanation:

Edhesive 4.3 code practice question 1

Answers

Answer:

hugs = int(input("How old are you?: "))

hug = 0

while(hug < hugs):

   print("**HUG**")

   hug = hug + 1

Explanation: Enjoy

Answer:

age = int(input("Enter your age: "))

c = age

o = 0

while (o < age):

   print("**HUG**")

   o = o + 1

print("**virtual hug**")

Explanation:

Is there anyone who is very good with Microsoft access? ​

Answers

Answer:

na i can boot people offline

Explanation:

I need help with coding in python!
class CommandLine:

def __init__(self):

self.root = Directory('', None)

self.current_path = self.root


def run(self):

command = input('>>> ')

while command.strip().lower() != 'exit':

split_command = command.split()

if len(split_command):

if split_command[0] == 'ls':

self.current_path.display()

if len(split_command) >= 2:

if split_command[0] == 'cd':

self.change_directory(split_command[1])

elif split_command[0] == 'makedir':

self.current_path.create_directory(split_command[1])

elif split_command[0] == 'fcreate':

self.current_path.create_file(split_command[1])

elif split_command[0] == 'fwrite':

self.current_path.file_write(split_command[1])

elif split_command[0] == 'fread':

self.current_path.file_read(split_command[1])

elif split_command[0] == 'fclose':

self.current_path.close_file(split_command[1])

elif split_command[0] == 'fopen':

self.current_path.open_file(split_command[1])


command = input('>>> ')


def change_directory(self, dir_name):

pass



class Directory:

def __init__(self, name, parent):

pass


def display(self):

pass


def create_file(self, file_name):

pass


def create_directory(self, dir_name):

pass


def file_write(self, file_name):

pass


def file_read(self, file_name):

pass


def close_file(self, file_name):

pass


def open_file(self, file_name):

pass


class File:

pass



if __name__ == '__main__':

cmd_line = CommandLine()

cmd_line.run()
You must keep track of your current directory, and then you must be able to execute the commands listed below.

(The commands are explicitly different from linux so that you don't accidentally execute them in the shell, except for ls and cd which are harmless.)

Command


ls
Lists contents of the directory
cd [dirname]
Change directory up or down one level.
makedir [dirname]
Make a directory
fcreate [filename]
Creates a file, sets it closed.
fwrite [filename]
Write to a file, only if it's open.
fread [filename]
Read a file, even if it's closed.
fclose [filename]
Close a file. Prevents write.
fopen [filename]
Open a file. Reset the contents

Answers

Answer:

B

Explanation:

ANSWER ASAP! Which statements are true? Select 4 options.


A function can have many parameters.


A function can have a numeric parameter.


A function can have only one parameter.


A function can have a string parameter.


A function can have no parameters.


Please answer asap. Thank you.

Answers

Answer:

A,B,D and E are true

Explanation:

In many if not all programming languages, a function can have zero or more parameters of arbitrary type.

i have no idea how to get this answer, but here.

edge 2021

do you agree or disagree with the assertion that edutech transforms teachung and learning ​

Answers

Answer:I agree!

Explanation:

Agree

which data representation system is based on the digits 0-9 and is mostly easily interpreted In real wrold situations​

Answers

Answer:

Hexadecimal  data representation system is based on the digits 0-9 and is mostly easily interpreted In real word situations​ .

Explanation:

Hexadecimal manages sixteen different figures: most often the numbers 0–9 to describe values zero to nine, and (A–F) to describe values ten to fifteen. The modern hexadecimal system was first launched into the domain of computing by IBM in 1963. An older description, with 0-9 and u-z, was practiced in 1956 by the Bendix G-15 computer.

Divide a network 10.10.0.0 with subnet mask 255.255.0.0 into 62 subnets.

10.10.0.0
0000 1010. 0000 1010 . 0000 0000 . 0000 0000

255.255.0.0
1111 1111. 1111 1111 . 0000 0000 . 0000 0000

Required:
a. How many bits do we need to borrow from the host portion?
b. List the lowest and the highest IP address of the first usable subnet.
c. How many usable hosts are there in total before and after subnetting?

Answers

Answer:

A. 6 bits

B. lowest IP address is  10.10.0.1  and the highest IP address is  10.10.3.254

C. total number of usable hosts before subnetting = 65534

total number of usable hosts after subnetting = 65408

Explanation:

The IP address 10.10.0.0 with the subnet mask 255.255.0.0 is a class B address with 16 bits of the network address portion and 16 bits of the host portion.

To subnet the address to use 62 subnets (and to reduce the host IP address wasted) 6 bits are borrowed from the host portion of the address to give 2^6 = 64 subnets with two usable host addresses.

The first network address is 10.10.0.0 and the first usable host address of the subnet is 10.10.0.1 making it the lowest address, while the broadcast address is 10.10.3.255 and the address before it becomes the higher address in the network which is 10.10.3.254

The number of usable host of the network before subnetting is 2^16 -2 = 65534, while after subnetting is (2^(16-6) - 2) x 64 = 65408.

As a sysadmin you will find yourself doing business with a variety of third party vendors which of these are likely to be rented or bought from a vendors

Answers

Answer:

Printing devices

Video, Audio devices

Communication machines

Explanation:

Printing devices - Sysadmin needs this type of devices for print important data and information.

Video, Audio devices - Sysadmin needs this type of devices for better communication and interaction.

Communication(fax) machines - Sysadmin needs this type of devices for written communication and interaction and deals.

Write a function contains_at() that accepts two sequences (e.g., lists, strings, etc), s and q, and an integer p

Answers

Answer:

Following are the method to this question:

def contains_at (s, q, p):#defining a method contains_at that accepts a list string and an integer.  

Explanation:

In the above-given question, some of the data missing, that's why we define this question as follows:

program for the above the given method:

def contains_at (s, q, p):#defining a method contains_at

   return s,q,p #use return keyword to return parameter value

s="data base"#defining string variable

q=[1,2,3,4,5]#defining a list  

p=3#defining integer variable  

print(contains_at(s,q,p))#use print method to call contains_at method

Output:

('data base', [1, 2, 3, 4, 5], 3)

In the above program, a method contains_at  is declared, which accepts a list, string, and an integer value in its parameters, and use the return keyword to return the above parameter value.

In the next step, a parameter variable is declared, which accepts a value, and use a print method to call the method.

Use the {blank} to view your presentation the way an audience will see it.
A. Slide Show Button
B. Play Button
C. Tools Menu
D. View Menu

Answers

I would believe it would be A. Slide Show Button

Answer:

A. Slide Show Button

Explanation:

Write a while loop that prints user_num divided by 2 until user_num is less than 1. The value of user_num changes inside of the loop. Sample output for the given program:

Answers

user_num = 20

while user_num>= 1:

   print(user_num,"divided by 2 =",user_num/2)

   user_num /= 2

I wrote my code in python 3.8. I hope this helps.

Answer:

user_num = int(input())

while user_num>= 1:

  print(user_num/2)

  user_num /= 2

Explanation:

Simplified it

Other Questions
the following box plot shows the number of hours students have spent of math this week. what information can you get from this? a. the median number of hours spent on Math was about 2.9b. the mean number of hours spent on Math was about 3.4c. No students spent less than 2.27 hours on Math d. All students spent between 2.27 and 4.54 hours on math An employee or former employee who exposes wrongdoing within an organization in the hope of stopping it * need definition 4pass Inc. just paid an annual dividend of $1.12. The company follows a dividend policy that raises dividends annually at a rate of 4% (and expects this rate to go forever). The required rate of return is 13%. What is today's stock price? Where and how do hurricanes form? IF you can draw fairly well let me know! i have a few super quick projects i need help with!!!find my users in the comments under this post HELP! ASAP! WILL MARK BRAINLIEST!!A metal atom that loses electrons is called a/an _______. In her report of an investigation, shira states that the height of a bush is 0.65 meters. Nathaniel states that the height of the same bush is 65 centemeters. How do the statements of the two students compare? Jerry permanently moved from Florida to California on January 1, 2019. He received $12,000 pension income during 2019 through a qualified plan from his former Florida employer. What amount of his qualified pension income is taxable by California A volunteer group is planting trees at 6 different parks. They planted 70 trees at each park.How many trees did the group plant in all? NEED HELP ASAP WILL GIVE BRAINLIEST WILL GIVE BRAINLIEST PLEASE HELP Line A goes through (-6. 7) and has a y-intercept of -3. Line B is perpendicular to Line A and goesthrough (-8,3). Write an equation in slope-intercept form for Line B.this is for a study guide(not graded) thanks! What is 6 Fahrenheit in celcious Imagine that you have to write an argumentative essay on whether or not teenagers should be allowed to have their own cell phones. Write a claim for this essay with at least one reason. What type of business is a business owned by a minimum of two and a maximum of fifty shareholders, which limits the liability of owners to the amount invested in shares. Let x = 2. Evaluate the expression.[tex]\frac{x+4}{3x}[/tex] The Bill of Rights became a condition for approval of the constitution O True O False 20 points! What is the solution to the system of equations?6x +2y = 6 7x +3y = 5A. (-3 , 2)B. (-1 , 6)C. (2 , -3)D. (6 , -1) \dfrac{-2}{3} \div 2\dfrac{1}{4} = 32 2 41 Why does oxygen bond with hydrogen to make water?Group of answer choicesA) Because oxygen only has 6 electrons in its outer shell and it wants 8. It binds with 2 hydrogens because each hydrogen atom has 1 electron in its outer shell.B) Because oxygen only has 8 electrons in its outer shell and it can take 4 more. It binds with 2 hydrogen atoms because each hydrogen atom can carry 2 electrons in its outer shell.C) Because oxygen only has 2 electrons in its inner shell and it needs 6 more to make 8. It binds with 6 hydrogens to fill up its shell.D) No answer text provided. Fill in the correct pronoun in the sentence below.She really likes ___house over there.A. thisB. thoseC. thatD. these Steam Workshop Downloader