Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
Question
Book Icon
Chapter 10, Problem 5E

(a)

Program Plan Intro

Program Plan: 

  • IDNumber, Make, Year, Price, autoId, autoMake, autoYear, autoPriceand temp2 variables are used in the program.
  • ToString (),TryParse (), Any (), Add (), Sum (), Sort (),CompareTo (),andJoin () methods are used in the program.

Program Description: The main purpose of the program is to prompt the user to enter the data for the eight Automobile class objects. Create an Automobile class with the auto-implemented properties for the instance variable named IDNumber, make, year, and price. Return all the data of the Automobile class using the ToString () method. Sort the objects of the Automobile class in the IDNumber order.

(b)

Program Plan Intro

Program Plan: 

  • IDNumber, Make, Year, Price, autoId, auto Make, auto Year, auto Price, Financed Amount, Interest Rate, autoFinAm,and auto IR variables are used in the program.
  • ToString (),TryParse (), Any (), Add (), Sum (), Sort (),CompareTo (),andJoin() methods are used in the program.

Program Description: The main purpose of the program is to drive a new class named Financed Automobile from the base class named AutoMobile. Incude two extra instance variable in the Financed Automobile class to store the financed amount and interest rate of an Automobile. Create the auto-implemented properties for the financed amount and interest rate variable. Override the ToString () method of the AutoMobile class in the Financed Automobile class to display the value of financed amount and interest rate of an Automobile. Prompt the user to enter the details off our Financed Automobile class objects. The financed amount must be less than the price of an Automobile. Return all the data of the Automobile class using the ToString () method. Sort the objects of the Automobile class in the ID Number order.Display the total of the price of all the Automobiles.Display the total of the financed amount of all the Automobiles.

(c)

Program Plan Intro

Program Plan: 

  • IDNumber, Make, Year, Price, autoId, autoMake, autoYear, autoPrice, FinancedAmount, InterestRate, autoFinAm,andautoIRvariables are used in the program.
  • ToString (),TryParse (), Any (), Add (), Sum (), Sort (),CompareTo (),Join (), andstring.Format()methods are used in the program.

Program Description:The main purpose of the program is to use an extension method for the class named FinancedAutomobile. This method is used to compute and return the monthly due payment of a FinancedAutomobile. Prompt the user to enter the details of four FinancedAutomobile class objects. Display all the data of all four objects.

Blurred answer
Students have asked these similar questions
Design a class named BaseBallGame that has the fields for two names and a final score for each team. Include methods to set and get the values for each data field. Create the class diagram and write the pseudocode that defines the class. Design an application (submit pseudocode) that declares three BaseBallGame objects and sets and displays their values. Design an application (submit pseudocode) that declares an array of 12 BaseBallGame objects. Prompt the user for data for each object, and display all the values. Then pass each object to a method that displays the name of the winning team or "Tie" if the score is a tie.
This is the question I am stuck on - Radio station KJAVA wants a class to keep track of recordings it plays. Create a class named Recording that contains fields to hold methods for setting and getting a Recording’s title, artist, and playing time in seconds. Write an application that instantiates five Recording objects and prompts the user for values for the data fields. Then prompt the user to enter which field the Recordings should be sorted by—(S)ong title, (A)rtist, or playing (T)ime. Perform the requested sort procedure, and display the Recording objects. This is what I have so far - public class Recording {     private String song;     private String artist;     private int playTime;     public void setSong(String title) {         this.song = title;     }     public void setArtist(String name) {         this.artist = name;     }     public void setPlayTime(int time) {         this.playTime = time;     }     public String getSong() {         return song;     }     public String…
create a program called automobile loan this program stores a loan number, make and model of automobiles, and the loan balance. include the methods to set values for each data field and a methods that display all the loan information create two automobileloan objects and sets and display their values. create another two automobileloan objects and ask the user for the values, then display those values. you should have four objects in total created.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage