See Programming Assignment 6&7 (see instructions attached)
Read all attached documents to this announcement for helpful guides, and expected outputs
Category: Java
-
“Implementing a To-Do List using Arrays” Implementing a To-Do List using Arrays
-
“Java Course Enrollment and Grade Management System: Utilizing Object-Oriented Design and Static Methods for Efficient Tracking” “Efficient and Flexible Management of Student and Course Information in a Java-based Enrollment and Grade Management System”
Context: You have been assigned to develop a Course Enrollment and Grade Management System in Java for a university. The system should provide functionality to enroll students in courses, assign grades to students, and calculate overall course grades for each student. The project should demonstrate the effective utilization of static methods and variables to keep track of enrollment and grade-related information across multiple instances of the Student and Course classes. It should also showcase your ability to manipulate object state and define behavior through instance methods.
Requirements:Student Class:
The Student class should have private instance variables to store student information such as name, ID, and enrolled courses.
Implement appropriate access modifiers and provide public getter and setter methods for accessing and updating student information.
Design a method to enroll students in courses. It should accept a Course object as a parameter and add the course to the student’s enrolled courses.
Implement a method to assign grades to students. It should accept a Course object and a grade for the student and update the student’s grade for that course. Course Class:
The Course class should have private instance variables to store course information such as course code, name, and maximum capacity.
Use appropriate access modifiers and provide public getter methods for accessing course information.
Implement a static variable to keep track of the total number of enrolled students across all instances of the Course class.
Design a static method to retrieve the total number of enrolled students.
CourseManagement Class:
The CourseManagement class should have private static variables to store a list of courses and the overall course grades for each student.
Use appropriate access modifiers to control access to the variables.
Implement static methods to add new courses, enroll students, assign grades, and calculate overall course grades for each student.
The addCourse method should accept parameters for course information and create a new Course object. It should add the course to the list of courses.
The enrollStudent method should accept a Student object and a Course object. It should enroll the student in the course by calling the appropriate method in the Student class.
The assignGrade method should accept a Student object, a Course object, and a grade. It should assign the grade to the student for that course by calling the appropriate method in the Student class.
The calculateOverallGrade method should accept a Student object and calculate the overall course grade for that student based on the grades assigned to them.
Administrator Interface:
Develop an interactive command-line interface for administrators to interact with the Course Enrollment and Grade Management System.
Display a menu with options to add a new course, enroll students, assign grades, and calculate overall course grades.
Prompt the administrator for necessary inputs and call the appropriate methods in the CourseManagement and Student classes to perform the requested operations.
Implement error handling to handle cases where invalid inputs are provided or when enrolling students in courses that have reached their maximum capacity.
Documentation:
Provide comprehensive documentation for the project, explaining the purpose and usage of each class, method, and variable.
Describe how static methods and variables are utilized to track enrollment and grade-related information across multiple instances of the Student and Course classes.
Include instructions for running the program and interacting with the administrator interface.
You will be assessed based on the following criteria:
Object oriented design – Object-oriented design in the Course Enrollment and Grade Management System project in Java allows for modular code organization, encapsulation of data and behavior within classes, and effective utilization of static methods and variables to track enrollment and grade-related information.
The Student Update feature in the Course Enrollment and Grade Management System project in Java enables administrators to efficiently modify student information such as name, ID, and enrolled courses, ensuring accurate and up-to-date data management.
The Course Update functionality in the Course Enrollment and Grade Management System project in Java allows administrators to easily update course information such as course code, name, and maximum capacity, ensuring flexibility and adaptability in managing course offerings.
The Course Management Update feature in the Course Enrollment and Grade Management System project in Java empowers administrators to efficiently add, modify, or remove courses, providing seamless control and customization of the curriculum offered by the university.
The Administrator Interface in the Course Enrollment and Grade Management System project in Java offers a user-friendly command-line interface that enables administrators to interactively perform various operations such as adding courses, enrolling students, assigning grades, and calculating overall course grades.
The documentation in the Course Enrollment and Grade Management System project in Java provides comprehensive instructions, explanations, and guidelines for the project’s classes, methods, variables, and usage, ensuring clarity and facilitating ease of understanding and maintenance. -
Title: “Optimizing Dijkstra’s Shortest Path Algorithm for Map Navigation in Java”
Implement the classic Dijkstra’s shortest path algorithm and optimize it for maps.
Such algorithms are widely used in geographic information systems (GIS) including
MapQuest and GPS-based car navigation systems. 1) I need the answer in “JAVA” programming.
2) go through zip file https://drive.google.com/file/d/1wMBL_wDoxAUKSg8gy… that the code needs to be optimized.
3) please follow the deliverables that needed to be uploaded.
4) Also provide me a video of explanation, how to run the code, explaining the results and code optimization(the modifications made from the
original code). So, that it’ll be very helpful to me. -
Title: Java Code Issues and Corrections
Q1) Find the issues in the following Java code, then correct them.
public class Rectangular
{
private int length;
private int width;
public Rectangular(int length, int width)
{
this.length = length;
this.width = width;
}
public String area ()
{
return length * width;
}
}
public class RectangularTest
{
public static void main (String[] args)
{
Rectangular r1 = new Rectangular(3,5);
System.out.println(area());
}
} Q2)
Create a Java class for Student with the following requirements:
Create a tester class with the main method with the following requirements.
Each student has two attributes: Name and ID.
Create two constructors. One constructor without parameters to initialize all the instance variables to default values, and another constructor to initialize all the attributes to specific values.
Add all setter and getter methods.
Create two objects from Student class. Create the first object using the default constructor and the second object must set your name and ID.
Print your name and ID using getter methods.
Q3)Suppose you have the following 2 dimensions array: int arr[][] = { { 10, 11, 12, 13, 14 }, { 15, 16, 17, 18, 19 }, { 20, 21, 22, 23, 24 }, { 25, 26, 27, 28, 29 }, { 30, 31, 32, 33, 34 } }; With the the following rows and columns sizes: static int rows= 5; static int columns= 5; Write a Java programs that uses takes arr[][] and reverse (mirror) all rows. For example, the first row should be as the following after you reverse it 14 13 12 11 10. A screenshot of your output should also be included in your answer and should display both the original array and the reversed array. Sample output:
Q4) What is the output of the following Java program? public class Exam { static int studyingHours = 31; private String course = “OOP”; public void compute(int studyingHours) { Exam e = new Exam(); this.studyingHours = 24; course = “Math”; System.out.println(“Exam.studyingHours: ” + Exam.studyingHours); System.out.println(“e.studyingHours: ” + e.studyingHours); System.out.println(“e.course: ” + e.course); System.out.println(“course: ” + course); } public static void main(String args[]) { Exam e = new Exam(); e.compute(31); } } -
“Introduction to Java: Understanding the Basics” 1. What is Java? Java is a high-level, object-oriented programming language that is widely used for developing applications, web-based content, and other software. It was created by James Gosling at Sun
i have this assignment for Java
i want you to answer all the questions as required in the questions
the name for q2 is ( ATHEER ALZAHRANI ) and the id is ( S200325012 ) -
Java Project: Personal Budget Tracker
In this project, you have the freedom to choose any topic that interests you. Whether it’s a simple calculator application, a game, a data management system, or anything else, the choice is yours.
To guide you through the project, we’ve provided a comprehensive PDF attachment that demonstrates the implementation process step by step. You’ll find detailed instructions, code snippets, and explanations to help you replicate the functionality outlined in the PDF.
Feel free to get creative with your project topic and add your own unique touches. If you have any questions or need assistance along the way, don’t hesitate to reach out to your tutor for guidance.
We’re excited to see what you come up with and wish you the best of luck on your Java project journey! -
“Configurator GUI Application” “System Configuration Options with Enhanced Features”
Unit 6 Final Project (Mastery Assignment)
Description
For this week’s assignment, you are to prepare
a GUI application.
Instructions
·
·
Directions
o You
have been selected to develop a GUI application called a “Configurator”. The application allows the user to complete
the configuration of a computer system and produce a sales price for the system
based on the configuration selected. The
application must meet the minimum operating requirements and specifications as
provided below:
·
Operation
o The
user configures the components of a computer system by selecting items from
combo boxes, radio buttons, and check boxes.
o When
the user clicks the Calculate button, the application calculates the prices of
the system by adding the cost of each selected component to the base price of
the system.
o An
option is provided to the user to clear all entries and begin over.
o As
the systems are configured on the “fly”, the program should update the costs
automatically to show the user the impact of adding or changing the basic
system (running totals)
o When
the user presses the “order” button, the program should display the current
configuration in a dialog box of your choice.
The dialog box should show the configuration the user is about to order
with pricing and totals. The user must
confirm the configuration before the order is processed. When the user confirms the order, the order
is processed and the order displayed as processed.
o When
the user closes the frame or presses the Exit button, the application exits.
·
Specifications
o You
are free to use whatever layouts and panels you need to design the
application. You can also create any
classes you think might be helpful to solve and develop this application. In
short, you’re the developer and may use all resources available to you. The only requirement is: you must use the
Java programming language.
·
There are two base priced computers:
o Intel
based priced system is $499 and includes the following configuration:
§
Intel® Celeron® processor G1610
§
Memory – 4GB Dual Channel DDR3 1600MHz – 1 DIMMs
§
125GB 7200RPM SATA 3.0Gb/s Hard Drive
§
CD-Rom Drive
§
Integrated Audio
§
Microsoft Windows 8.1 OS
§
2 Piece Powered Speaker Set
§
USB Wired Entry Keyboard
§
USB Optical Mouse
o AMD
based priced system is $599 and includes the following configuration:
§
AMD FX-2100 for Desktops
§
4GB memory
§
125GB Hard Drive
§
Integrated 3D Graphics
§
CD-Rom Drive
§
Integrated Audio
§
Microsoft Windows 8.1 OS
§
2 Piece Powered Speaker Set
§
USB Wired Entry Keyboard
§
USB Optical Mouse
·
For the Intel systems, the user can select from
4 processors.
G1620 2.70GHz
Add $50.00
G1630 2.80GHz
Add $90.00
G1820 2.70GHz
Add $105.00
G1830 2.80GHz
Add $130.00
·
For the AMD systems, the user can select from 4
processors.
FX-8350
Add $25.00
FX-9590
Add $90.00
FX-4100
Add $187.00
FX-4300
Add $280.00
·
For both based systems, the user can select from
4 memory configurations.
6GB
Add $28
8GB
Add $58
12GB
Add $108
16GB
Add $176
·
For both based systems, the user can select from
3 hard drive configurations.
250GB
Add $27
500GB
Add $50
1TB
Add $89
·
For both based systems, the user can select from
3 optical drive configurations.
DVD Drive
Add $17
Combo DVD/CDRW
Add $40
DVD and CDRW
Add $79
·
For both based systems, the user can select from
3 graphic enhancements:
NVIDA GeForce G310 512MB DDR3
Add $80
NVIDA GeForce GT620 1GB DDR3
Add $169
NVIDA GeForce GT640 1GB GDDR5
Add $490
·
Using option buttons, the user can select from
the following 3 operating systems.
Windows 8.1 (Default)
None
Windows 8.1 Pro
Add $59
Linux
Subtract $89
·
Using check boxes, the user can select any of
the following 4 applications packages.
Microsoft Office Home and Student
2013
Add $139
Microsoft Office Home & Business
2013
Add $219
Accounting package
Add $399
Graphics package
Add $499
·
Hints
o
Consider using separate classes to represent
each of the system configuration options.
o
Use the Internet and Google.
o
Start NOW.
·
Required Enhancements
o
Include sales tax at the rate of 0.078 in the
final price. The sales tax should
display separately of total and subtotal costing.
o
Include combined shipping and handling rate of
0.025 based on the total cost in the total price. The shipping and handling should display separately of the total, subtotal and sales tax.
o
Use a minimum of two graphics. The graphics
could be used as buttons.
o
Print a summary of the configuration. This can be done to a frame, panel or text
area.
·
Deliverables
o Copy
of the source code with screen captures showing the main screen and all dialog
boxes generated during the order process.
·
Special Note
o Remember,
you are the developer. You can use all
the Java tools presented in the text or on the Internet. Develop your program to your satisfaction
under the minimum requirements listed above.
You are allowed to seek help only from your fellow class
developers. I encourage the sharing of
code, ideas and problems and successes but not completed projects.
o Do
not procrastinate. You currently have
the tools to begin the GUI and start the programming construction.
Consult the Programming
Grading Rubric to ensure you are meeting the assignment’s criteria, as
it will be used along with the objectives listed above to assess your work.