Question

In: Computer Science

Using the various Object Oriented Programming concepts and skills learnt in this course, design and develop...

Using the various Object Oriented Programming concepts and skills learnt in this course, design and develop a Java Application to compute an individual student’s GPA and store the records in a database.
The application should have two components i.e. The student and the course components.
The following should be the minimal operations on the course component:
– Set course information
– Print course information
– Show credit hours
– Show course number
The following should be the minimal operations on the student component
– Set student information
– Print student information
– Calculate number of credit hours taken
– Calculate GPA
– Calculate billing amount (NB: @credit unit is Ksh5,550)
– Sort the courses according to the course number

Solutions

Expert Solution

Answer : Given data

import java.io.*;

import java.util;

class student

{

public static void main(String[] args)

{

//setting the course information

public void course()

{

//get all the necesary information from the usre

//store all the information in proper datatypes

}

public void printcourse()

{

//print all the course information

}

public int creditHours()

{

//return the credit hours

}

public int courseNumber()

{

//return the course number

}

//CALLING THE PREVIOUSLY DEFINED METHODS

int ch=creditHours();

int cn=courseNumber();

//FOR THE STUDENT COMPONENT

public void stuInfo()

{

//store the student information in proper datatype

}

public void printStuInfo()

{

//print the student info

}

public int credit()

{

//calculating the number of credit hours

}

public void GPA()

{

//calculate gpa

//print gpa

}

public float bill()

{

//calculate and return billing amount

}

public void sortCourse()

{

//sort the course according to the course number

}

//CALLING THE NON VOID METHODS

float b=bill();

//b can be used as the billing amount

}//closing main

}//closing class

____________-THE END________________


Related Solutions

What are the object oriented concepts and which all object oriented concepts are used in the...
What are the object oriented concepts and which all object oriented concepts are used in the given program? Consider the following code and explain how each of the object oriented concepts are applied in the given program. (CO1) class Vehicle { string brand; public: void honk(); void honk(int); }; void Vehicle::honk() { cout << "Tuut, tuut! \n" ; } void Vehicle::honk(int x) { for(int i=0;i<x;i++) cout << "Tuut, tuut! \n" ; } int main() { Vehicle V1; V1.honk(); V1.honk(3); }
What are design patterns in object oriented programming? Minimum 200 words
What are design patterns in object oriented programming? Minimum 200 words
Abstraction is a key part of object-oriented programming and the concepts apply particularly well to classes....
Abstraction is a key part of object-oriented programming and the concepts apply particularly well to classes. How would the same concepts apply to data structures and how we tend to define and think of ADTs?
Abstraction is a key part of object-oriented programming and the concepts apply particularly well to classes....
Abstraction is a key part of object-oriented programming and the concepts apply particularly well to classes. How would the same concepts apply to data structures and how we tend to define and think of ADTs?
Using C++, develop a project that uses the various concepts you have learned over the course...
Using C++, develop a project that uses the various concepts you have learned over the course the term. The purpose of this project is to understand important data structures and learn how to implement them so that improve programming skills as well. Your final deliverable can be a program to do some type of useful computation. It can be a retail management system that keeps track of the daily delivery orders by customers; or a clinic reservation system that bookkeeps...
This week, you will create and implement an object-oriented programming design for your project. You will...
This week, you will create and implement an object-oriented programming design for your project. You will learn to identify and describe the classes, their attributes and operations, as well as the relations between the classes. Create class diagrams using Visual Studio. Review the How to: Add class diagrams to projects (Links to an external site.) page from Microsoft’s website; it will tell you how to install it. Submit a screen shot from Visual Studio with your explanation into a Word...
What is different between procedural and object-oriented programming? Match each of the following OOP concepts with...
What is different between procedural and object-oriented programming? Match each of the following OOP concepts with its example/description. Question 2 options: 12345678 Providing a way for an entity to behave in several ways OR providing multiple entities to be treated in a similar way 12345678 A key way of saving having to retype a lot of code for similar but different objects 12345678 The removal of non-essential information 12345678 Allowing which function to be called by an object to be...
Throughout this course, you will be learning about object-oriented programming and demonstrating what you learn by...
Throughout this course, you will be learning about object-oriented programming and demonstrating what you learn by writing some programs in Java. The first step will be to install and integrated development environment (IDE) that will be where you will write and compile your programs. You will also write your first program using Java to show that you have correctly installed the IDE. The project instructions and deliverables are as follows: Download and install Java JDK and NetBeans IDE using the...
Why is it more feasible to use Objects and object oriented programming as compared to using...
Why is it more feasible to use Objects and object oriented programming as compared to using method based programs? What are the disadvantages of using only methods in your programs.
Solve the following programming problems using object-oriented programming in Java. Provide the problem code and screenshot...
Solve the following programming problems using object-oriented programming in Java. Provide the problem code and screenshot of the test run. COIN TOSSING: Write a program that simulates the toss of a coin. Provide a menu of two options: toss and quit. Count the number of times each side of the coin appears and display the results after each toss. The program should have a method called flip() that is called, takes no arguments and returns a Coin enum value (HEADS...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT