About CS506 Assignment 2
CS506 Assignment No 2 for Spring 2026 is from Web Design and Development. It covers lesson 15: More on JDBC, carries 20 marks and closed on VULMS on Monday 29 June 2026. No solution was added before it closed.
- Course
- CS506 Web Design and Development
- Assignment
- Assignment No 2
- Semester
- Spring 2026
- Lesson
- 15: More on JDBC
- Total marks
- 20
- End date
- Mon 29 Jun, 11:59 pm
What CS506 Assignment 2 asks
This assignment requires the development of a Java Swing GUI application for a fitness centre called the Calorie Calculator. Students must design a frame that accepts user input for weight in kilograms and exercise duration in minutes. The application must perform a specific calculation to determine calories burned and display the result directly on the interface. The final program must be functional, well-indented, and include explanatory comments.
-
1
Question No. 1
20 marksCreate a JFrame titled 'Calorie Calculator' using a layout manager like FlowLayout. Include labels and text fields for weight and duration, a button to trigger the calculation, and a label to show the result. Implement an ActionListener to process the input values, apply the formula (Weight × Duration × 0.05), and display the output upon clicking the button.
- What to submit
- One .java file containing the complete source code.
- Topics covered
- Java Swing GUI development JFrame Event handling ActionListener Layout managers
A summary of the assignment file, Fall 2026_CS506_2.docx. Download the file for the full wording before you start.
Lesson covered
The questions in this assignment come from this lesson. Read it in the CS506 handout before you open the assignment file, then practise it with the MCQs and past papers.
Solution
No solution was added before this assignment closed. The assignment file stays here so you can revise lesson 15.
Before you submit on VULMS
- 1 This assignment closed without a solution. Use the assignment file to revise lesson 15 before your exams.
- 2 Write the final answer in your own words. VU checks assignments for copying, and copied work gets zero marks.
- 3 Save your answer in the file type the assignment file asks for, and name it with your student ID, for example BC260012345.
- 4 Open the file once more to check it is not empty or corrupted, then upload it on VULMS before 11:59 pm on Mon 29 Jun.
Questions about this assignment
When is CS506 Assignment 2 due?
It closed on Monday 29 June 2026. VULMS no longer accepts files for it, but the assignment stays here for revision.
Will a solution be added?
No. Solutions are written only while an assignment is open on VULMS, and this one closed on Monday 29 June 2026. The assignment file stays here for revision.
Can I submit the solution as it is?
No. VU checks assignments for copying, and copied work gets zero marks. Use the solution to check your method, then write your own answer.
What file do I submit?
The assignment file says which file type to upload and lists any extra instructions from your instructor. Name the file with your student ID before you upload it on VULMS.