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
Svet_ta [14]
4 years ago
13

Largest. Write an algorithm that read 5 distinct integers and displays the largest value. Assume the input values are distinct i

ntegers. ISBN. The International Standard Book Number (ISBN) is a 10-digit code that uniquely specifies a book. The rightmost digit is a checksum digit that can be uniquely determined from the other 9 digits in the following manner: Multiply the first digit by 10, the second by 9, the third by 8, and so on, down to the ninth digit by 2. Add the values together. Divide the sum by 11. What is the remainder
Mathematics
1 answer:
Lorico [155]4 years ago
5 0

Answer:

Largest Number Algorithm

Input n1,n2,n3,b4,n5

if n1>=n2 and n1>=n3 and n1>=n4 and n1>=n5

Print n1 + "is the largest"

else if n2>=n1 and n2>=n3 and n2>=n4 and n2>=n5

Print n2 + "is the largest"

else n3>=n1 and n3>=n2 and n3>=n4 and n3>=n5

Print n3 + "is the largest"

else n4>=n1 and n4>=n2 and n4>=n3 and n4>=n5

Print n4 + "is the largest"

else

Print n5 + "is the largest"

End if

End

The remainder of a valid ISBN number is 0

ISBN Algorithm

input isbnnum

Length = Length(isbnnum)

if Length != 10 then

return false;

end if

Checksum = 0

kounter = 0

do

Num = isbnnum[kounter] - '0'

if 0 > Num or 9 < Num then

return false

end if

Checksum = Checksum + (Num * (10 - kounter))

kounter = kounter + 1

while(kounter < 9)

lastnum = isbnnum[9]

if lastnum != 'X' and (lastnum < '0' or lastnum > '9') then

return false;

end if

if lastnum == 'X' then

Checksum = Checksum + 10

else

Checksum = Checksum + (lastnum - '0')

end if

if Checksum % 11 == 0 then

Print "Checksum is "

Print Checksum

Print "Remainder is"

Print Checksum % 11

Step-by-step explanation:

The first algorithm determines the largest of 5 numbers

It first accepts input for 5 numbers named n1 to n5

Then it checks one after the other, the largest of the 5 numbers

The second algorithm determines an ISBN Number

1 : This line takes input for ISBN number in variable isbnnum

2 : This line computes the length of variable isbnnum

3: This line checks if the length of the isbnnum is equal to 10

4: If the length is not equal to 10, the algorithm stops execution

6,7: These lines initialise the variable checksum and kounter to 0

8 to 15: These lines compute the checksum using an iterative do loop statement

16: This line saves the last character of variable isbnnum to variable lastnu

17,18,19: These lines checks is lastnum is not X and it is not a number, the algorithm is stops execution of true

20 to 24: These lines add or remove the last character from the checksum

25 to 27: These lines check if the checksum can be divided by 11. If yes, the checksum is printed

28,29: These lines print the remainder, which is 0.

You might be interested in
Which function could be represented by the graph on the coordinate plane? f(x) = (x – 8)2 6 f(x) = (x 8)2 6 f(x) = (x 8)2 – 6 f(
hjlf

Considering it's vertex, the quadratic equation that could be represented on the plane is given as follows:

f(x) = (x - 8)² - 6.

<h3>What is the equation of a parabola given it’s vertex?</h3>

The equation of a quadratic function, of vertex (h,k), is given by:

y = a(x - h)² + k

In which a is the leading coefficient.

Researching the problem on the internet, it is found that the given graph has vertex at (8,-6), hence <u>h = 8, k = -6 and considering a = 1</u> the equation is given as follows:

f(x) = (x - 8)² - 6.

More can be learned about the vertex of a quadratic equation at brainly.com/question/24737967

#SPJ4

7 0
2 years ago
Please help , this will really help my grade!!!
Sauron [17]

Step-by-step explanation:

Because 3x+8 is not equal to 3x-5

3x cancel out for both side and +8 is not equal to -5

3 0
4 years ago
Read 2 more answers
Which system of linear inequalities is graphed?
SIZIF [17.4K]

Answer:

A) {x < −2

{y ≤ −x − 2

Step-by-step explanation:

The first step is to treat these inequalities as Slope-Intercept equations, then graph them according to what you know about the <em>rate</em><em> </em><em>of </em><em>changes</em><em> </em>[<em>slopes</em>] of the lines. Then insert the inequality symbols later and figure out which line they get, based on their symbols:

Dashed Line → >, <

Solid Line → ≥, ≤

x < -2is the vertical line with a <em>less</em><em> </em><em>than</em><em> </em>sign, so it gets the <em>dashed</em><em> </em><em>line</em>,<em> </em>whereas the other line has a <em>less</em><em> </em><em>than</em><em> </em><em>or</em><em> </em><em>equal to</em><em> </em>sign, so this line gets the solid line.

I am joyous to assist you anytime.

6 0
4 years ago
Find the area of the composite figure<br><br>​
strojnjashka [21]

Answer:

84 square inches

Step-by-step explanation:

7 0
3 years ago
I need someone's help.. I need someone to go on this website and do some math for me... I can send you the login and password in
devlian [24]
Um , sorry to break it to you but ..... we cant just do that for you . If you have the login and password why cant you do it 

3 0
3 years ago
Other questions:
  • The sales price of an LCD TV is $280, representing 30% off the regular price. What is the original price?
    13·1 answer
  • Oose the situation which would best be modeled by an exponential decay function.
    15·1 answer
  • Factor these expressions into an equivalent form.
    8·2 answers
  • 12. find a side length, round to the nearest tenth if necessary
    10·1 answer
  • If events A and B are mutually exclusive, P(A or B) = 0.5, and P(B) = 0.3; then what is P(A)?
    8·1 answer
  • Which function table is correct for the rule y=x/2+4. There is a third answer that i was unable to fit in and it ses, Input (x)
    13·2 answers
  • Can u slove this plz​
    8·1 answer
  • *EXTRA POINTS ASAP*
    14·1 answer
  • A factory inspector found flaws in 3 out of 18 wooden boxes what is the experimental probability that the next wooden box will b
    14·1 answer
  • What is the solution for z?<br> 24=z/0.6?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!