

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Exam; Professor: Wei; Class: Intro Computer Programming; Subject: Computer Science; University: Saint Joseph's University; Term: Unknown 1989;
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!
Write a recursive method to print a string backwards. Write an iterative method to print a string backwards. Write a recursive method to compute the factorial of a number. Write an iterative method to compute the factorial of a number. Draw an inheritance hierarchy to represent a shoe object. The base class should have derived classes of Dress Shoes, Tennis Shoes and Boots. Implement the base class in the shoe hierarchy in number 5 above. public class Shoe { private String color; private String designer; private double size; Derive a class named Dress Shoes from the base class created in number 6 above public class DressShoe extends Shoe { private String type; //valid types include pumps, heels and flats Derive a class named Tennis Shoes from the base class created in number 6 above. public class TennisShoe extends Shoe { private String soleType; private String canvasType;