Vertical histogram

So, 0, 10, 20, 30 are x-axis, and 0, 10000, 20000, 30000, 40000, 50000, 60000 are y-axis

import java.util.*;

import java.io.*;

/*

  • CSC142 Programming Assignment #4:

*

  • Print an ascii histogram of the values of the ‘distribution[]’ array (defined below)
  • to standard output.

*

  • You will use print and println methods to print this histogram to standard output, but
  • it will appear ‘sideways’.

*

  • The output should have a line to represent the x-axis, and labels on the x-axis
  • in 5 or 10 count increments.

*

  • Use the ‘*’ character to represent the magnitude of the values. You will want to look
  • at the initialization statement below, find the maximum value in ‘distribution[]’ and
  • scale your output to an optimal display size for the end user.

*

  • I will post an example of a properly scaled output for this data set, and how the histogram
  • should appear to the Resources block in WAMAP.

*

  • You may modify the main() method below (which does not work properly),
  • or write your own method(s) to complete the assignment.

*

  • You can begin with this file, but please remember to remove my comments and replace
  • them with your own. (including a header comment with name, date, assignment number,
  • a description of what the class does, etc.)

*

  • The array, ‘distribution[]’, has previously been computed from the Geiger counter data
  • log file 7_14_2019.txt, which is posted in the Resources Block if you want to look at it.

*

  • The number of counts per minute logged to this file ranges from 0-39 counts per minute,
  • for the entire 15 months logged in the file.
  • So ‘distribution[]’ is statically initialized below, with 40 elements, which cover the
  • range from 0 to 39 counts per minute.

*

  • The number of occurrences of each specific value of counts per minute in the log file is
  • stored in distribution[], at that particular array index in distribution[].

*

  • For example, during the 15 month period that is logged in the file, there were exactly
  • 8 times that a value of 2 counts per minute occurred. This is seen below in the
  • initialization statement for ‘distribution’: distribution[2] has the value 8.

*

*/

public class PrintDistribution {

// private static String infile = “7_14_2019.txt”; The original data file name,

// included here for documentation.

public static int[] distribution = {0,1,8,59,215,703,1848,3975,8077,13937,22195,31628,

41711,51099,57142,59959,59670,55756,48850,40931,32583,

24995,18217,12794,8623,5577,3601,2272,1259,764,464,246,

153,80,39,22,12,6,3,0};

public static final int MAX_COUNTS = distribution.length;

public static void main(String[] args){

for (int i = 0; i < MAX_COUNTS ; i++) {

if (i % 10 == 0) {

System.out.print(i);

System.out.println(“|”);

}

else {

if (i < 10) {

System.out.println(” |”);

}

else {

System.out.println(” |”);

}

}

}

}

}

Sample Solution

The post Vertical histogram appeared first on homework handlers.

The numerical value of the compounding factors.

Unit 6

For a sum of money interested at 4% compounded semi-annually for 5 years.
the nominal annual rate of interest (j).
The number of compounding periods per year (m).
The periods rate of interest (i)
The number of compounding periods in the term (n)
The compounding factors (1+i)n
The numerical value of the compounding factors.
What is the nominal rate of interest compounded quarterly if the effective rate of interest on an investment is 5.3%?
How much will a registered retirement savings deposit of $13 500.00 be worth in 11 years at 8.44% compounded quarterly? How much of the amount is interest?
To what future value will a principal of $7100.00 amount in three years at 7.6% p.a. compounded:
Suppose $4320.00 is invested for five years, eight months at 8.25% compounded annually. What is the compounded amount?
The Rob U Blind Bank advertises capital savings at 7.128% compounded semi-annually while Take Your Money Trust offers premium savings at 7.1% compounded monthly. Suppose you have $4400.00 to invest for two years.
An investment of $5000.00 earns interest at 6% p.a. compounded monthly for two years. At that time the interest rate is changed to 8% compounded semi-annually. How much will the accumulated value be three and a half years after the change?
Determine the proceeds of $19 000 three years and three months before the due date if interest is 7.6% compounded semi-annually.
A debt can be repaid by payments of $1000.00 today, and $3000.00 in two years. What single payment would settle the debt three years from now if money is worth 16% p.a. compounded semi-annually?
Debts of $400.00, $450.00 and $500.00 are due in one year, eighteen months and thirty months from now respectively. Determine the single payment now that would settle the debts if interest is 8% p.a. compounded quarterly.
Debts of $850 due in six months, $700 due in sixteen months, and $1100 due in three years are to be settled by a single payment one year from now. What is the size of that single payment if interest is 7.5% compounded monthly?
Calculate the number of years for money to triple at 3.6% p.a. compounded monthly.
A loan of $4500.00 was repaid together with interest of $1164.00. If interest was 12 .4% compounded quarterly, for how many months was the loan taken out?

a) annually

b) semi-annually

c) quarterly

d) monthly

a) Which deposit will earn more interest?

b) What is the difference in the amount of interest?

Sample Solution

The post The numerical value of the compounding factors. appeared first on homework handlers.

_____________ is the specific job responsibility of a person in one department to communicate with people in another department Select one: Direct…

_____________ is the specific job responsibility of a person in one department to communicate with people in another department
Select one:
a. Direct contactb. Task force integratorc. Liaison roled. None of the above

]]>
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 10px;
}
.awasam-alert {
color: red;
}

 

“Are you looking for this answer? We can Help click Order Now”


Iris Income Statement Cost of Goods Sold – 350 Depreciation Expense – 35 Interest Expense – 20 Operating Expense (excluding depreciation) – 115 Sales…

Iris Income Statement

Cost of Goods Sold – 350

Depreciation Expense – 35

Interest Expense – 20

Operating Expense (excluding depreciation) – 115

Sales – 680

What was Iris Inc.’s earnings before interest and taxes (EBIT)?

 

“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”

The post Iris Income Statement Cost of Goods Sold – 350 Depreciation Expense – 35 Interest Expense – 20 Operating Expense (excluding depreciation) – 115 Sales… appeared first on nursing assignment tutor.

 

“Are you looking for this answer? We can Help click Order Now”