Question

Add some level of GUI such as an interactible window to the following program import java.util.Scanner;...

Add some level of GUI such as an interactible window to the following program

import java.util.Scanner;

public class Kylie_HW5ISBN {

   public static void main(String[] args) {

Scanner keyboard;
keyboard = new Scanner (System.in);

System.out.print("Please enter your 9 digit ISBN number:");
int isbn = keyboard.nextInt();
int d1 = isbn / 100000000;
int d2 = (isbn % 100000000) / 10000000;
int d3 = (isbn % 10000000) / 1000000;
int d4 = (isbn % 1000000) / 100000;
int d5 = (isbn % 100000) / 10000;
int d6 = (isbn % 10000) / 1000;
int d7 = (isbn % 1000) / 100;
int d8 = (isbn % 100) / 10;
int d9 = (isbn % 10);
  
int d10 = (d1 * 1 + d2 * 2 + d3 * 3 + d4 * 4 + d5 * 5 + d6 * 6 + d7 * 7
+ d8 * 8 + d9 * 9) % 11;
  
System.out.print("The ISBN-10 number is " + d1 + d2 + d3 + d4 + d5 + d6
+ d7 + d8 + d9);
  
if (d10 == 10) {
System.out.print('X');
} else {
System.out.print(d10);
}


}
}

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Add some level of GUI such as an interactible window to the following program import java.util.Scanner;...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Part A Which of the following are diamagnetic when they are high-spin? d 1 d2 d3...

    Part A Which of the following are diamagnetic when they are high-spin? d 1 d2 d3 d4 d5 d6 d7 d8 d9 O d10

  • What is the dn configuration of each of the following transition metals and ions ( _...

    What is the dn configuration of each of the following transition metals and ions ( _ ) Cu ( _ ) Cr ( _ ) Cu2+ ( _ ) Sc3+ ( _ ) Ti3+ ( _ ) Cu+ A. d0 B d1 , C d2 , D d3 , Ed4 , F d5 , G d6 , H  d7, i d8 , J d9 , K d10

  • 5. Consider the following table of relevant items in ranked order where zero means it was...

    5. Consider the following table of relevant items in ranked order where zero means it was on the hit list but not relevant. NV = not viewed which means it was on hit ist and relevant or not if it has value of zero but not looked at by the user. It also has all the relevant documents from the database in the first 10 hits. D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 Query 1 0 0...

  • Using the Specialty, Doctor, Patient, Appointment, Allergy, PatientAllergy, Medicine, and PatientMedicine relations created for Hospital System...

    Using the Specialty, Doctor, Patient, Appointment, Allergy, PatientAllergy, Medicine, and PatientMedicine relations created for Hospital System database in the Unit 5 Programming Assignment, populate them with data using the following information in the tables. If your relations have additional attributes that are not included in the following table list, then add appropriate values to populate your relations with data. Assignment Instructions: Provide all of the SQL statements required to create the relations Populate the relations with data (using SQL insert...

  • Program is for an Arduino 1. Add the letters “A”, “b”, “c”, “d”, “E”, “F” to...

    Program is for an Arduino 1. Add the letters “A”, “b”, “c”, “d”, “E”, “F” to your homework program. Continually display “0123”, “4567”, “89Ab”, “cdEF” with a one second delay between each one. HINT: Expand pickNumber() to use numbers 10-15 (a-f in hex). Create new functions for a-f. (THIS IS THE CODE FROM THE HOMEWORK) /*************************************** name:Stopwatch function: you can see the number increases by one per second on the 4-digit 7-segment display. ***********************************/ //Email:support@sunfounder.com //Website:www.sunfounder.com /**************************************/ #include //the pins...

  • Name Immunology Laboratory Worksheet- Indirect ELISA A patient is suffering from recurrent yeast and bacterial infections....

    Name Immunology Laboratory Worksheet- Indirect ELISA A patient is suffering from recurrent yeast and bacterial infections. His blood sample is collected for HIV detection. You are a new lab personnel assigned to perform the test. Make a flowchart of the procedure you plan to follow and list all the materials you require for the test. 1. 2. Prepare a single graph depicting the results of your Indirect ELISA. First, calculate the mean absorbance at each dilution for the duplicates of...

  • Why isnt my MyCalender.java working? class MyCalender.java : package calenderapp; import java.util.Scanner; public class MyCalender {...

    Why isnt my MyCalender.java working? class MyCalender.java : package calenderapp; import java.util.Scanner; public class MyCalender { MyDate myDate; Day day; enum Day { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday }    public static void main(String[] args) { Scanner sc= new Scanner(System.in); System.out.println("Enter date below :"); System.out.println("Enter day :"); int day = sc.nextInt(); System.out.println("Enter Month :"); int month = sc.nextInt(); System.out.println("Enter year :"); int year = sc.nextInt(); MyDate md = new MyDate(day, month, year); if(!md.isDateValid()){ System.out.println("\n Invalid date . Try...

  • I NEED HELP WITH COMPUTER NETWORKS( PLEASE ANSWER THEM ALL) CALCULATIONS & MCQS 1. Name 1...

    I NEED HELP WITH COMPUTER NETWORKS( PLEASE ANSWER THEM ALL) CALCULATIONS & MCQS 1. Name 1 languages that the browser is willing to accept in the following message? GET /kurose_ross/interactive/quotation7.htm HTTP/1.1 Host: gaia.cs.umass.edu Accept: text/plain, text/html, image/gif, image/jpeg, audio/mpeg, audio/basic, video/wmv, video/mp4, application/*, */* Accept-Language: en, fr, de, ar, cs If-Modified-Since: Mon, 12 Aug 2019 07:13:47 -0700 User Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0 2. A file of size F = 8 Gbits needs to be distributed to10...

  • Please use C++ as a Programming language and do the tasks specified per the Guideline above...

    Please use C++ as a Programming language and do the tasks specified per the Guideline above and include comments of your work. Please make sure that the following test cases are working: Example 1 For input D13 D60 D76 D12 A17 D98 A94 D70 D3 A23 A42 D45 A100 D50 A99 A22 A87 A4 A90 D88 A71 A20 D39 D83 A97 A56 D28 A9 D43 A19 D5 A11 A54 A73 D54 A9 A24 A58 D6 D80 A72 A47 A82 A12...

  • Please Answer all Questions on Networks, They all involve calculation ( 1-9 Questions) "A single router...

    Please Answer all Questions on Networks, They all involve calculation ( 1-9 Questions) "A single router is transmitting packets, each of length L bits, over a single link with transmission rate R Mbps to another router at the other end of the link. Suppose that the packet length is L= 12000 bits, and that the link transmission rate along the link to router on the right is R = 1000 Mbps. What is the maximum number of packets per second...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT