subject
Computers and Technology, 21.11.2019 00:31 cld3331

Create a base class called vehicle that has the manufacturer's name ( type string ), number of cylinders in the engine (type int), and ower (type person given below). then create a class called truck that is derived from vehicle and has additional properties: the load capacity in tons (type double, since it may contain a frational part) and towing capacity in tons (type double) . give your classes a reasonable complement of contructors and accessor methods, and an equals method as well. write a driver program that tests all your methods. person classpublic class person{string name; public person( ){name = "no name yet"; }public person(string initialname){name = initialname; }public void setname(string newname){name = newname; }public string getname( ){return name; }public void writeoutput( ){system. out. println("name: " + name); }public boolean hassamename(person otherperson){return this. name. equalsignorecase(otherperson. name); }}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
question
Computers and Technology, 23.06.2019 21:10
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
Answers: 2
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
5.a fishing rod is formed from a composite material of 0.5 kg of glass fibers embedded in a matrix of 0.5 kg of epoxy resin. the glass fibers are assumed to be long, continuous and unidirectional. to achieve a greater stiffness it is proposed to use a different composite that is comprised of long continuous carbon fibers that will be embedded in a matrix of 0.5 kg of epoxy resin. if the modulus of elasticity of the carbon fiber composite is 10% greater than the elastic modulus of the glass fiber composite, estimate the mass of carbon fibers that will be used to make the carbon fiber composite. assume the applied tensile stress is parallel to the direction of the long axis of the fibers. the epoxy resin, glass fiber, and carbon fiber have an elastic modulus of 5, 86, and 350 gpa respectively and a density of 1100, 2500, and 1800 respectively.
Answers: 3
You know the right answer?
Create a base class called vehicle that has the manufacturer's name ( type string ), number of cylin...
Questions
question
History, 15.10.2019 18:30
question
History, 15.10.2019 18:30
Questions on the website: 13722362