Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I'm really struggling with this assignment for my C# and .NET class. The textbook solution is on Chegg, and it works however I need the
I'm really struggling with this assignment for my C# and .NET class. The textbook solution is on Chegg, and it works however I need the program to read input from a file versus having the user input the information. I need the code as simple as possible. I have attached my professors intructions as well as the file he wants us to use as input. I have also attached the probelm from the book. Ant help or pointers would be greatly appreciated!
The numbers in the file are 1007, 1008, 2007, 3008, 2109, 1109, 4300, 0000, 0000, 0000.
-Upload Assignment HC Homework 4 Instr Major/Program; Comp e "Waiting for response f 832 sim pl tron compu p Hey Pretty Girl Rac how do you take screer No new notifications https:/ 4977609 dt content rid 33261536 1/courses/201910CS311013901/Homework 4 Instructions.pdf CS3110 Homework 4 Part 1 Write the program for the Simpletron computer simulator from Exercise 8.32 on page 365 of the textbook. You should also read all of Exercise 8.31, as it describes the computer we will be simulating. I would also like to modify the exercise slightly to give the simulator more be implemented as described in the book, with the following change: capability, and frankly to greatly simplify your testing effort. The program should If the program does not have command line arguments, then output an error message and stop. *If the program has 1 or more command line arguments, then input the integer numbers that represent the Simpletron program from the file specified i the first command lie argument, as opposed to inputting them from the console as specified in the exercise. In either case, you don't need to print the input instructions to the console as described in the problem in the book, but echoing the instructions you read from the file to the console would be a good idea. * I will be discussing basic file IO in C# in the lecture on September 10, and will post lides for them as well The answers to the first two parts of exercise 8.31 are provided below, that you may use as a test program for your f run these Figures 8.32 and 8.33. r simulator. Your finished simulator should be able to Il as the two example programs shown in the book for The programs specified below are also included with the assignment posting on Blackboard as text files named]p programs from Figures 8.32 and 8.33 are also included as the files figure8.32.txt and figure 8 33.txt. roblem 8 31 la.txt and problem 8 31b.txt. The Expand Tablet mode O Type here to search 858 AM 9/24/2018 -Upload Assignment HC Homework 4 Instr Major/Program; Comp e "Waiting for response f 832 sim pl tron compu p Hey Pretty Girl Rac how do you take screer No new notifications https:/ 4977609 dt content rid 33261536 1/courses/201910CS311013901/Homework 4 Instructions.pdf CS3110 Homework 4 Part 1 Write the program for the Simpletron computer simulator from Exercise 8.32 on page 365 of the textbook. You should also read all of Exercise 8.31, as it describes the computer we will be simulating. I would also like to modify the exercise slightly to give the simulator more be implemented as described in the book, with the following change: capability, and frankly to greatly simplify your testing effort. The program should If the program does not have command line arguments, then output an error message and stop. *If the program has 1 or more command line arguments, then input the integer numbers that represent the Simpletron program from the file specified i the first command lie argument, as opposed to inputting them from the console as specified in the exercise. In either case, you don't need to print the input instructions to the console as described in the problem in the book, but echoing the instructions you read from the file to the console would be a good idea. * I will be discussing basic file IO in C# in the lecture on September 10, and will post lides for them as well The answers to the first two parts of exercise 8.31 are provided below, that you may use as a test program for your f run these Figures 8.32 and 8.33. r simulator. Your finished simulator should be able to Il as the two example programs shown in the book for The programs specified below are also included with the assignment posting on Blackboard as text files named]p programs from Figures 8.32 and 8.33 are also included as the files figure8.32.txt and figure 8 33.txt. roblem 8 31 la.txt and problem 8 31b.txt. The Expand Tablet mode O Type here to search 858 AM 9/24/2018
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