1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
USPshnik [31]
3 years ago
9

ISBN-13 is a new standard for identifying books. It uses 13 digits d1d2d3d4d5d6d7d8d9d10d11d12d13. The last digit d13 is a check

sum, which is calculated from the other digits using the following formula: 10 - (d1 3d2 d3 3d4 d5 3d6 d7 3d8 d9 3d10 d11 3d12) % 10 If the checksum is 10, replace it with 0. Your program should read the input as a string.

Computers and Technology
1 answer:
qwelly [4]3 years ago
5 0

Answer:

// Scanner class is imported to allow program

// read input from user

import java.util.Scanner;

// Solution class is created

public class Solution {

// main method that begin program execution

public static void main(String[] strings) {

// Scanner object scan is created

// it receive input via the keyboard

Scanner scan = new Scanner(System.in);

// a prompt is displayed for user to enter 12 digits of ISBN

System.out.print("Enter the first 12 digits of an ISBN as string: ");

// user input is assigned to input

String input = scan.next();

//if length of input is not 12, program display error message and quit

if (input.length() != 12) {

System.out.println(input + " is Invalid input");

System.exit(0);

}

// 0 is assigned to checkSum

int checkSum = 0;

// for loop that goes through the string and does the computation

for (int i = 0; i < input.length(); i++) {

// if the index is even

if ((i + 1) % 2 == 0) {

checkSum += (input.charAt(i) - '0') * 3;

}

// if the index is odd

else

{

checkSum += input.charAt(i) - '0';

}

}

// modulo 10 of checkSum is assigned to checkSum

checkSum %= 10;

// checkSum is substracted from 10

checkSum = 10 - checkSum;

// if checkSum equals 10, 0 is concatenated with input

// else input is concatenated with checkSum

if (checkSum == 10) input += "0";

else input += checkSum;

// the new value of the isbn-13 is displayed

System.out.println("The ISBN-13 number is " + input);

}

}

Explanation:

The program is written in Java and well commented.

A sample of program output during execution is also attached.

You might be interested in
Which of the following is true about parallel computing performance?
Ierofanga [76]

Answer:

Computations use multiple processors. There is an increase in speed.

Explanation:

The increase in speed is loosely tied to the number of processor or computers used.

Mark me a brainliest answer

4 0
3 years ago
Answer the following questions for Web browser and Web server software: 1. What functions should this software application provi
timurjin [86]

Answer:

Explanation:

Functions should a software application provide to keep a web browser secured

1) The web browser should always be updated, so kindly keep the "automatic update" option enable on your browser settings so that whenever the browser gets an update, it will be updated automatically.

2) Always keep the third party cookies disabled because there are so many unauthorized and phishing sites over the internet they may lead the browser unsafe and cause very higher security risk so block all the third party sites and cookies from the browser

Functions should a software application prohibit to keep a web browser secured

1) Do not store passwords on your web browser, deny the "store password" option on your browser settings. Even if you store passwords on your web browser do set a very strong master password to access all the stored passwords.

2) Do not click on unwanted, unknown hyperlinks. There will be many unsolicited attachments, PDFs, DOCs, files, etc over the internet so do not open or download it unnecessarily.

Functions should a software application provide to keep a web server secured

1) Always use an application scanner. Whenever you install or download any new applications do scan the application before accessing it.

2) Install all the security patches because there are more number of hackers over the internet so do not deny installing the security patcheds on time.  

Functions should a software application prohibit to keep a web server secured

1) When an application is not in use for long time, better uninstall it because they are actually of no use so do uninstall all the unwanted softwares or applications along with extensions.

2) There may be scripts, files, setups, codes stored on the web server unknowingly so do check it and delete all the sample scripts, files and codes from the web server.

5 0
3 years ago
Write a program great_circle.python that takes four float arguments x1 y1 x2 y2
svlad2 [7]

Answer:

897893+ 892e98374))8qwye932__8730140923(7834983(8974+9)9903)

Explanation:

IT IS SIMPLE MY FRIEND

