About CS506 Assignment 2
CS506 Assignment No 2 for Fall 2026 is from Web Design and Development. It covers lesson 15: More on JDBC, carries 20 marks and is due on VULMS by 11:59 pm on Sunday 22 November 2026. The solution is on this page, with the assignment file.
- Course
- CS506 Web Design and Development
- Assignment
- Assignment No 2
- Semester
- Fall 2026
- Lesson
- 15: More on JDBC
- Total marks
- 20
- End date
- Sun 22 Nov, 11:59 pm
What CS506 Assignment 2 asks
This assignment requires the development of a Calorie Calculator application using Java Swing GUI. The program must allow users to input their weight in kilograms and exercise duration in minutes. Upon clicking a button, the application will calculate the calories burned based on a provided formula and display the result directly on the interface. Students must implement the complete Java source code to handle user input, perform the calculation, and manage the GUI components.
-
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 labeled 'Calculate Calories', and a label for the output. Implement an ActionListener to process the input values, perform the calculation using the formula Calories Burned = Weight × Duration × 0.05, and display the result.
- What to submit
- One .java file containing the complete source code.
- Topics covered
- Java Swing JFrame GUI components Layout managers ActionListener Event handling
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
The solution for CS506 Assignment No 2 was added on 17 Nov 2026. It answers the questions in the assignment file, Fall 2026_CS506_2.docx.
Before you submit on VULMS
- 1 Solve the questions in the assignment file yourself first, then use the solution to check your method and answers.
- 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 Sun 22 Nov.
Questions about this assignment
When is CS506 Assignment 2 due?
Sunday 22 November 2026 at 11:59 pm. VULMS does not accept files after the deadline.
Is the CS506 Assignment 2 solution free?
The assignment file is free with no limit. The solution counts toward your daily downloads: 3 a day on the web, 30 a day with the free Chrome extension, 100 a day with Pro Semester and unlimited in the Android app.
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.