ME 360 Midterm: ME 360 Alabama Test1 Spring03

22 views13 pages
31 Jan 2019
Department
Course
Professor

Document Summary

Statement of integrity: i did not break the rules of academic integrity on this exam: (print your name) (signature) (student id) This test is closed book no calculators, reference sheets, or any other material allowed. Show all work and comment code fragments to receive partial credit. Use the back of each page if you need more space. Points: ______ (15 points, ______ (25 points, ______ (35 points, ______ (25 points) _____ /100 points: ______ (2 possible bonus points) Fill in the output for the following code (5 points each). Note that some portions are provided for you. Show your work by drawing pictures and/or describing your steps for partial credit. public class problem1 { public static void main(string args[]) { Data1 d1 = new data1(1,2); d0. d0 = new data0(3); d1. d0 = new data1(4,5); d1. d0. d0 = new data0(6); } // class problem2 class data0 { private int m; public data0 d0;