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
vlada-n [284]
3 years ago
13

You defined a book data type.

Computers and Technology
1 answer:
tensa zangetsu [6.8K]3 years ago
4 0

Answer:

myBook = book()

Explanation:

Correct answer edge 2020

You might be interested in
Which of the following are steps your employer can take to protect you from
lawyer [7]

Answer:

An employer with workers exposed to high temperatures should establish a complete heat illness prevention program. Provide workers with water, rest and shade. Allow new or returning workers to gradually increase workloads and take more frequent breaks as they acclimatize, or build a tolerance for working in the heat.

5 0
3 years ago
Convert each of the following 8-bit numbers to hexadecimal and then to octal a) 10011101 b) 00010101 c) 11100110 d) 01101001
EastWind [94]
<h2>Answer:</h2>

a) 10011101₂ = 9D₁₆ or 235₈

b) 00010101₂ = 15₁₆ or 025₈

c) 11100110₂ = E6₁₆ or 346₈

d) 01101001₂ = 69₁₆ or 151₈

<h2>Explanation:</h2>

An hexadecimal is a group of 4bits while an octal is a group of 3 bits. They are represented in the table below;

<em>Table for conversion;</em>

Octal   =>    binary

0         =>     000

1          =>     001

2          =>    010

3          =>    011

4          =>    100

5          =>    101

6          =>    110

7          =>    111

Hexadecimal   => binary

0                      =>     0000

1                       =>     0001

2                      =>     0010

3                      =>     0011

4                      =>     0100

5                      =>     0101

6                      =>     0110

7                      =>     0111

8                      =>     1000

9                      =>     1001

A                      =>    1010

B                      =>    1011

C                      =>    1100

D                      =>    1101

E                      =>    1110

F                      =>    1111

(a)

(i) <u>Convert 10011101 to hexadecimal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 4s as follows;

1001   1101

<u>Step 2: </u> Convert each of the groups into its equivalent hexadecimal using the table above;

1001 = 9

1101 = D

<u>Step 3: </u> Put them together;

1001 1101₂ = 9D₁₆

(ii) <u>Convert 10011101 to octal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 3s as follows;

10  011  101

<u>Step 2: </u> The last group (10) in the result of step 1 above has only 2 bits. Therefore, add zero to its left to make it 3 bits as follows;

010  011  101

<u>Step 3: </u> Convert each of the groups into its equivalent octal using the table above;

010 = 2

011 = 3

101 = 5

<u>Step 4: </u> Put them together;

10 011 101₂ = 235₈

(b)

(i) <u>Convert 00010101 to hexadecimal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 4s as follows;

0001   0101

<u>Step 2: </u> Convert each of the groups into its equivalent hexadecimal using the table above;

0001 = 1

0101 = 5

<u>Step 3: </u> Put them together;

0001 0101₂ = 15₁₆

(ii) <u>Convert 00010101 to octal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 3s as follows;

00  010  101

<u>Step 2: </u> The last group (00) in the result of step 1 above has only 2 bits. Therefore, add zero to its left to make it 3 bits as follows;

000  010  101

<u>Step 3: </u> Convert each of the groups into its equivalent octal using the table above;

000 = 0

010 = 2

101 = 5

<u>Step 4: </u> Put them together;

00 010 101₂ = 025₈

(c)

(i) <u>Convert 11100110 to hexadecimal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 4s as follows;

1110  0110

<u>Step 2: </u> Convert each of the groups into its equivalent hexadecimal using the table above;

1110 = E

0110 = 6

<u>Step 3: </u> Put them together;

1110 0110₂ = E6₁₆

(ii) <u>Convert 11100110 to octal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 3s as follows;

11 100 110

<u>Step 2: </u> The last group (11) in the result of step 1 above has only 2 bits. Therefore, add zero to its left to make it 3 bits as follows;

011 100 110

<u>Step 3: </u> Convert each of the groups into its equivalent octal using the table above;

011 = 3

100 = 4

110 = 6

<u>Step 4: </u> Put them together;

11 100 110₂ = 346₈

(d)

(i) <u>Convert 01101001 to hexadecimal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 4s as follows;

0110 1001

<u>Step 2: </u> Convert each of the groups into its equivalent hexadecimal using the table above;

0110 = 6

1001 = 9

<u>Step 3: </u> Put them together;

0110 1001₂ = 69₁₆

(ii) <u>Convert 01101001 to octal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 3s as follows;

01 101 001

<u>Step 2: </u> The last group (01) in the result of step 1 above has only 2 bits. Therefore, add zero to its left to make it 3 bits as follows;

001 101 001

<u>Step 3: </u> Convert each of the groups into its equivalent octal using the table above;

001 = 1

101 = 5

001 = 1

<u>Step 4: </u> Put them together;

01 101 001₂ = 151₈

7 0
4 years ago
5. Give the output of the following:
VladimirAG [237]

Answer:

B

Explanation:

You can run this easily in an online python environment such as repl.it.

5 0
3 years ago
Homework Assignment 2 1. Consider the skeletal definition for a class called circle given as: public class Circle { private int
jek_recluse [69]

Answer:

See explaination

Explanation:

public class Circle {

private double radius;

private Location location;

private String name;

/* (non-Javadoc)

* atsee java.lang.Object#hashCode()

*/

atOverride

public int hashCode() {

final int prime = 31;

int result = 1;

result = prime * result + ((location == null) ? 0 : location.hashCode());

long temp;

temp = Double.doubleToLongBits(radius);

result = prime * result + (int) (temp ^ (temp >>> 32));

return result;

}

/* (non-Javadoc)

* atsee java.lang.Object#equals(java.lang.Object)

*/

atOverride

public boolean equals(Object obj) {

if (this == obj)

return true;

if (obj == null)

return false;

if (getClass() != obj.getClass())

return false;

Circle other = (Circle) obj;

if (location == null) {

if (other.location != null)

return false;

} else if (!location.equals(other.location))

return false;

if (Double.doubleToLongBits(radius) != Double.doubleToLongBits(other.radius))

return false;

return true;

}

NOTE: Replace all the "at" within the program with the at symbol ie shift 2.

3 0
3 years ago
Given two strings s1 and s2 of same length.Create a new string consisting of the last character of s1 followed by the last chara
Taya2010 [7]

The answer & explanation for this question is given in the attachment below.

6 0
4 years ago
Other questions:
  • By default, windows active directory creates __________ user accounts when a new domain is created
    8·1 answer
  • The Internet is a hierarchical structure linking different levels of service providers whose millions of devices supply all the
    8·1 answer
  • What does the hot end of a 3D printer do?
    11·1 answer
  • What is the default file extension for a document created in Word 2016​
    13·1 answer
  • Identify which statement explains why a programmer would break a logic problem into steps.
    13·2 answers
  • Using ________, GoPro encourages its millions of customers to submit their best content to the GoPro website to earn rewards and
    13·1 answer
  • Help me with coding if ur right i will help u : )
    6·1 answer
  • Select all that apply to Enums: Group of answer choices While mainly a readability feature, we can technically use Enum to do th
    11·1 answer
  • A _____ diagram is used to identify causes to a problem.
    6·1 answer
  • Q5: what is the difference between a spreadsheet and a relational database? when would you have to use a relational database ins
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!