ITEC 1620 Final: Final_sample_soln.pdf

235 views13 pages

Document Summary

This exam is closed textbook(s) and closed notes. Use of any electronic device (e. g. for computing and/or communicating) is not permitted. Do not unstaple this test book any detached sheets will be discarded. The value of each part of each question is indicated. The total value of all questions is 100. Write your name and student number in the space below. Do the same on the top of each sheet of this exam where indicated. Write a program in java that will input a digit between 1 and 9 (inclusive) and then output all intgers between 1 and 99 (inclusive) that has the input digit. For example, your program must have output like the following (user input is underlined): Please write your program on the following page. York. println(i); int digit = york. readint(); for (int i = 1; i <= 99; i++) if (i%10 == digit) else if (i/10 == digit)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions