8. What is the correct syntax of declaring arrays of pointers of integers of size 10

in C++?

a) int arr = new int[10];

b) int **arr = new int*[10];

c) int *arr = new int[10];

d) int *arr = new int [10];

Answers

Answer 1

Answer:

(b) int **arr = new int*[10];

Explanation:

An array of pointers is simply an array containing pointer variables. These pointer variables may be Strings, integers, doubles e.t.c

To declare such arrays of pointers, for example, of integers, in C++, we write;

int **arr = new int*[10];

The left hand side of the above code snippet i.e int ** arr, suggests that arr is a pointer that points to a pointer to integer variables.

The right hand side i.e new int* [10], creates a new array of 10 integer pointer variables.

Now, put together, int **arr = new int*[10] will create/declare an array of pointers of integers having a size of 10.


Related Questions

Check
Which of these tasks can be accomplished when the drop-down menu of the Bullets icon is clicked? Check all that
apply.

Answers

Which of these tasks can be accomplished when the drop-down menu of the Bullets icon is clicked? Check all that

apply.

Indent the ideas in the bulleted list.

Change the number level of the list.

Choose the bullet to be used in the list.

Define the new bullet to be used in the list.

Pick the number format to be used in the list.

Answer:

Choose the bullet to be used in the list.

Define the new bullet to be used in the list.

Explanation:

When using Microsoft Word text editor, when the drop-down menu of the bullet icon is clicked, the following tasks can be accomplished which are to choose the bullet to be used in the list and define the new bullet to be used in the list.

A bullet is used to identify or list out important items, sometimes in ascending order, and are used to organize information to make the important points easy to pick out.

Answer:

Choose the bullet to be used in the list.

Define the new bullet to be used in the list.

Explanation:

.

What is Game Theory?
Study of strategic decision making
elements of support for effective support of a system
the imitation of the operation of real-world process or system over time
decentralized communications model

Answers

Answer:

the branch of mathematics concerned with the analysis of strategies for dealing with competitive situations where the outcome of a participant's choice of action depends critically on the actions of other participants

Explanation:

In simple terms Game theory is the study of how and why people make decisions.

Which type of cryptographic algorithm takes an input string of any length, and returns a string of any requested variable length?

Answers

Answer:

The correct solution is "Sponge ".

Explanation:

The method of transforming data into unreadable text is synonymous with cryptography, as well as vice-versa.The sponge configuration throughout cryptography seems to be a method of thought, based on a specific-length possible combination as well as a formatting law, which constructs a mechanism connecting variable-length information through variable-length release.

What are three purposes of the Media Creation Tool application?

Answers

Answer:

The first purpose fo the Media Creation Tool Application is:

to enable the creation or building the Windows 10 installation media. The Windows 10 installation media is not Windows 10It can also be used to repair an existing installationIt is used to make a bootable USB memory stick for use in the installation of Windows 10

Cheers!

The three purposes of the Media Creation Tool application are:

To stored data.To download a Windows 10 install file.To reinstall Windows 10.

What is the purpose of the media creation tool?

The Media Creation Tool is known to be an application that helps a person to be able to download a Windows 10 install file.

Here the person can get this file and put it into a flash drive or a DVD and then one can save it  so that one can be able to still use it to reinstall the Windows 10. It is known to act as a kind of backup option in case your system has malfunctions.

Learn more about Media Creation from

https://brainly.com/question/1114645

When a hardware or software interrupt occurs, the CPU calls________

Answers

Answer:

Operating system

Explanation:

An interrupt is the signal sent to the processor that interrupts the current process. It may be generated by a hardware device or a software program.With each interrupt the CPU hardware does exactly the same thing, which is what enables operating systems to take control of the current user operation.

This is C++
Enter wall height (feet):
12
Enter wall width (feet):
15
Wall area: 180 square feet
(2) Extend to also calculate and output the amount of paint in gallons needed to paint the wall. Assume a gallon of paint covers 350 square feet. Store this value using a const double variable. (2 pts)
Enter wall height (feet):
12
Enter wall width (feet):
15
Wall area: 180 square feet
Paint needed: 0.514286 gallons
(3) Extend to also calculate and output the number of 1 gallon cans needed to paint the wall. Hint: Use a math function to round up to the nearest gallon. (2 pts)
Enter wall height (feet):
12
Enter wall width (feet):
15
Wall area: 180 square feet
Paint needed: 0.514286 gallons
Cans needed: 1 can(s)

Answers

Answer:

#include <cmath>

#include<iostream>

using namespace std;

int main()

{

double height, width;

cout<<"Enter wall height (feet): ";

cin>>height;

cout<<"Enter wall width (feet):  ";

cin>>width;

//1

double area;

area = width * height;

cout<<"Wall area: "<<area<<" square feet"<<"\n";

//2

const double gallon = area/350.0;

cout<<"Paint needed: "<<gallon<<" gallons"<<"\n";

//3

cout << "Cans needed :" << round(gallon) << " can(s)";  

return 0;

}

Explanation:

This line declares the height and width as double

double height, width;

This line prompts user for height

cout<<"Enter wall height (feet): ";

This line gets user input for height

cin>>height;

This line prompts user for width

cout<<"Enter wall width (feet):  ";

This line gets user input for width

cin>>width;

//1  Question 1 begins here

This line declares area as double

double area;

The line calculates area

area = width * height;

The line prints the calculated area

cout<<"Wall area: "<<area<<" square feet"<<"\n";

//2  Question 2 begins here

This line declares and calculates gallon as a constant double variable

const double gallon = area/350.0;

This line prints the calculated gallon

cout<<"Paint needed: "<<gallon<<" gallons"<<"\n";

//3  Question 3 begins here

This line rounds gallon to nearest whole number and prints the result

cout << "Cans needed :" << round(gallon) << " can(s)";  

What is programming blocks?

Answers

Answer:

In computer programming, a block or code block is a lexical structure of source code which is grouped togethe

Explanation:

A maintenance schedule lists the procedure for defragmenting your hard drive true or false

Answers

I think it's true not sure sorry if it's wrong

Answer:

false

can i has brainliest

Explanation:

The user documents are stored in _______ format.

Answers

The user documents are stored in _______ format.

A. qvd.

B.  qvw

C.  None of the options

D.  qvs.

Answer:

B.  qvw

Explanation:

Given the options available, it can be inferred that the application the question is referring to is called QlikView which is a software application that is used for analytics explanation. This software applications saves documents created in a file extension specifically known as "QVW."

Hence, the right answer is that: in QlikView, the user documents are stored in QVW format.

The user documents are stored in QVW format.

It may well be deduced that perhaps the program referred to something throughout the question would be QlikView, a software platform utilized for analytics explanations or presentations.QVW documents seem to be QlikView layout software consisting incorporate presentations, charts, leading components, load scripts, expressions, as well as workplaces used in information displays.

Thus the above answer is right.

Learn more about the QVW format here:

https://brainly.com/question/10205740

Which of the following are offered by most
professional organizations? Check all of the boxes
that apply.
a code of conduct
access to resources, conferences, and job
boards
help with troubleshooting computer issues
skills validation

Answers

Answer:

1. A code of conduct

2. Access to resources, conferences,and, job boards

4. skills validation

Explanation:

I just answered it

A code of conduct is a collection of regulations describing an individual party's or organization's norms, standards, and duties or right procedures. The correct options are A, B, and D.

What is a code of conduct?

A code of conduct is a collection of regulations describing an individual party's or organization's norms, standards, and duties or right procedures. The most prevalent policy within a company is a code of conduct. This policy outlines the company's beliefs, standards, and moral and ethical expectations for workers and third-party interactions with the firm.

From the given set of options, the options that are offered by most professional organizations are,

A code of conductAccess to resources, conferences, and job boardsSkills validation

Hence, the correct options are A, B, and D.

Learn more about the Code of Conduct here:

https://brainly.com/question/12990307

#SPJ2

Referencing Microsoft Word:1. How can you save a document created using Word 2016 in a PDF format? Explain the process step by step.2. Assuming you are on the home tab, explain which tabs and buttons you would need to select to open a new blank document?3. Assuming you are on the home tab, explain which tabs and buttons you would need to select to add the "Quick Print" icon to the Quick Access Toolbar.4. Assuming you are on the home tab, explain which tabs and buttons you would need to select to add a bibliography to the document.5. Assuming you are on the home tab, explain which tabs and buttons you would need to select to put a picture within your document?6. Assuming you are on the home tab, explain which tabs and buttons you would need to select to change the page orientation to Landscape?7. What is the purpose of the "ribbon"?8. The Help button from previous versions of Office has been replaced by what words and what symbol?

