Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

E Programming (28 points in total) 1. Write a function getString (n) to return a string composed of n uppercase or lowercase letters (6 points)

E Programming (28 points in total) 1. Write a function getString (n) to return a string composed of n uppercase or lowercase letters (6 points) 2. Write a function distinctSort(list) to remove the duplicate elements of an array list, and then make it descending order. For example, the array [0,4,2,3,4,4,0,2] is distinct to become [0,4,2,3] and [4,3,2,0] after sorting (6 points) 3. The prototype inheritance schema and the class inheritance schema are used to implement them respectively: Zombie (zombie) and GiantZombie (giant zombie), in which Zombie has attackPower (attack power), HP (vitality), type (type, such as giant zombie or roadblock zombie) attributes, and toString (return the string composed of attackPower, HP, type and other attributes of the zombie), attack (do not know how to attack, empty method) methods, GiantZombie has axe Weight attribute, throw LittleGhost, toString, attack methods. (16 points)
image text in transcribed
Programming ( 28 points in total) 1. Write a function getString (n) to return a string composed of n uppercase or lowercase letters ( 6 points) 2. Write a function distinctSort(list) to remove the duplicate elements of an array list, and then make it descending order. For example, the array [0,4,2,3,4,4,0,2] is distinct to become [0,4,2,3] and [4,3,2,0] after sorting ( 6 points) 3. The prototype inheritance schema and the class inheritance schema are used to implement them respectively: Zombie (zombie) and GiantZombie (giant zombie), in which Zombie has attackPower (attack power), HP (vitality), type (type, such as giant zombie or roadblock zombie) attributes, and toString (return the string composed of attackPower, HP, type and other attributes of the zombie), attack (do not know how to attack, empty method) methods, GiantZombie has axeWeight attribute, throwLittle Ghost, toString, attack methods. (16 points)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

Appraise the concept and types of franchising.

Answered: 1 week ago

Question

mple 10. Determine d dx S 0 t dt.

Answered: 1 week ago