spanish conquistadors, who were primarily poor nobles from the impoverished west and south of Spain, were able to conquer the huge empires of the New World with the help of superior military technology, disease (which weakened indigenous resistance), and military tactics including surprise attacks and powerful and there were no strangers to love and they knew the rules and so did i they just wanted to tell people how the were feeling and they wanted someone to understand so they were never gonna give you up and they were never gonna let them down and they were never gonna turn around and hurt other people in the army they were never gonna make the soldiers cry and they never were going to say goodbye but the years stop comming and they dont stop comming head to the rules gotta keep the groud running but Remember those walls I built Well, baby, they're tumbling down And they didn't even put up a fight They didn't even make a sound I found a way to let you win But I never really had a doubt Standing in the light of your halo I got my angel now It's like I've been awakened Every rule I had you breaking It's the risk that I'm taking I ain't never gonna shut you out Everywhere I'm looking now I'm surrounded by your embrace BabPatrician. Patricians were considered the upper-class in early Roman society. They controlled the best land and made up the majority of the Roman senate.y, I can see your halo You know you're my saving grace You're everything I need and morei t's written all over your face Baby, I can feel your halo Pray it won't fade away  Hit me like a ray of sun Burning through my darkest night I'm boutta' pop,  you know I'm boutta' blow up Only need these hands I don't need no  pole Once I get a grip, I might blast yo  dome up Like I'm Bakugo, turn they soul to  smokei 'm boutta' pop,  you know I'm boutta' blow up Only need these hands, I don't need no ' pole Once I get a grip, I might blast yo dome up Why you packin', you ain't bout' that action I'll blow her back in Why you mad but not attackin' boy I'll send you packin' I'm the best, no doubt about it Competition live without it You just mad cause I'm too rowdy get back I'm really bout it Head down on the ground, you don't want these hands around you Nitroglycerin I'm sweatin', blastin' off I'm bound to Rushin', there ain't no hiding yous a  if you down to If you try to hide you gon' be begging once I've found you I'm the best, ain't no hero but always been vet if you got an issue, AP shots up to yo neck I don't give a  about no one, I'll say it no regrets I'm only here for me, I'm at the top and you'll respect Grenadier bracers on my wrist, I'm about to pull the pin Come at me with all your might or I'ma melt off all your skin Howitzer impact  ,  I told you I'ma win get back before I blast, I said I'll do it again wit' a grin Like I'm Bakugo, turn they soul to ' smoke I'm boutta' pop,  you know I'm boutta' blow up Only need these hands I don't need no  pole Once I get a grip, I might blast yo  dome up and  I want Think I'm addicted to your light  swore I'd never fall again But this don't even feel like falling Gravity can't forget To pull me back to the ground again Patric Patrician. Patricians were considered the upper-class in early Roman society. They controlled the best land and made up the majority of the Roman senate.ian. sorry teacher but i am gay They also needed to pack it box it flip it top it wit a bowtie ribbion stop it because there dogs were eating all the rainbow cookies and pies were filying through the roof. Patricians were considered the upper-class in early Roman society. They controlled the best land and made up the majority of the Roman senate.

6 0
3 years ago
How much does 1 American tank cost on gas for a regular mission? Depending on your answer, I will give you the right amount of p
dem82 [27]
Most of the cars or other vehicles in the United States regularly have tanks that can hold up to 12 gallons worth of gas. The price of gas in not consistent. Sometimes prices are high and sometimes prices are low. Just like to day the price of a gallon is worth $2.2. But in an average, gas costs $3.8 per gallons. Therefore, on a regular basis a standard American which can hold 12 gallons costs $46.2.
5 0
3 years ago
PLEASE HELP<br>what are some benefits of using graphic on web page?​
qwelly [4]

Images help tell a story where describing with words is either too lengthy, or practically impossible. For instance, you could have a map of a location and various arrows and other markings to describe movements of troops during a battle of the civil war. This is one example of many that you could have as an image on a website. Describing the troop movements with words only may be really difficult to do. Plus many people are visually oriented learners, so they benefit with images every now and then. Of course, it's best not to overdo things and overload the site with too many images. A nice balance is needed.

5 0
2 years ago
Other questions:
  • Lance has three tables in his database he wants to generate a report to show the data from the three table so he decides to link
    6·2 answers
  • which tag does not display the text in the browser window and makes the sources code mode readable ?​
    6·1 answer
  • What do yo need to do for device manager to display nonpresent devices?
    9·1 answer
  • When does state law require drivers to use their headlights (6)
    11·2 answers
  • A computer lab has two printers. Printer I handles 40% of all the jobs. Its printing time is Exponential with the mean of 2 minu
    8·1 answer
  • Letter Frequency Write a function that will take a string and return a count of each letter in the string. For example, "my dog
    5·1 answer
  • The list method reverse reverses the elements in the list. Define a function named reverse that reverses the elements in its lis
    10·1 answer
  • Help me please I’m failing
    11·1 answer
  • These days, a digital signature is just as legitimate and trusted as an old-fashioned John Hancock on paper.
    9·1 answer
  • Circuit pruning occurs only before puberty.<br> O True<br> O False
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!