Create a class named MSUPackage with data fields for course, mode, and insurance package. The mode is a character: F for full time, P for part time. The MSUPackage class contains a setter and getter method that requires arguments for course and mode for each. It has also calculateTuitionFees() method that determines the mode, based on the following Table 1: Full Time 23,4442 Course Part time BCS 43,2211
Q: It is required to develop an application called Library System to maintain information about books…
A: Actually, java is a object oriented programming language it is platform independent.
Q: Design a class called Util.java that have three methods to calculate the average, summation and the…
A: ALGORITHM:- 1. Create class Util and define all the functions as follows. 2. Take input for 3 double…
Q: Create a class called Date that includes three pieces of information as data members-a month(type…
A: Actually, program is an executable software that runs on a computer.
Q: Which syntax among the following shows that a member is private in a class? a) private:…
A: Private member function A function declared within the class non public segment is understood as…
Q: Create a class called Internet for performing internet providers. Use character variables to…
A: The given example program is of Object-Oriented programming type abbreviated as OOP. So the solution…
Q: Create a class called Date that includes three pieces of information as data members-a month(type…
A: date.h: #include <string> using namespace std; class Date{ private: int date; int month; int…
Q: Part 1- Define a class with the following specification: a. Create a class called ConferenceEvent…
A: The program creates a class that consists of three private data members and member methods. The…
Q: members can’t be accessed by public members of the class The private members can be accessed by…
A: Choose the correct option.…
Q: Part 1- Define a class with the following specification: a. Create a class called ConferenceEvent…
A: The program creates a class that consists of three private data members and member methods. The…
Q: Write an application that creates at least five Apartment objects. Then prompt a user to enter a…
A: import java.util.*;class Apartment { int aptNumber; int bedrooms; double baths; double…
Q: he class structure is shown as below But, you. can extend the structure without changing the members…
A: Create a file "aqi.txt" in the current directory with example data given below:…
Q: A teen ager Sport Club offers many sports to the registered members write a java code to keep…
A: To get the solution of the given problem we create all the classes as follows:
Q: Write a program named DemoJobs for Harold’s Home Services. The program should instantiate several…
A: This programs defines a class named DemoJobs that insantiaties an array of three objects. The class…
Q: he question #1 should be read as: hasValidPassword method that checks and return true if the…
A: Actually, given information: o An array of “Degree” object pointers (not objects)o Array’s lengtho…
Q: (a) Use java to create a class named Student that includes data fields for the student ID, name, a…
A: Java is a programming language based on object oriented concepts. Everything in Java is associated…
Q: Create a class called Internet for performing internet providers. Use character variables to…
A: Actually, program is a executable software that runs on a computer.
Q: Create a cdass called Date that includes three pieces of information as data members-a month(type…
A: class Date: Start Declare month, day, year as private integer type constructor Date (int m , int d,…
Q: 1. The Rockford Daily Clarion wants you to design a class named Issue. Fields include the issue…
A: ANSWER:-
Q: Create a class called Internet for performing internet providers. Use character variables to…
A: Actually, program is a executable software that runs on a computer.
Q: This is the question - Create a class named Apartment that holds an apartment number, number of…
A: Program Plan: Define a class called Apartment. The class contains the constructor to set the…
Q: Q7: Listed next is the skeleton for a class named InventoryItem. Each inventory item has a name and…
A: Answer: Program Plan: Create the class InventoryItem that contains a String and int as its instance…
Q: Create a class called Internet for performing internet providers. Use character variables to…
A: The given example program is of Object-Oriented programming type abbreviated as OOP. So the solution…
Q: Company is the base class that holds • Data fields named companyID (of integer type), and…
A: GIVEN Company is the base class that holds• Data fields named companyID (of integer type), and…
Q: Write an enumerated data type that describes types of triangles based on the number of equal sides.…
A: code along with output and code screenshot is given below.
Q: • Write a class to maintain data about a single pizza. It should maintain information about its…
A: #include <iostream>using namespace std; class pizza { private: // Private attribute…
Q: What detail of the Employee class is represented by the following statement? An employee has salary…
A: Question
Q: Create a class named Book that has 2 private variables, the first variable stores the title and the…
A: Java code to create a class Book with getters and setters Language - JAVA Code: //creating class…
Q: Write appropriate mutator methods that store values in these fields and accessor methods that return…
A: Solution - Programming language used - Java All necessary comments are included in program code as…
Q: Create a class called Student that includes a data member that holds a name for each object created…
A: static keyword: The static variable is a non-instance variable of a class. The static variables…
Q: Create a class called Internet for performing internet providers. Use character variables to…
A: Actually, program is a executable software that runs on a computer.
Q: Create a class called Date that includes three pieces of information as data members-a month (type…
A:
Q: a. Create a class called Building that has three private data members: name (String), number of…
A: class Building{ //Building has 3 private members name, flats, roomsPerFlat private String name;…
Q: Create a class named Package with data fields for weight in ounces, shipping method, and shipping…
A: The program is written in java
Q: 2- Use the Fraction Class explained in chapter 7 to answer the following two questions. a- Define a…
A: Java code :- import java.io.*;import java.util.*; class Fraction { int num, den;…
Q: Task 6 Write a class called Triangle with the required constructor and methods to get the following…
A: Given:
Q: a) Create a class called BankAccount which represents a bank account having the following…
A: create a class called BankAccount which represents a bank account having following attributes-…
Q: Create a class called Invoice that a hardware store might use to represent an invoice for an item…
A: Since No Programming Language is specified, we will be answering this question in java.
Q: Create a class called Internet for performing internet providers. Use character variables to…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Question#01. Create a class Mixed to represent a mixed fraction having data members middle, upper,…
A: Swapping two numbers: The swapping or exchanging two numbers with the help of the third variable…
Q: Part 1: Create a class named Supermarket representing an items show in a supermarket sections with…
A: 1) Below is C++ Program to define Supermarket class with data memebers, constructor and methods It…
Q: Q3: Define a class named Car that has the following specifications: Two attributes: plateNumber: to…
A: Use an array to store the Car instances and then check if fine is 500 or not If fines method…
Q: Design two classes named Employee and Timecard to represent employee and timecard data as follows:…
A: Employee.java public class Employee { private int empno; private String last, first; private double…
Q: 1. i. Create a class called FootballTeam, with the following data fields • Match_id • Date_of_match…
A: /******************************************************************************…
Q: Create a class named CarRental that contains field's for: renter's name, zip code,size of car,…
A: Program: //imported Scanner import java.util.Scanner; //imported text class import java.text.*;…
Q: Create a class called Invoice that a hardware store might use to represent an invoice for an item…
A: Java program: //creating class Invoiceclass Invoice { // declaring instance variables String…
Q: INSTRUCTIONS: Write a C++ script/code to do the given problem. Write a class called profileID,…
A: Objective: This program would implement four classes to calculate and display the bonus of an…
Q: A programmer has submitted the following class declaration for approval. This will be part of a…
A: The given program is a java program and that program has some violation, which is listed below with…
Q: Part 1- Define a class with the following specification: a. Create a class called ConferenceEvent…
A: The program creates a class that consists of three private data members and member methods. The…
Q: Create a class called Invoice that a hardware store might use to represent an invoice for an item…
A: //including header sections#include <iostream>#include <string>#include "invoice.h"…
* Java
Step by step
Solved in 6 steps with 8 images
- C# languageCreate a class for “Plane” having functionalities (methods) startengine(), fly() and land(). When ever engine starts it should reset the attribute TTK (Total travel kilometer) to zero and attribute Fuel to 100. On fly() it should add 10 kilometers if the Fuel attribute is greater than zero and decrement Fuel by 20.On land() it should print total distance covered. Write the code providing all necessary details. And then show working object of Plane in main().Design a class named StopWatch. The class contains:■ The private data fields startTime and endTime with get methods.■ A constructor that initializes startTime with the current time.■ A method named start() that resets the startTime to the current time.■ A method named stop() that sets the endTime to the current time.■ A method named getElapsedTime() that returns the elapsed time for thestop watch in milliseconds.Draw the UML diagram for the class, and then implement the class. Write a test program that measures the execution time of adding numbers from 1 to 1,000,000.Static & Not Final Field: Accessed by every object, Changing Non-Static & Final Field: Accessed by object itself, Non-Changing Static & Final: Accessed by every object, Non-Changing Non-Static & Not Final Field: Accessed by object itself, ChangingRead the following situation and decide how the variables should be defined. You have a class named HeartsPlayerA round of Hearts starts with every player having 13 cardsPlayers then choose 3 cards to “trade” with a player (1st you pass left, 2nd you pass right, 3rd you pass across, 4th you keep)Players then strategically play cards in order to have the lowest scoreAt the end of the round, points are cumulatively totaled for each player.If one player’s total is greater than 100, the game ends and the player with the lowest score wins. 1. How should the following data fields be defined (with respect to final and static)?(a) playerPosition (These have values of North, South, East, or West)(b) directionOfPassing(c) totalScore…
- Part 2. fill Method Define a method in simpy named fill. Its purpose is to fill a simpy's values with a specific number of repeating values. The fill method will have two parameters following self: 1. The float value you are filling the values list in with. 2. The int number of values to fill in. The fill method is procedure-like in that it returns None and mutates the object the method is called on. After calling fill, the length of the Simpy object's values should be equal to the second argument given to fill. For example, consider the following usage and expected printed output, given inline, below: twos = Simpy([]) twos.fill(2.0, 3) print("Actual: ", twos, Expected: Simpy([2.0, 2.0, 2.0])") twos.fill(2.0, 5) print("Actual: ", twos, " - Expected: Simpy([2.0, 2.0, 2.0, 2.0, 2.0])") mixed = Simpy([]) mixed.fill(3.0, 3) - Expected: Simpy([3.0, 3.0, 3.0])") print("Actual: ", mixed, mixed.fill(2.0, 2) print("Actual: ", mixed, Expected: Simpy ([2.0, 2.0])") PythonThe college that you attend requires an application that will print out a Course Report. You are required to create an application that will allocate the following course data:COURSE CODE COURSE NAME STUDENT NUMBERS LECTURERDISD Diploma in Software Development 35 Mr JonesDIWD Diploma in Web Development 28 Mrs SmithDIDM Diploma in Data Metrics 39 Mr NtsingaCreate a class named Course_Details that will contain get and set methods for the course name, student numbers and lecturer. In the Course_Details class include a method called Assign Venue that will randomly generate a Venue/Class for the course. Venues can be from 1 to 3 only. Your main class must include a static method to handle the printing of the course report.In Javascript, Pet Class: Design a class named Pet, which should have the following fields and methods: name: The name of a pet type: The type of animal the pet is ("Dog", "Cat", "Lizard", etc.) age: The age of the pet. setName: The setter for the name field. getName: The getter for the name field. setType: The setter for the type field. getType: The getter for the type field. setAge: The setter for the age field. getAge: The getter for the age field. Once you have designed the class, create an instance of the class and use the setter and getter methods to store data in the object and display the data.
- For your homework assignment, build a simple application for use by a local retail store. Your program should have the following classes: Item: Represents an item a customer might buy at the store. It should have two attributes: a String for the item description and a float for the price. This class should also override the __str__ method in a nicely formatted way. Customer: Represents a customer at the store. It should have three attributes: a String for the customer's name, a Boolean for the customer's preferred status, and a list of 5 indexes to hold Item objects. Include the following methods: make_purchase: accepts a String and a double as parameters to represent the name and price of an item this customer is purchasing. Create a new Item object with this info and append it to the internal list. If the customer is a preferred customer based on the Boolean attribute's value, take 10% off the total sale price. __str__: Override this method to print the customer's name and every…A(n)_ is a special kind of class that never uses any non-virtual methods. Please provide your comment in the spaces provided.in C# i need to Write a FractionDemo program that instantiates several Fraction objects and demonstrates that their methods work correctly. Create a Fraction class with the following fields, all of type int: wholeNum - Holds a whole number numerator - The numerator denominator - The denominator In addition: Create properties for each field. The set accessor for the denominator should not allow a 0 value; the value defaults to 1. Add three constructors. One takes three parameters for a whole number, numerator, and denominator. Another accepts two parameters for the numerator and denominator; when this constructor is used, the whole number value is 0. The last constructor is parameterless; it sets the whole number and numerator to 0 and the denominator to 1. (After construction, Fractions do not have to be reduced to proper form. For example, even though 3/9 could be reduced to 1/3, your constructors do not have to perform this task.) Add a Reduce() method that reduces a Fraction if…
- Create a new C# Console App project for this question. The purpose of the app is to find the currency (or currencies) that a transaction can take place in, based on the country of residence of the buyer of a product. You only need to create the aspects of the app as specified below, not a complete application. Create a class that will store the following property of a buyer: Country of originWrite a method in the class that returns a list of currencies that the buyer can choose from. The currencies are determined as follows: Buyers from everywhere in the world (except Antarctica – the companydoesn’t ship there) can choose to pay in US dollars. Only buyers from South Africa can choose to pay in South African Rands. Only buyers from Canada can choose to pay in Canadian dollars. Only buyers from Botswana can choose to pay in Botswana pula. Buyers from Switzerland have the options to choose between Swiss francand Euro.Create a program called staffSalary using GUI Java and add a class named Staff that will determine the monthly payment amount of and return a specific staff description. The staff are getting paid differently base on the rate and numbers of hours worked. The staff also have different description based on the job. The staff class has 4 fields: staff description, staff number, rate, hours worked. Write get and set methods for each field. The set methods must prompt the user to enter the values for the following fields: staff descrption, staff number, rate and hours (Use JOptionPane for Input). No staff will work more than 200 hours per month and no staff will be paid more than 500 per hour. This class also needs a method to calculate the monthlyPayment () and staffDescription () since staff are getting paid differently and have different job description the methods should be declared abstract. Add the following subclass staffInfos. The subclass override monthlyPayment () and…Create an automobile class that will be used by a dealership as a vehicle inventory program. The following attributes should be present in your automobile class: private string make private string model private string color private int year private int mileage Your program should have appropriate methods such as: default constructor parameterized constructor add a new vehicle method list vehicle information (return string array) remove a vehicle method update vehicle attributes method. All methods should include try..catch constructs. Except as noted all methods should return a success or failure message (failure message defined in "catch"). Create an additional class to call your automobile class (e.g., Main or AutomobileInventory). Include a try..catch construct and print it to the console. Call automobile class with parameterized constructor (e.g., "make, model, color, year, mileage"). Then call the method to list the values. Loop through the array and print to the screen.…