Question
VISUAL BASIC- The first Supreme Court justice was appointed in 1789. Write a program to create a file that lists the years from 1789 through
VISUAL BASIC- The first Supreme Court justice was appointed in 1789. Write a program to create a file that lists the years from 1789 through 2016 in which no Supreme Court justices were appointed. The first four lines of the file will be 1792, 1794, 1795 and 1797.
Use Justices.txt for the input file. Name the output file NoAppointments.txt.
Hint: One approach is to use two arrays: one for justices and the other for all possible appointment years. The arrays can be individually converted to LINQ query variables. Finally, a Set operation can then be used with the two arrays to extract the years to write into a text file.
If possible, please TYPE the answer. Thank you.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started