Write program that prompts the user to enter the first digit

Assignment Help JAVA Programming
Reference no: EM131578878

An ISBN -10 consists of 10 digits: d1, d2, d3, d4, d5, d6, d7, d8, d9, d10. The last digit, d10 is a checksum, whih is calculated from the other nine digits using the following formula: ( d1 * 1 + d2 * 2 + d3 * 3 + d4 * 4 + d5 * 5 + d6 * 6 + d7 * 7 + d8 * 8 + d9 * 9 ) % 11. If the checksum is 10, the last digit is denoted as X according to the ISBN - 10 convention. Write a program that prompts the user to enter the first 9 digits and displays the 10 digit ISBN( including leading zeros) . Your probram should read the input as an integer.

EX 1 input 013601267 the ISBN-10 number is 0136012671
Ex 2 input 012031997 the ISBN-10 number is 013031997X

Reference no: EM131578878

Questions Cloud

Problem related to the game show : You are a contestant in the game show "Let's make a Deal." In this game show, there are three curtains. Behind one of the curtains is a new car.
What is the best business model for the small business : What is the best business model for the small business or startup you have chosen? Briefly describe three different business models.
What types of barriers-disparities existed : Reflecting on your childhood, what types of barriers/disparities existed that limited your ability to lead a healthier life?
Write a java application that prompts a user for a fist name : Write a Java application that prompts a user for a fist name and a last name, and then asks if a user is a company's employee.
Write program that prompts the user to enter the first digit : Write a program that prompts the user to enter the first 9 digits and displays the 10 digit ISBN( including leading zeros) . Your probram should read the input
Compute the variance for the number of right answers : Compute the variance for the number of right answers when we answer one question with probability .8 of getting the right answer.
Write an application that prompts an employee : Write an application that prompts an employee for an hourly pay rate and hours worked. Compute gross pay (hours times rate), withholding tax, and net pay
Discuss the system''s characteristics : discuss the system's characteristics, its application and use in that society
Natural measure of spread that fixes the given problem : The variance in the previous problem grew by a factor of four when the number of trials grew by a factor of 4, while the spread we observed in our histograms.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd