Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

COMP 2129 Advanced Object-Oriented Programming with C # Week 10 – Lab Test # 3 Submission: · Save your project as LabTest3_XX_999 where XX stands for the initials of your first and last name and 999...

1 answer below »
COMP 2129 Advanced Object-Oriented Programming with C #
Week 10 – Lab Test # 3
Submission:
· Save your project as LabTest3_XX_999 where XX stands for the initials of your first and last name and 999 stands for the last 3 digits of your student number.
· Submit your file on Blackboard. For Blackboard submission: zip (compress) the project folder and submit the zipped folde
· Solution code must be submitted on time otherwise it will not be marked.
· You may be asked to explain your code during a Blackboard Collaborate live session before a grade will be assigned. If this happens you will need to prepare the following: your student ID, be able to share your computer screen during the session with me, be able to have an adequate quality audio and video so I can hear you and see you, be alone in the room while you are explaining your code.
Complete one of the following (choose one exercise from below and complete only one):
Exercise 1: Write a program that stores 50 random numbers in a file. The random numbers should be positive with the largest value being 1000. Store five numbers per line and 10 different lines. Use the Random class to generate the values. Include appropriate exception-handling techniques in your solution. When the application closes, locate the text file and verify its contents.
Exercise 2: Design an application that enables users to enter two values of type int. Write a method that retrieves the values and stores them and their products in separate structures. When designing the Windows application, you might allow the user to input the values in a TextBox and then retrieve and store the values in a ListBox. Their product could be stored in a separate ListBox. Your solution should include exception-handling techniques with a minimum of two catch clauses and a finally clause. Consider using your finally clause to prepare the GUI for the next set of values.
Answered Same Day Jul 17, 2021

Solution

Aditya answered on Jul 18 2021
140 Votes
randomNumbe
andomNumbe
.vs
andomNumbe
v16/.suo
andomNumbe
andomNumbe
andomNumber.sln
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "randomNumber", "randomNumber\randomNumber.csproj", "{5FBC9DB2-336E-40ED-9501-1FF4BFC12464}"
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|Any CPU = Debug|Any CPU
        Release|Any CPU = Release|Any CPU
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {5FBC9DB2-336E-40ED-9501-1FF4BFC12464}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {5FBC9DB2-336E-40ED-9501-1FF4BFC12464}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {5FBC9DB2-336E-40ED-9501-1FF4BFC12464}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {5FBC9DB2-336E-40ED-9501-1FF4BFC12464}.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
EndGlobal
andomNumbe
andomNumbe
andomNumber.v12.suo
andomNumbe
andomNumbe
andomNumbe
App.config




andomNumbe
andomNumbe
andomNumbe
in/Debug/Data.txt
416 961 227 476 465
0 450 974 796 473
631 225 595 821 87
458 539 983 425 760
201 862 934 518 589
649 985 580 639 582
104 359 750 785 959
887 413 724 721 575
317 528 906 320 302
59 247 196 747 700
andomNumbe
andomNumbe
andomNumbe
in/Debug
andomNumber.exe
andomNumbe
andomNumbe
andomNumbe
in/Debug
andomNumber.exe.config




andomNumbe
andomNumbe
andomNumbe
in/Debug
andomNumber.pd
andomNumbe
andomNumbe
andomNumbe
in/Debug
andomNumber.vshost.exe
andomNumbe
andomNumbe
andomNumbe
in/Debug
andomNumber.vshost.exe.config




andomNumbe
andomNumbe
andomNumbe
in/Debug
andomNumber.vshost.exe.manifest









andomNumbe
andomNumbe
andomNumbe
obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
andomNumbe
andomNumbe
andomNumbe
obj/Debug
andomNumber.csproj.CoreCompileInputs.cache
12296c19feced48de25aa87115faa9b85d873415
andomNumbe
andomNumbe
andomNumbe
obj/Debug
andomNumber.csproj.FileListAbsolute.txt
c:\users\it\documents\visual studio...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here