SandeepKumar_4568803_Lab1

docx

School

Algoma University *

*We aren’t endorsed by this school

Course

1047

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

6

Uploaded by EarlFlyMaster1252

Report
PROG1124 – Software Development Lab – 1 (10%) Term: Winter 2024 Professor: Sivi Rakaj Course: PROG1124 – Software Development Email: Sivi.rakaj@niagaracollegetoronto.ca Please Be Advised That: 1. Lab must be completed as an individual effort. Do not collaborate with anyone or share it with any individual, party or entity. 2. Do not share this lab with anyone or any 3 rd party without the written consent of the professor. 3. This lab is of 10%. 4. Complete it and upload it to Canvas by due date/time, mentioned in Canvas. 5. All online submissions will be done via Canvas (Email submissions will NOT be accepted). 6. Corrupt/incorrect submissions will be graded as zero. 7. Make sure your PCs/laptops are in good working condition. If something does not work, or any application or system crashes, you will be responsible to fix it and submit your work on time. No excuses will be accepted during the lab. 8. Make sure your Visual Studio is in good working condition. No excuses will be entertained regarding issues with Visual Studio. Copyright Disclaimer: The materials provided in class and in Canvas are protected by copyright. They are intended for the personal, educational uses of students in this course and should not be shared externally or on websites such as Chegg, Course Hero or OneClass. Unauthorized distribution may result in copyright infringement and violation of Niagara College’s policies. Submission Instructions: 1. Download this document. Rename it as YourFirstnameLastname_YourStudentID_Lab1 . 2. Take two screenshots of each project and paste them at the spaces provided in this document: Run the project and take a screenshot of the output (active) window . Screenshot of the whole Visual Studio screen including the Taskbar that shows the date and time. Use Alt + PrtSc to take the screenshot of the active window. Use PrtSc to take the screenshot of the whole screen. 3. Make sure the screenshots are clear and readable. 4. Please note that if your screenshots didn’t follow the above-mentioned instructions, your lab will not be graded. 5. When finished, submit it to Lab-1 under Assignments module on Canvas. Page 1 of 6
PROG1124 – Software Development Question 1: Write a C# program to swap two numbers without using a third variable. (2 marks) [Take a screenshot of the C# sharp code in the Visual studio window and paste it here] [Take a screenshot of the whole output screen and paste it here] Question 2: Write a C# program to calculate the area and circumference of a circle using the below formulas. (2 Marks) Area=pi*r*r (value of pi=3.1459) Circumference=2*pi*r [Take a screenshot of the C# sharp code in the Visual studio window and paste it here] Page 2 of 6
PROG1124 – Software Development [Take a screenshot of the whole output screen and paste it here] Question 3: Write a C# program to get their marks for 5 courses and calculate its total and average. (2 marks) [Take a screenshot of the C# sharp code in the Visual studio window and paste it here] Page 3 of 6
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
PROG1124 – Software Development [Take a screenshot of the whole output screen and paste it here] Question 4: Create the following GUI in Visual Studio Code and perform the actions given below (9 marks) [Take a screenshot of the C# sharp code in the Visual studio window and paste it here] Page 4 of 6
PROG1124 – Software Development [Take a screenshot of the whole output screen and paste it here] Page 5 of 6
PROG1124 – Software Development Personal Information: 1. Create a WPF project in Visual Studio and name it as Lab1YourFirstnameLastnamePersonalInfo . 2. Design the Window that looks similar to the given screenshot. 3. Change the window’s Title attribute to Personal Information - Your Firstname Lastname . 4. Replace the default Grid layout control with Canvas . 5. Add the required controls on to the Canvas . 6. Clicking on the Submit button displays the message box with your name, phone number and email id. Rubrics for Evaluation: Question 1: Declare variables and assign values – 1 point, logic without using third variable – 1 point Question 2: Declare variables, assign values and calculate area and Circumference using formulas-1 point, sample output- 1 point. Question 3: Declare variables and assign values, declare average as double data – 1 point, sample output- 1 point Question 4: Form design .xaml code– 3 points, C# code – 3 points, sample output – 3 point Page 6 of 6
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help