Answers

Answer:

Referencing Microsoft Word:

1. How can you save a document created using Word 2016 in a PDF format? Explain the process step by step.

Step 1: Click on File Tab

Step 2: Click on Save As Button

Step 3: Select File Location for the document

Step 4: Name the document

Step 5: Save type: Select pdf

Step 6: Save

2. Assuming you are on the home tab, explain which tabs and buttons you would need to select to open a new blank document?

Step 1: Click on File Tab

Step 2: Click on New Button

Step 3: Select or Click Blank Document

3. Assuming you are on the home tab, explain which tabs and buttons you would need to select to add the "Quick Print" icon to the Quick Access Toolbar.

Step 1: Click on File Tab

Step 2: Select Options Button

Step 3: Select Quick Access Toolbar

Step 4: Select Quick Print

Step 5: Click on Add

4. Assuming you are on the home tab, explain which tabs and buttons you would need to select to add a bibliography to the document.

Step 1: References Tab

Step 2: Click Bibliography

Step 3: Insert Bibliography or create as required.  

5. Assuming you are on the home tab, explain which tabs and buttons you would need to select to put a picture within your document?

Step 1: Click on File Tab

Step 2: Click the Open Button

Step 3: Click on Library

Step 4: Select Picture Location

Step 5: Select Picture

Step 6: Click Add

6. Assuming you are on the home tab, explain which tabs and buttons you would need to select to change the page orientation to Landscape?

Step 1: Click Layout Tab

Step 2: Select Orientation

Step 3: Click Landscape

7. What is the purpose of the "ribbon"?

The "ribbon" contains the 8 tabs on the Quick Access Toolbox: File, Home, Insert, Page Layout, References, Mailings, Review, and View.  The "ribbon" groups these specific command categories called tabs.

8. The Help button from previous versions of Office has been replaced by what words and what symbol?

It has been replaced with the lightbulb symbol with these words: “Tell me what you want to do…”  And you can also type Alt + Q to get the same help assistance.

Explanation:

The ribbon is a user interface element created by Microsoft and includes the roll of tabs and buttons.  The Ribbon tabs and buttons bring your favorite commands into the open by showing multiple commands grouped in specific categories.

There are eight tabs along on the ribbon: File, Home, Insert, Page Layout, References, Mailings, Review, and View. Each tab relates to different activities that you can carry out when creating a document.  For example, if you want to save a new document, you click on the File tab which takes you to the Save As button where you choose the file location and save as required.

You are configuring two PCs for your network, PC-A is given an IP address of 192.168.1.18 and PC-B is given an IP address of 192.168.1.33. Both PCs receivces a subnet mask of 255.255.255.240A) what is network address of PC-A?B) what is network address of PC-B?C) will these PCs be able to communicate directly wiyh each other?D) what is the highest address that can be given to PC-B that allows it to be on the same network as PC-A ?

Answers

Answer:

Explanation:

a) 192.168.1.16

b) 192.168.1.32

c) No

d) 192.168.1.30

Answer:

It’s somethint

Explanation:

what is the principle that producers are entitled to make more money from a business than they invest

Answers

Answer: profit motive

Explanation: i don’t have and explanation but i just did it on apex and got it right

