Java Progams - Noob Friendly please

SoccerBoss
Category:
Programming
Price: $5 USD

Question description


  1. Write a program that sorts three integers. The integers are entered from the console and stored in num1, num2 and num3. The program sorts the numbers so that num1 is the smallest and num3 is the largest.

    Submit your source code and compiled program ( .java and .class files 



    Write a program that prompts the user to enter the first 9 digits of an ISBN number. Store them in variables d1 ... d9

    To calculate the final digit ( the checksum ) use the following fornula

    ( d1 * 1 + d2 * 2 + d3 * 3 + d4 * 4 + d5 * 5 + d6 * 6 + d7 * 7 + d8 * 8 + d9 * 9 ) % 11

  1. If the checksum is 10 the final character is X otherwise it's the checksum digit.

    Display the ISBN number



Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Rice University
PREMIUM TUTOR
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1831 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors