The following question is based on the following incomplete declaration of the class BoundedIntArray and its constructor definitions.

A BoundedintArray represents an indexed list of integers. In a BoundedIntArray the user can specify a size, in which case the indices range from 0 to size - 1. The user can also specify the lowest index, low, in which case the indices can range from low to low + size - 1.

public class BoundedIntArray
{

private int[] myItems; // storage for the list
private int myLowIndex; // lowest index
public BoundedIntArray(int size)
{

myItems = new int[size];
myLowIndex = 0;
}
public BoundedIntArray(int size, int low)
{
myItems = new int[size];
myLowIndex = low;
}
// other methods not shown
}
Consider the following statements.

BoundedIntArray arrl = new BoundedIntArray(100, 5);
BoundedIntArray arr2 = new BoundedIntArray(100);
Which of the following best describes arrl and arr2 after these statements?

a.
arrl and arr2 both represent lists of integers indexed from 0 to 99.
arrl and arr2 both represent lists of integers indexed from 0 to 99 . ,

b.
arrl and arr2 both represent lists of integers indexed from 5 to 104.
arrl , and, arr2 , , both represent lists of integers indexed from, 5 , to, 104, .,

c.
arrl represents a list of integers indexed from 0 to 104, and arr2 represents a list of integers indexed from 0 to 99.
arrl , represents a list of integers indexed from, 0 , to, 104, , and, arr2 , represents a list of integers indexed from, 0 , to, 99, ., ,

d.
arrl represents a list of integers indexed from 5 to 99, and arr2 represents a list of integers indexed from 0 to 99.
arrl represents a list of integers indexed from 5 to 99 , and arr2 represents a list of integers indexed from 0 to 99 . ,

Answers

Answer 1

Answer:

d.

Explanation:

Using the Java code provided, the creation of the BoundedIntArray objects would be that arrl represents a list of integers indexed from 5 to 99, and arr2 represents a list of integers indexed from 0 to 99. This is because arr1 is passing two arguments when it is being created, the first indicates the array size while the second indicates the lowest index. Since it passes two arguments it overrides the constructor and uses the constructor with two parameters. arr2 only passes one argument so it uses the original constructor which automatically sets the lowest index to 0.

Answer 2

The correct choice in this question is "arr1 is an array of numbers indexed from 5 to 104, while arr2 is an array of integers indexed from 0 to 99".

Array number:

arr1 is for numbers 5 to 104, whereas arr2 is for numbers 0 to 99.Since the lowest index in arr1 is transmitted, it should be 5, and the array size should be 100. The index of the last member inside an array is also (size-1) since the array's lowest index is inclusive.Furthermore, arr2 is for 0 to 99, so because size, which would be 100, if passed, the lowest index is not. As a result, the lowest index by default is 0.

Find out more about the Array here:

brainly.com/question/13107940


Related Questions

Suppose you are working as an administrative assistant at a small law firm. Your boss has asked you to send an invitation out to all employees about the upcoming holiday party. You would like to spruce up the invitation with a few festive images and a fancy border. Which file format would allow you to create a visually appealing invitation that can easily be e-mailed?

JPEG

PDF

SVG

TIFF

Answers

Answer:

PDF

Explanation:

Just did the assignment egde 2021

Answer:

It is B: PDF, as shown in the picture below

If not cleared out, log files can eventually consume a large amount of data, sometimes filling a drive to its capacity. If the log files are on the same partition as the operating system, this could potentially bring down a Linux computer. What directories (or mount points) SHOULD be configured on its own partition to prevent this from happening?

Answers

Answer:

/var

Explanation:

The /var subdirectory contains files to which the system writes data during the course of its operation. Hence, since it serves as a system directory, it would prevent log files from consuming a large amount of data.

Answer:

/var

Explanation:

Hope this helps

Define an application program and give three of it's uses​

Answers

Answer:

please give me brainlist and follow

Explanation:

Examples of an application include a word processor, a spreadsheet program, an accounting application, a web browser, an email client, a media player, a console game, or a photo editor. The collective noun application software refers to all applications collectively.

what is work immersion and its nature​

Answers

Work Immersion refers to the subject of the Senior High School Curriculum, which involves hands-on experience or work simulation in which learners can apply their competencies and acquired knowledge relevant to their track.

Write a client program ClientSorting2 and in the main() method: 1. Write a modified version of the selection sort algorithm (SelectionSorter()) that sorts an array of 23 strings (alphabetically) rather than one of integer values. Print the array before it is sorted in the main() method, then after it is sorted in SelectionSorter().

Answers

Answer:

The program in Java is as follows:

import java.util.*;

public class Main{

 public static void SelectionSorter(String[] my_array){

     System.out.print("\nAfter sort: ");

     for (int ind=0; ind < 22; ind++ ){

         int min = ind;

         for (int k=ind+1; k < 23; k++ )

         if (my_array[k].compareTo(my_array[min] ) < 0 ){ min = k;  }

         String temp = my_array[ind];

         my_array[ind] = my_array[min];

         my_array[min] = temp;    }

   for (int j=0; j < 23; j++){   System.out.print(my_array[j]+" ");}

    }

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 String [] myarray = new String [23];

 for(int i= 0;i<23;i++){ myarray[i] = input.nextLine();  }

 System.out.print("Before sort: ");

 for ( int j=0; j < 23; j++ ){        System.out.print(myarray[j]+" ");    }

 SelectionSorter(myarray);

}

}

Explanation:

This defines the function

 public static void SelectionSorter(String[] my_array){

This prints the header for After sort

     System.out.print("\nAfter sort: ");

This iterates through the array

     for (int ind=0; ind < 22; ind++ ){

This initializes the minimum index to the current index

         int min = ind;

This iterates from current index to the last index of the array

         for (int k=ind+1; k < 23; k++ )

This compares the current array element with another

         if (my_array[k].compareTo(my_array[min] ) < 0 ){ min = k;  }

If the next array element is smaller than the current, the elements are swapped

         String temp = my_array[ind];

         my_array[ind] = my_array[min];

         my_array[min] = temp;    }

This iterates through the sorted array and print each array element

   for (int j=0; j < 23; j++){   System.out.print(my_array[j]+" ");}

    }

The main begins here

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

This declares the array

 String [] myarray = new String [23];

This gets input for the array elements

 for(int i= 0;i<23;i++){ myarray[i] = input.nextLine();  }

This prints the header Before sort

 System.out.print("Before sort: ");

This iterates through the array elements and print them unsorted

 for ( int j=0; j < 23; j++ ){        System.out.print(myarray[j]+" ");    }

This calls the function to sort the array

 SelectionSorter(myarray);

}

}

Given a number count the total number of digits in a number

Answers

Answer:

round up the log of the number

Explanation:

The ¹⁰log of a number gives you the number of digits if you round it up.

Which of the following will display a string whose address is in the dx register: a.
mov ah, 9h
int 21h

b.
mov ah, 9h
int 22h

c.
mov ah, 0h
int 21h

d.
None of these

e.
mov ah, 2h
int 20h​

Answers

Answer:

a)

Explanation:

Function 9 of interrupt 21h is display string.

Select the correct answer.
Which graphic file format is used for commercial purposes?
OA.
TIFF
B.
GIF
C. JPG
OD.
PNG
O E.
BMP
Dat

Answers

Answer:

png or jpg

Explanation:

Your organization, which sells manufacturing parts to companies in 17 different countries, is in the process of migrating your inventory database to the cloud. This database stores raw data on available inventory at all of your company's warehouses globally. The database will be accessible from multiple cloud-based servers that reside on your cloud provider's hardware located in three regions around the world. Each redundant database will contain a fully synchronized copy of all data to accelerate customer access to the information, regardless of the customer's geographical location.What database trend is your company implementing

Answers

Answer:

Disributed database

Explanation:

A distributed database stores data on multiple servers sometimes placed in distinct geographical locations.

whats the most popular social networking in the philippines?

Answers

Y o u t u b e

It wont let me say the word above