Prompt the user to input an integer, a double, a character, and a string, storing each into separate variables. Then, output those four values on a single line separated by a space.Enter integer:99Enter double:3.77Enter character:zEnter string:Howdy99 3.77 z Howdyimport java.util.Scanner;public class BasicInput {public static void main(String[] args) {Scanner scnr = new Scanner(System.in);int userInt;double userDouble;// FIXME Define char and string variables similarlySystem.out.println("Enter integer:");userInt = scnr.nextInt();// FIXME (1): Finish reading other items into variables, then output the four values on a single line separated by a space

Answers

Answer:

import java.util.Scanner;

public class BasicInput {

   public static void main(String[] args) {

       //Create an object of the Scanner class

       Scanner scnr = new Scanner(System.in);

       

       //Define int and double variables

       int userInt;

       double userDouble;

       

       //Define char and string variables similarly

       char userChar;

       String userString;

       

       //Prompt the user to enter an integer

      System.out.println("Enter integer:");

       //Store the input in the integer variable

       userInt = scnr.nextInt();

       

       //Prompt the user to enter a double

        System.out.println("Enter double:");

       //Store the input in the double variable

      userDouble = scnr.nextDouble();

       

       //Prompt the user to enter a char

        System.out.println("Enter char:");

       //Store the input in the char variable

      userChar = scnr.next().charAt(0);

       

       //Prompt the user to enter a string

        System.out.println("Enter String:");

       //Store the input in the string variable

      userString = scnr.next();

       

       //Output the four values on a single line

       //separated by a space

       System.out.println(userInt + " " + userDouble + " " + userChar + " " + userString);

       

   }

   

}

Sample Output:

Enter integer:

>>12

Enter double:

>>23

Enter char:

>>s

Enter String:

>>asdasd

12 23.0 s asdasd

Explanation:

The code above has been written in Java. It contains comments explaining every part of the code. Please go through the comments.

Amanda a recently moved into a new home. Everyone has their own tablet, and wants to connect to the same network, no matter where they are in the house. Which type of network is best for Amanda and her family?nd her family recently moved into a new home. Everyone has their own tablet, and wants to connect to the same network, no matter where they are in the house. Which type of network is best for Amanda and her family?

Answers

Answer:

wifi is the best network for all, As it gets in all corners of the house.

A computer has 38 address lines. How many locations in Mega bytes can it address?

Answers

Answer:

The computer can address 34359,738368 megabytes

Explanation:

Given

Address Lines (n) = 38

Required

Determine the number of location it can address

Number of addressable locations (N) in bits is calculated as thus

[tex]N = 2^n.[/tex]

Substitute 38 for n

[tex]N = 2^{38}[/tex]

[tex]N = 274877906944\ bits[/tex]

Next; is to convert from bits to megabytes

Start by converting to bytes

1 bit = 0.125 bytes;

So;

[tex]N = 274877906944 * 0.125\ bytes[/tex]

[tex]N = 34359738368\ bytes[/tex]

Convert from byte to megabyte

[tex]1\ byte = 10^{-6}\ megabyte[/tex]

So;

[tex]N = 34359738368\ * 10^{-6}\ MB[/tex]

[tex]N = 34359,738368\ MB[/tex]

Hence, the computer can address 34359,738368 megabytes

Which section from the article BEST explains why humans could benefit from studying a particular type of extremophile?​

Answers

Answer:

The study of extremophiles provides an understanding of the physicochemical parameters defining life on Earth and may provide insight into how life on Earth originated. The postulations that extreme environmental conditions existed on primitive Earth and that life arose in hot environments have led to the theory.­NASA is studying an extremophile, Deinococcus radiodurans, which is extremely resistant to radiation. This microbe can withstand doses of radiation 500 percent higher than would be lethal to humans.

Hope this helped you!

Explanation:

Multiple Choice
Choose the answer that best answers the question.
Read the following sentence. The underlined phrase is an idiom that uses figurative language. What could this phrase mean?
When you work on your project, you shouldn't bite off more than you can chew by working on too much at one time.
O A Don't talk with food in your mouth.
O B. Don't do more than you can handle.
c. Don't eat too much food,
D. Don't eat someone else's food.

Answers

Answer:

dont do more then you handle

Which of the following is typically used in a flowchart to indicate a decision?
a. square
b. rectangle
c. diamond
d. oval

Answers

Diamond is typically used in a flowchart or indicate a decision.

Decisions in flowcharts are indicated by diamonds.

What are flowcharts?

It is a pictorial or symbolic representation of the processes involved in achieving an aim.

In flowcharts, the following apply:

Ovals represent the beginning or end of a processRectangles represent key steps in the processArrows are used to indicate the flow or direction of the processDiamonds represent decision-making. When one of the available options has to be taken.

More on flowcharts can be found here: https://brainly.com/question/14598590

#SPJ2

Overlay analysis is ____________, taking in data from two or more layers to create a single output layer.

Answers

Explanation:

Overlay analysis is an approach, taking in data from two or more layers to create a single output layer.

For example, if we have a layer of land use and a layer of soil fertility, we can derive from the two layers the percentage of agricultural land developed over fertile soil.

Which of the following is considered data?A. Quantity sold.B. Best customer by month.C. Best selling item by month.D. Worst selling item by month.

Answers

Answer:

A

Explanation:

A.

Which of the following is no longer necessary when you use HTML5 to develop Webpages? Please Hurry This Is For An Assignment due in 15 minutes :>

Answers

Answer:

Installing a third-party plug-in to include video

Explanation:

Order the steps for using the Rules Wizard to create an email rule.

Answers

Answer:

The answer is in the attached file below.

Explanation:

When should the architect begin the analysis?

Answers

Answer:

Right after the end user and the customer finalize the negotiations.

Explanation:

The architect's analysis is extremely important to ensure that a system acts correctly and efficiently. This analysis is carried out together with the implementation of codes and security systems, which will be responsible for the defense of the system. This analysis should begin immediately after the end user and the customer have completed negotiations that define all the requirements and information necessary to start the project.

Mention five specific techniques you can use to improve your written documents.

Answers

Answer:

The answer is below

Explanation:

There are various techniques an individual can use to improve his or her written documents, some of which considered to be specific are:

1. Understand the targeted readers.

2. Do not be ambiguous or avoid ambiguity

3. Always use active voice pattern whenever possible

4. Perform second reading, and edit where necessary

5. Avoid repetition of words too often.

Which of the following best describes how computing devices represent information? A. A computer will either represent information as bits or bytes but not both B. A computer represents data as a byte which is either a 0 or a 1 C. A computer represents data as bits which is either a 0 or a 1 D. A computer represents information as bits which contain 8 bytes.

Answers

Answer:

The Answer is B

Explanation:

The reason the answer is B is because "bytes" are the correct form of storing memory in 0's and 1's.

Using concepts of data representation in a computer, it is found that the correct option is:

C. A computer represents data as bits which is either a 0 or a 1.

-----------------

In computer science, it is a common saying that "everything inside a computer is either a 0 or 1".The unit of measure that only has 0s and 1s is bits.If we load a file, either text or image, all the values at each position on the file are composed by 0's and 1's, for example.Thus, option C is correct.

A similar problem is given at https://brainly.com/question/17399642

When you want to use the current backup of all of the files, which option should be selected?

Answers

Answer:

To use the current backup of all the files, the option to select is Browse for Folders.

This gives you access to select the most current back up with the latest timestamp.

Cheers!

What is a characteristic of maintaining logs in a system? A. Logging prevents security violations, but only deals with passive monitoring. B. Logging provides access control by authenticating user credentials. C. Logging helps an administrator to detect security breaches and vulnerable points in a network

Answers

Answer:

The correct answer is C

Explanation:

When analysed, logs can help to forestall security breaches to a network it can also help to identify and resolve any vulnerabilities within the system.

Due to the number of logs generated daily, it is almost impracticable to constantly monitor all logs generated by the system.

Cheers!

Java Programming home > 1.14: zylab training: Interleaved input/output Н zyBooks catalog Try submitting it for grading (click "Submit mode", then "Submit for grading"). Notice that the test cases fail. The first test case's highlighting indicates that output 3 and newline were not expected. In the second test case, the-5 and newline were not expected 2 Remove the code that echoes the user's input back to the output, and submit again. Now the test cases should all pass 0/2 ACTIVITY 1.14.1: zylab training: Interleaved input/output DoubleNum.java Load default template 1 import java.util.Scanner; 3 public class DoubleNum public static void main(String args) { Scorner sehr = new Scanner(System.in); int x; 7 System.out.println("Enter x: "); 9 - scnr .nextInto: 10 11 System.out.println(); // Student mistakenly is echoing the input to output to match example 12 System.out.println("x doubled is".02 Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed Input values in the first box, then click Run program and observe the programs cutout in the second be Enter program input (optional) of your code requires input values, provide them here Ad Cat

Answers

Answer:

The following are the code to this question:

code:

System.out.println(x);  //use print method to print value.

Explanation:

In the given question, it simplifies or deletes code in the 11th line. This line has a large major statement.  

In the case, the tests fail because only 1 line of output is required by the tester, but two lines are obtained instead.

It's to demonstrate that the input/output or testing requirements function throughout the model.

Describe the functions of ALU, resisters, CU, BIU, Cache and FPU.

Answers

Answer:

ALU :An arithmetic logic unit (ALU) is a digital circuit used to perform calculations and logic operations

Registers:register holds the address of memory where CPU wants to read or write data.

CU:The control unit (CU) is a component of a computer's central processing unit (CPU) that directs the operation of the processor.

BIU:BIU takes care of all data and addresses transfers on the buses for the EU like sending addresses, fetching instructions from the memory, reading data from the ports and the memory as well as writing data to the ports and the memory.

Cache:Cache is used to temporarily hold instructions and data that the CPU is likely to reuse.

FPU:A floating-point unit (FPU, colloquially a math coprocessor) is a part of a computer system specially designed to carry out operations on floating-point numbers.

Explanation:

This is all I can say

Other Questions
Two particles of the element iodine are chemically bound. The two particles compose what?Group of answer choicesa compounda moleculean isotopean atom Now you have to get to work. Your first thought is to have nine members on the team, but management research indicates that nine members would be A commercial jetliner hits an air pocket and drops 264 feet. After climbing 151 feet, it drops another 103 feet. What is its overall vertical change? Find the definition for each of the following root words: Mort, Morph, Plan, Script What effect does exercise have on mental health and stress? (3 sentences) Alpine West, Inc., operates a downhill ski area near Lake Tahoe, California. An all-day, adult ticket can be purchased for $80. Adult customers also can purchase a season pass that entitles the pass holder to ski any day during the season, which typically runs from December 1 through April 30. The season pass is nontransferable, and the $460 price is non refundable. Alpine expects its season pass holders to use their passes equally throughout the season. The company's fiscal year ends on December 31. On November 6, 2013, Jake Lawson purchased a season ticket.Required:a. When should Ski West recognize revenue from the sale of its season passes? b. Prepare the appropriate journal entries that Ski West would record on November 6 and December 31. c. What will be included in the Ski West 2016 income statement and balance sheet related to the sale of the season pass to Jake Lawson? Please Answer I will make you brainiest Could you please also explain I don't get it :( Which equation shows the inverse property of multiplication? 4 + (-4) = 0 -8 + (-3) = -3 + (-8) 2 times one-half = 1 Eight-fifths + 0 = Eight-fifths was the covered wagon still used after the railroad became the popular means of travel the side length of a square measures 2 x+1 and the side lengths of a triangle are 2x, 2x, and 3x+10.The square and triangle have the same perimeter. Find the perimeter What is the measure of each angle? Which cultural feature is located in northwest florida always carry a microscope using both hands Which of the following strategies canbe used to optimize sleepopportunities? A) Use the sleeping quarters for boringwork tasks to help initiate sleep.B) Have at least two hours betweenaerobic exercise and sleep.C) Keep the alarm clock in your view soyou know when to fall asleep.D) Wake up and go to bed at the sametime each day. Against utilitarianism, which of the following authors would object, To maximize utility by imposing burdens on some individuals is to treat all of society like a single person. But society is not like a single person, and so utilitarianism is mistaken. Difference between sensory and motor neurons ??? if you watch my hero academia pls read this i just thought of something kirishima was a natural black head right and he died his hair red and dabi/toya is a natural redhead but he dies his hair black mind explosion The accounts in the ledger of Hickory Furniture Company as of December 31, 2016, are listed in alphabetical order as follows. All accounts have normal balances. The balance of the cash account has been intentionally omitted. I AM MISSING CASH (DEBIT) and Debit TOTAL---onlyAccounts Payable $ 42,880Notes Payable $ 41,000Accounts Receivable 115,430Prepaid Insurance 20,400Cash ?Rent Expense 45,000Common Stock 15,000Retained Earnings 51,000Dividends 22,500Supplies 4,940Fees Earned 746,050Supplies Expense 6,070Insurance Expense 3,100Unearned Rent 13,200Land 41,000Utilities Expense 26,840Miscellaneous Expense 9,900Wages Expense 572,100Prepare an unadjusted trial balance and insert the missing figure for cash. A car drives with a constant speed of 28 miles per hour. How far can it travel in 2 3/4 hours? On January 1, 2022, Ayayai Corporation issued $1,820,000 face value, 6%, 10- year bonds at $1,692,171. This price resulted in an effective-interest rate of 7% on the bonds. Ayayai uses the effective-interest method to amortize bond premium or discount. The bonds pay annual interest January 1.Prepare the journal entries to record the following transactions. (Round answers to 0 decimal places, e.g. 125. Credit account titles are automatically indented when amount is entered. Do not indent manually.)1. The issuance of the bonds on January 1, 2022.2. Accrual of interest and amortization of thepremium on December 31, 2022.3. The payment of interest on January 1, 2023.4. Accrual of interest and amortization of thepremium on December 31, 2023.