Describe how data is shared by functions in a procedure- oriented program​

Answers

In procedure oriented program many important data items are placed as global so that they can access by all the functions. Each function may have its own local data. Global data are more vulnerable to an inadvertent change by a function.

Which of the following best describes the safety of blogging

Answers

we need the options

Generally safe, but there may be some privacy and security concerns. Therefore option B is correct.

While blogging can offer a relatively safe platform for expressing ideas and connecting with an audience, it is not entirely risk-free.

Privacy and security concerns can arise, especially when bloggers share personal information or discuss sensitive topics.

Cybersecurity threats, such as hacking or data breaches, can also compromise a blogger's personal information or their readers' data.

Additionally, bloggers should be mindful of online harassment and potential legal issues related to content ownership or copyright infringement.

Being aware of these risks and implementing best practices for online safety can help ensure a more secure and enjoyable blogging experience.

Therefore option B is correct.

Know more about Cybersecurity:

https://brainly.com/question/31928819

Your question is incomplete, but most probably your full question was.

Which of the following best describes the safety of blogging?

A. Completely safe, with no risks involved.

B. Generally safe, but there may be some privacy and security concerns.

C. Moderately safe, but potential risks exist, especially with sensitive topics.

D. Highly unsafe, with significant risks to personal information and security.

g Write a function named vowels that has one parameter and will return two values. Here is how the function works: Use a while loop to determine if the parameter is greater than 1. If it is not greater than 1, do the following: Display a message to the user saying the value must be greater than 1 and to try again. Prompt the user to enter how many numbers there will be. Use a for loop that will use the parameter to repeat the correct number of times (if the parameter is 10, the loop should repeat 10 times). Within this for loop, do the following: Generate a random integer between 65 and 90 Convert this integer to is equivalent capital letter character by using the chr function. If num is the variable with this integer, the conversion is done like this: ch

Answers

10-20-100.40 = my bin =nice

Write a program that asks for the user's name, phone number, and address. The program then saves/write all information in a data file (each information in one line) named list.txt. Finally, the program reads the information from the file and displays it on the screen in the following format: Name: User's Name Phone Number: User's Phone Number Address: User's Street Address User's City, State, and Zip Code g

Answers

Answer:

Amazon prime

Explanation:

How many outcomes are possible in this control structure?
forever
if
is A button pressed then
set background image to
else
set background image to

Answers

Answer:

In the given control structure, there are two possible outcomes:

1) If the condition "Is A button pressed?" evaluates to true, then the background image will be set to a specific value.

2) If the condition "Is A button pressed?" evaluates to false, then the background image will be set to another value.

Therefore, there are two possible outcomes in this control structure.

Hope this helps!

Just press a to set up your background

match the following Microsoft Windows 7 ​

Answers

Answer:

Explanation:  will be still function but Microsoft will no longer provide the following: Technical support for any issues

At the beginning of the semester, we studied partially filled arrays. This is when the number of elements stored may be less than the maximum number of elements allowed. There are two different ways to keep track of partially filled arrays: 1) use a variable for the numberElements or 2) use a sentinel (terminating} value at the end of elements (remember c-strings?). In the code below, please fill in the details for reading the values into the an array that uses a sentinel value of -1. Complete the showArray function as well.
#include
using namespace std;
void showArray(int array[]);
// ToDo: Code showArray function with one array parameter
int main()
{
const int MAX_SIZE=16;
int array[MAX_SIZE]; // store positive values, using -1 to end the values.
cout <<"Enter up to " << MAX_SIZE-1 << " positive whole numbers, use -1 to stop\n";
//To do: Read the int values and save them in the static array variable.
// When the user enters -1 or the array has no more room, leave the loop..
//To do: store -1 at the end of elements in the array
// Show array function
showArray(array);
return 0;
}
// To do: print out for the array
void showArray(int array[])
{
}

Answers

Answer:

Complete the main as follows:

int num;

cin>>num;

int i = 0;

while(num!=-1 && i <16){

array[i] = num;

cin>>num;

i++;  }

array[i+1] = -1;

The showArray() as follows:

int i =0;

while(array[i]!=0){

   cout<<array[i]<<" ";

   i++;

}

Explanation:

See attachment for complete program where comments are used to explain difficult lines

In "PUBATTLEGROUNDS” what is the name of the Military Base island?

Answers

Answer:

Erangel

Explanation:

Answer:

Erangel

Explanation:

The Military Base is located on the main map known as Erangel. Erangel is the original map in the game and features various landmarks and areas, including the Military Base.

The Military Base is a high-risk area with a significant amount of loot, making it an attractive drop location for players looking for strong weapons and equipment. It is situated on the southern coast of Erangel and is known for its large buildings, warehouses, and military-themed structures.

The Military Base is a popular destination for intense early-game fights due to its high loot density and potential for player encounters.

Hope this helps!

Activity No.5
Project Implementation

Based on the Community Based Results, proposed programs/project to be implemented in your barangay/community
I. Title

II Project Proponents

III Implementing Proponents

IV Project Duration

V Objectives of the Project

VI Project Description

VII Methodology

VIIIDetailed Budgetary Requirements

IX Gantt Chart/ Detailed schedule of activities

Answers

In the activity related to Project Implementation, the following components are listed:

I. Title: This refers to the name or title given to the proposed program or project to be implemented in the barangay/community.

II. Project Proponents: These are the individuals or groups who are responsible for initiating and advocating for the project. They may include community leaders, organizations, or individuals involved in the project.

III. Implementing Proponents: These are the parties or organizations who will be responsible for executing and implementing the project on the ground. They may include government agencies, non-profit organizations, or community-based organizations.

IV. Project Duration: This refers to the estimated timeframe or duration within which the project is expected to be completed. It helps in setting deadlines and managing the project timeline.

V. Objectives of the Project: These are the specific goals or outcomes that the project aims to achieve. They define the purpose and desired results of the project.

VI. Project Description: This section provides a detailed explanation and overview of the project, including its background, context, and scope.

VII. Methodology: This outlines the approach, methods, and strategies that will be used to implement the project. It may include activities, processes, and resources required for successful project execution.

VIII. Detailed Budgetary Requirements: This section provides a comprehensive breakdown of the financial resources needed to implement the project. It includes estimates of costs for personnel, materials, equipment, services, and other relevant expenses.

IX. Gantt Chart/Detailed Schedule of Activities: This visual representation or detailed schedule outlines the specific activities, tasks, and milestones of the project, along with their respective timelines and dependencies.

These components collectively form a framework for planning and implementing a project, ensuring that all necessary aspects are addressed and accounted for during the execution phase.

For more questions on barangay, click on:

https://brainly.com/question/31534740

#SPJ8

How does social network use message to entertain?

Answers

Answer:

Explanation:

Social Network allows for easy creation of large groups of people that have the same tastes or are looking for the same thing. This allows for easy ways to entertain by providing what these individuals are looking for. Whether it is funny pictures, animal videos, news, celebrity videos, etc. Basically this ability to group individuals together by taste is what allows social networks to entertain through mass messaging in a way that is effective and gets the media in front of huge audiences.

You work for a small company that exports artisan chocolate. Although you measure your products in kilograms, you often get orders in both pounds and ounces. You have decided that rather than have to look up conversions all the time, you could use Python code to take inputs to make conversions between the different units of measurement.
You will write three blocks of code. The first will convert kilograms to pounds and ounces. The second will convert pounds to kilograms and ounces. The third will convert ounces to kilograms and pounds.
The conversions are as follows:
1 kilogram = 35.274 ounces
1 kilogram = 2.20462 pounds
1 pound = 0.453592 kilograms
1 pound = 16 ounces
1 ounce = 0.0283 kilograms
1 ounce = 0.0625 pounds
For the purposes of this activity the template for a function has been provided. You have not yet covered functions in the course, but they are a way of reusing code. Like a Python script, a function can have zero or more parameters. In the code window you will see three functions defined as def convert_kg(value):, def convert_pounds(value):, and def convert_ounces(value):. Each function will have a block showing you where to place your code.

Answers

Answer:

Answered below.

Explanation:

def convert_kg(value){

ounces = value * 35.274

pounds = value * 2.20462

print("Kilograms to ounces: $ounces")

print("Kilograms to pounds: $pounds)

}

def convert_pounds(value){

kg = value * 0.453592

ounce = value * 16

print("pounds to kg; $kg")

print ("pounds to ounce; $ounce")

}

def convert_ounces(value){

kg = value * 0.0283

pounds = value * 0.0625

print ("ounces to kg; $kg")

print ("ounces to pounds; $pounds")

}

You are the IT administrator for a small corporate network. You have just changed the SATA hard disk in the workstation in the Executive Office. Now you need to edit the boot order to make it consistent with office standards. In this lab, your task is to configure the system to boot using devices in the following order: Internal HDD. CD/DVD/CD-RW drive. Onboard NIC. USB storage device. Disable booting from the diskette drive.

Answers

Answer:

this exercise doesn't make sense since I'm in IT

Explanation:

Consider the following two data structures for storing several million words.
I. An array of words, not in any particular order
II. An array of words, sorted in alphabetical order
Which of the following statements most accurately describes the time needed for operations on these data structures?
A. Finding the first word in alphabetical order is faster in I than in II.
B. Inserting a word is faster in II than in I.
C. Finding a given word is faster in II than in I.
D. Finding the longest word is faster in II than in I.

Answers

Answer:

The correct answer is C.

Explanation:

Finding a given word requires the search operation. The search operation is faster in a sorted array compared to an unsorted array. In a sorted array the binary search method is used which runs on logarithmic time while in an unsorted array, there's no other way than linear search which takes O(n) time on the worst case where the required word is not in the array.

The statement which most accurately describes the time needed for operations on these data structures is: C. Finding a given word is faster in II than in I.

What is a binary search?

Binary search can be defined as an efficient algorithm that is designed and developed for searching an element (information) from a sorted list of data, especially by using the run-time complexity of Ο(log n)

Note: n is the total number of elements.

In Computer science, Binary search typically applies the principles of divide and conquer. Thus, to perform a binary search on an array, the array must first be sorted in an alphabetical or ascending order.

In conclusion, the statement which most accurately describes the time needed for operations on these data structures is that, finding a given word is faster in data structure II than in I.

Read more on data structure here: https://brainly.com/question/24268720

Add my epic games account "Lil Carr OXB" and if that not work, then "swish4444"
Or on Xbox "Lil Carr OXB" Thanks.

Answers

Answer:

-_________________________________-

Explanation:

-__________________________________________________________-

Answer:

okExplanation:

Scrabble is a word game in which words are constructed from letter tiles, each letter tile containing a point value. The value of a word is the sum of each tile's points added to any points provided by the word's placement on the game board. Write a program using the given dictionary of letters and point values that takes a word as input and outputs the base total value of the word (before being put onto a board). Ex: If the input is: PYTHON the output is: 14

Answers

Complete question:

Scrabble is a word game in which words are constructed from letter tiles, each letter tile containing a point value. The value of a word is the sum of each tile's points added to any points provided by the word's placement on the game board. Write a program using the given dictionary of letters and point values that takes a word as input and outputs the base total value of the word (before being put onto a board). Ex:  If the input is:  PYTHON

the output is: 14

part of the code:

tile_dict = { 'A': 1, 'B': 3, 'C': 3, 'D': 2, 'E': 1, 'F': 4, 'G': 2, 'H': 4, 'I': 1, 'J': 8,  'K': 5, 'L': 1, 'M': 3, 'N': 1, 'O': 1, 'P': 3, 'Q': 10, 'R': 1, 'S': 1, 'T': 1,  'U': 1, 'V': 4, 'W': 4, 'X': 8, 'Y': 4, 'Z': 10 }

Answer:

Complete the program as thus:

word = input("Word: ").upper()

points = 0

for i in range(len(word)):

   for key, value in tile_dict.items():

       if key == word[i]:

           points+=value

           break

print("Points: "+str(points))

Explanation:

This gets input from the user in capital letters

word = input("Word: ").upper()

This initializes the number of points to 0

points = 0

This iterates through the letters of the input word

for i in range(len(word)):

For every letter, this iterates through the dictionary

   for key, value in tile_dict.items():

This locates each letters

       if key == word[i]:

This adds the point

           points+=value

The inner loop is exited

           break

This prints the total points

print("Points: "+str(points))

Answer:

Here is the exact code, especially if you want it as Zybooks requires

Explanation:

word = input("").upper()

points = 0

for i in range(len(word)):

  for key, value in tile_dict.items():

      if key == word[i]:

          points+=value

          break

print(""+str(points))

Which of the following operating systems would allow a user to add functionality and sell or give away their versions?

Answers

Answer:open source

Explanation: what is's called

Linux is the operating systems would allow a user to add functionality and sell or give away their versions.

What is Linux Operating system?

Linux has been defined as known to be a kind of an an Operating system which is known to be an open-source.  It is one that is compared to Unix-like form of operating system but it is one that is often based on the the use of Linux kernel.

It has been said that to be an operating system kernel that was said to be released in 1991, by Linus Torvalds. Linux is said to be one that is often packaged as a service of a Linux distribution.

Linux has been used in a lot of ways such as the Server OS that is made for web servers, database servers, as well as file servers. They are known to be set up to aid high-volume as well as multithreading applications and also used for a lot of server types.

Therefore, Linux is the operating systems would allow a user to add functionality and sell or give away their versions. Hence, option A is correct.

Learn more about Linux on:

brainly.com/question/12853667

#SPJ2

Which of the following operating systems would allow a user to add functionality and sell or give away their versions?

-Linux

-macOS

-Windows

-UNIX

# change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies
my code produces no output and i cant find why?


coin_change =int(input())

def coin_change(cents):
if cents <= 0:
print( 'Zero cents.')
else:
quarter = cents // 25
dime = (cents % 25) //10
nickle = cents % 25 % 10 // 5
penny = cents % 5



print (coin_change )
# produces no output

Answers

Answer:

Explanation:

The Python code provided was not producing any output because you were never printing out the coin variables that you created. The following code adds the needed print statements using the right singular or plural coin name as needed.

cents = int(input())

 

def coin_change(cents):

   if cents <= 0:

       print('Zero cents.')

   else:

       quarter = cents // 25

       dime = (cents % 25) // 10

       nickle = cents % 25 % 10 // 5

       penny = cents % 5

   if quarter == 0 or quarter > 1:

       print(str(quarter) + " quarters")

   else:

       print(str(quarter) + " quarter")

   if dime == 0 or dime > 1:

       print(str(dime) + " dimes")

   else:

       print(str(dime) + " dime")

   if nickle == 0 or nickle > 1:

       print(str(nickle) + " nickels")

   else:

       print(str(nickle) + " nickel")

   if penny == 0 or penny > 1:

       print(str(penny) + " pennies")

   else:

       print(str(penny) + " penny")

coin_change(cents)

palindrome is a string that reads the same forwards as backwards. Using only a xed number of stacks, and a xed number of int and char variables, write an algorithm to determine if a string is a palindrome. Assume that the string is read from standard input one character at a time. The algorithm should output true or false as appropriate

Answers

Solution :

check_palindrome[tex]$(string)$[/tex]

   lower_[tex]$case$[/tex]_string[tex]$=$[/tex] string[tex]$. to$[/tex]_lower()

   Let stack = new Stack()

   Let queue = new Queue();

   for each character c in lower_case_string:

       stack.push(c);

       queue.enqueue(c);

   let isPalindrome = true;

   while queue is not empty {

       if (queue.remove().equals(stack.pop())) {

           continue;

       } else {

           isPalindrome=false;

           break while loop;

       }

   }

   return isPalindrome

Input = aabb

output = true

input =abcd

output = false

Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8.

Answers

Answer:

Following are the code to this question:

import java.util.*;//import package

public class Main //defining a class

{

public static void main(String[] axc)//main method  

{

double Loan_Amount,years,Annual_Interest_Rate=5.0,Monthly_Interest_Rate,Total_Amount,Monthly_Payment;//defining variables

Scanner ax = new Scanner(System.in);//creating Scanner class object

System.out.print("Enter loan amount:");//print message

Loan_Amount = ax.nextDouble();//input Loan_Amount value

System.out.print("Enter number of years: ");//print message

years= ax.nextInt();//input number of years value

System.out.printf("   %-20s%-20s%-20s\n", "Interest Rate", "Monthly Payment","Total Payment");//print message

while (Annual_Interest_Rate <= 8.0) //use while loop to calculate Interest rate table

{

Monthly_Interest_Rate = Annual_Interest_Rate / 1200;//calculating the interest Rate

Monthly_Payment = Loan_Amount * Monthly_Interest_Rate/(1 - 1 / Math.pow(1 + Monthly_Interest_Rate,years * 12));//calculating monthly payment

Total_Amount = Monthly_Payment * years * 12;//calculating yearly Amount

System.out.printf("\t %-19.3f%-19.2f%-19.2f\n", Annual_Interest_Rate,Monthly_Payment,Total_Amount);//use print meethod to print table

Annual_Interest_Rate = Annual_Interest_Rate + 1.0 / 8;//use Annual_Interest_Rate to increating the yearly Rate

}

}

}

Output:

Please find the attached file.

Explanation:

In this code inside the class, several double variables are declared in which the "Loan_Amount and years" is used for input value from the user-end, and another variable is used for calculating the value.

In this code a while loop is declared that checks the "Annual_Interest_Rate" value and creates the interest rate table which is defined in the image file please find it.

Write a Java program that uses a value-returning method to identify the prime numbers between 2 bounds (input from the user). The method should identify if a number is prime or not. Call it in a loop for all numbers between the 2 bounds and display only prime numbers. Check for errors in input.Note:A number is prime if it is larger than 1 and it is divisible only by 1 and itself(Note: 1 is NOT a prime number)Example:15 is NOT prime because 15 is divisible by 1, 3, 5, and 15; 19 is prime because 19 is divisible only by 1 and 19.

Answers

Answer:

Answered below.

Explanation:

public int[] primeNumbers(int lowBound, int highBound){

if(lowBound < 0 || highBound < 0 || lowBound >= highBound){

System.out.print("invalid inputs");

else if(highBound <= 1){

System.out.print("No prime numbers);

}

else{

int[] nums;

for(int I = lowBound; I <= highBound; I++){

if(isPrime (I)){

nums.add(I);

}

}

return nums;

}

Other Questions
Santa bought an option contract on Telstra shares with an exercise price of $60 and an expiry date of three months. The market price for Telstra shares today is $56.85. The call price is trading at $0.45.Calculate the break-even amount for the call position and draw a fully labelled diagram for both buyer of the option and seller of the option. gold is typically created by ________. magmatic or hydrothermal write a constructor for vector2d that initializes x and y to be the parameters of the constructor. John Michael purchased a surfboard from Surfs Up beach supply store. The label on the surfboard stated: "Surfs Up makes no warranties about the quality of this product." The first time John Michael took the surfboard out on the water, the board broke in half when it hit a small wave. John Michael demanded his money back, claiming that the store had breached the warranty of merchantability by selling him a surfboard that could not be used for normal surfing. The store refused to refund John Michaels money, stating that the label clearly stated there were no warranties on the product. If John Michael sues the store, the court will likely find:a. that the disclaimer on the surfboard was an effective disclaimer of the warranty of merchantability.b. that the disclaimer on the surfboard was not an effective disclaimer of the warranty of fitness for a particular purpose.c. that the disclaimer on the surfboard was an effective disclaimer of the warranty of fitness for a particular purpose.d. that the disclaimer on the surfboard was not an effective disclaimer of the warranty of merchantability. If the interest rate on a loan a business is looking to take is lower than the expected return from an investment that business expects to make with that loan: a rational firm will take out a loan for the investment b. the Federal Reserve will conduct contractionary monetary policy c. a rational firm will not take out a loan for the investment. d. the Federal Reserve will conduct expansionary monetary policy. e. the government will conduct expansionary fiscal policy. (a) Find the derivative y. given: (3 (i) y = (x2+1) arctan x - x; (ii) y = cosh(2.r log r). (3 (b) Using logarithmic differentiation. y=[(C1)+(C2)x]exp(Ax) is the general solution of the second order linear differential equation: (y'') + (-4y') + ( 4y) = 0. Determine A. Let A E A E Rnxn be given. When o(A) represents the spectrum of the matrix A, the condition that Rel>) 0 which satisfies the DME of ATP + PA + 2aP > 0. Show that they are equivalent. A slope that is convex is made of which kind of rocks Which prison film narratives tends to portray incarcerated people as victims of injustice and the underdog? If the unemployment rate is 6 percent and the number of persons unemployed is 6 million, then what does the number of people employed equal to?Unemployment Rate:The unemployment rate can be used as an indicator of how well an economy is doing. For an individual to be recorded as unemployed, the individual must be actively looking for a job. Zimmerman, a California CPA, is amanager with the firm Washington& Darrow, CPA's. Aimmerman isinvolved primarily with taxengagements but also helps out inthe event that someone additionalis needed on a financial statementaudit that the firm is conducting.Zimmerman is neither a member ofthe AICPA or CAlCPA. IsZimmerman bound by AICPApronouncements?Darrow is a CPA, but not a member of the AICPA orCalCPA. Is she bound by AICPA pronouncements?a. No. Only members of the AICPAmust follow AICPApronouncements.b. Yes. In many instances Californialicensees must adhere to AICPApronouncements, whether or notthey are members of the AICPA.c. Only if she issues financialstatements.d. none of the above A psychiatrist is interested in finding a 95% confidence interval for the tics per hour exhibited by children with Tourette syndrome. The data below show the tics in an observed hour for 10 randomly selected children with Tourette syndrome. Round answers to 3 decimal places where possible. 11 10 11 10 11 4 6 7 12 11 a. To compute the confidence interval use a ____ distribution. b. With 95% confidence the population mean number of tics per hour that children with Tourette syndrome exhibit is between ____and____.c.If many groups of 10 randomly selected children with Tourette syndrome are observed, then percent of a different confidence interval would be produced from each group. About ______these confidence intervals will contain the true population mean number of tics per hour and about_____ percent will not contain the true population mean number of tics per hour. Consider the function f(x) = x In (2+1). Interpolate f(x) by a second order polynomial on equidistant nodes on (0,1). Estimate the error if it is possible. The concentration of iodide ions in a saturated solution of lead(II) iodide is __________ M. The solubility product constantof PbI2 is 1.4x10-8a. 3.8 x 10-4b. 3.0 x 10-3c. 1.5 x 10-3d. 3.5 x 10-9e. 1.4 x10-8 A bicycle wheel has an initial angular velocity of 1.30rad/s . a) If its angular acceleration is constant and equal to 0.345rad/s2 , what is its angular velocity at time t = 2.70s ?b! Through what angle has the wheel turned between timet=0 and time t = 2.70s ? It is unlikely that ___ was able to beat up mayella because he was injured. 2. Apply the steps of rational decision-making to the decision of the CEO Tauriq Keraan to launch an account for small businesses, responsibly offering consumers unsecured credit. John Lewis performed an audit of a client that had undergone a major fire to its operations in Queenstown, New Brunswick. The client was insured and was able to keep operating. However, there was material damage to the clients inventory storage yard. Which one of the following is the form of audit report that will be issued:a.modified opinionb.unmodified opinion emphasis of matterc.disclaimer of opiniond.an adverse opinion when freddie mac and fannie mae pooled mortgages into securities, they guaranteed the underlying mortgage loans against homeowner defaults. in contrast, there were no guarantees on the mortgages pooled into subprime mortgage-backed securities, so investors would bear credit risk. was either of these arrangements necessarily a better way to manage and allocate default risk?