Exact Photo Service purchased a new color printer at the
beginning of Year 1 for $39,700. The printer is expected to have a
four-year useful life and a $3,700 salvage value. The expected
print production is estimated at $1,770,500 pages. Actual print
production for the four years was as follows:
Year 1 | 550,700 | ||
Year 2 | 477,500 | ||
Year 3 | 375,300 | ||
Year 4 | 390,000 | ||
Total | 1,793,500 | ||
The printer was sold at the end of Year 4 for $4,100.
b. Compute the depreciation expense for each of the four years, using units-of-production depreciation.
Depreciation Expense
Year 1
Year 2
Year 3
Year 4
Total accumulated depreciation$0
Exact Photo Service purchased a new color printer at the
beginning of Year 1 for $39,700. The printer is expected to have a
four-year useful life and a $3,700 salvage value. The expected
print production is estimated at $1,770,500 pages. Actual print
production for the four years was as follows:
Year 1 | 550,700 | ||
Year 2 | 477,500 | ||
Year 3 | 375,300 | ||
Year 4 | 390,000 | ||
Total | 1,793,500 | ||
The printer was sold at the end of Year 4 for $4,100.
c. Calculate the amount of gain or loss from the sale of the asset under each of the depreciation methods.
DDB =
Units-of-production=
In: Accounting
This project will be an exercise in using all that we have covered in these past two weeks: Arrays (one and multidimensional arrays), branching, and input and output files.
Components:
A class called YourLastNameGradebook (Yes, YourLastName IS your last name!!!)
And an external class called SomeNeatExternalSoundingName. This external class will have at least 2 methods: readData and writeData
This project will include
The class with the main method and the other useful methods that will 1) display the arrays, 2) find the averages and store them, 3) find the grades and store them, 4) and display a chart of the final array results to the terminal window.
The external class will 1) read from the input file and 2) write to an output file.
YourLastNameGradebook class's main method will be made up of declarations and method calls. There should be no other code in the main method. (Except for one single print statement stating that the program is finished!)
Declarations:
Actions needed: Note - Do use the size
of the array for your for loops, notthe value
5.
1) Read in (Invoke the readData method in the external class ):
The input file looks like this: project2IN.txt
Leia Organa 98.0 95.5 100.0
Fred Flintstone 65.0 74.5 76.25
Sheldon Cooper 100.0 100.0 99.0
Stan Marsh 89.0 84.0 80.5
Lisa Simpson 93.0 94.5 92.0
When you open the input file, echo this to the terminal window.
The array of names will be read in from the input file. (The
names will be read in as first last but need to be rearranged to
last, first when being read in)
This array of scores will be read in from the input file.
The last element in the scores array will have a zero in it. This will be reserved for the averages (later).
When you close the input file, echo this to the terminal window.
After reading in the data: Row zero from the
names array corresponds to row zero from the
scores array:
names array contains 5 names:
element: Contents:
0 |
Organa, Leia |
1 |
Flintstone, Fred |
2 |
Cooper, Sheldon |
3 |
Marsh, Stan |
4 |
Simpson, Lisa |
Scores array contains 5 rows of 4 elements each
row |
column 0 |
column 1 |
column 2 |
column 3 |
||
0 |
98.0 |
95.5 |
100.0 |
|||
1 |
65.0 |
74.5 |
76.25 |
|||
2 |
100.0 |
100.0 |
99.0 |
|||
3 |
89.0 |
84.0 |
80.5 |
|||
4 |
93.0 |
94.5 |
92.0 |
|||
2) In YourLastNameGradebook class, invoke the method to display the data using a displayData method:
Display the data (using a displayData method) in the terminal window as it is stored in both of the arrays.
Data read in:
last, first: score1, score2, score3
last, first: score1, score2, score3
last, first: score1, score2, score3
last, first: score1, score2, score3
last, first: score1, score2, score3
(Formatting at this point is not important. Include at least one space! This is just echoing what was entered!)
3) Invoke a method that will compute the average in the scores array
4) Invoke a method that will compute the grade for each student
For each student, determine the average score from the three grades and the grade of A, B, C, D, or F
5) Invoke another displayData method that will print out the names, scores, and grades for each student in the terminal window.
6) Invoke the method in the External class that will write the clean chart to the output file project2OUT.txt
7) When done, the last statement of the main is to be an output statement telling the user that the program is finished.
Output is to be neat and clean. Use blank
spaces for readability in both the output file and in the terminal
window.
Upload (to one of your pairs’ Canvas account) ALL the files that
are needed for grading including BOTH .java files and both .txt
files:
Extra Credit:
1) Use printf to create a neat chart with a chart title (centered
above the output) and headers for the data similar to the
following. (2 points)
==========================================================================
Student Grades
Name Score1
Score2
Score3
Average
Grade
==========================================================================
Organa, Leia
98.00
95.50 100.00
.00
x
Flintstone, Fred 65.00
74.50
76.25 .00
x
and so on...
2) Insert a first new line into your input file. Alter this first line to include an integer value to represent the number of rows to be read in as a reference that will declare the sizes of the arrays to be of that size.
(2 points)
Be SURE that both names appear in the beginning
comments! Otherwise only one of you will get
credit.
This is what will be displayed to the terminal
window: This could be cleaned up to be more
readable.
Reading from input file: project2IN.txt
Closing input file: project2IN.txt
Displaying data as stored:
Organa, Leia 98.0 95.5 100.0 0.0
Flintstone, Fred 65.0 74.5 76.25 0.0
Cooper, Sheldon 100.0 100.0 99.0 0.0
Marsh, Stan 89.0 84.0 80.5 0.0
Simpson, Lisa 93.0 94.5 92.0 0.0
Computing Averages...
Average for Organa, Leia is 97.83333333333333
Average for Flintstone, Fred is 71.91666666666667
Average for Cooper, Sheldon is 99.66666666666667
Average for Marsh, Stan is 84.5
Average for Simpson, Lisa is 93.16666666666667
=================================================================
Name Score1 Score2 Score3 Average Grade
=================================================================
Organa, Leia 98.00 95.50 100.00 97.83 A
Flintstone, Fred 65.00 74.50 76.25 71.92 C
Cooper, Sheldon 100.00 100.00 99.00 99.67 A
Marsh, Stan 89.00 84.00 80.50 84.50 B
Simpson, Lisa 93.00 94.50 92.00 93.17 A
Opening the output file: project2OUT.txt
Writing data to the output file.
Closing the output file project2OUT.txt
This program is now terminating. Have a nice day.
Output file: project2OUT.txt
=================================================================
Name Score1 Score2 Score3 Average Grade
=================================================================
Organa, Leia 98.00 95.50 100.00 97.83 A
Flintstone, Fred 65.00 74.50 76.25 71.92 C
Cooper, Sheldon 100.00 100.00 99.00 99.67 A
Marsh, Stan 89.00 84.00 80.50 84.50 B
Simpson, Lisa 93.00 94.50 92.00 93.17 A
In: Computer Science
Can you work an inspirational story due to Covid-19 Job Loss? It's about a married man who lives with his wife for 28 years. His wife is disable and the married man has diabetes health condition. They are both suffering due to money need for medicines and food.
Please, show a great example about the question.
Thank You.
In: Operations Management
Light, heat ... energy - are all electromagnetic waves. Discuss the differences between them.
In: Physics
I am wondering how stereotypes might affect interpersonal communication between people of different faiths.
In: Economics
Compare and contrast the numerous advantages and disadvantages of using a DDBMS.
Describe the optimal situations of when to use a DDBMS and why.
Include the CAP Theorem and BASE in your paper and analyze their importance.
Be sure to integrate an analysis of the mobile wireless revolution, smartphones, tablets, etc. with a focus on social media related to the use of a DDBMS.
PLEASE DO NOT HAND WRITE THE ANSWER!! PLEASE ANSER THE QUESTION THOROUGHLY!! IF YOU CANNOT PROVIDE 1,000 WORDS DO NOT ANSWER THE QUESTION!!
In: Computer Science
For an implementation of kNN classification from scratch in python I am not sure if I correctly calculate the euclidian distance. Help with python code.
import pandas as pd
import numpy as np
import math
import operator
from collections import Counter
class KNN:
def calculate_distance(x1, x2, length):
e_distance = 0
for x in range(length):
e_distance += pow((x1[x] - x2[x]),2)
return math.sqrt(e_distance)
def __init__(self, k=5, p=2):
self.k = k
In: Computer Science
Assignment 2 – Data Types
Research and find the best corresponding Data Types for the following Microsoft Access Data Types from the Micosoft SQL server as well as MySQL DBMS packages.
MS Access MS SQL Server MySQL
Shorttext
Longgtext
Number (Byte)
Number (Integer)
Number (Long Integer)
Number (Decimal)
Number (Double)
Date/Time
Currency
Yes/No
In: Computer Science
You are required to write a program to provide the statistics of a file (Number of letters, number of words, number of vowels, number of special characters and number of digits.
You should implement this problem as a class and call it FileContentStats which provides statistics about the number of letters, number of words, number of vowels, number of special characters, number of lines and number of digits. All of these should be private data members.
(Should be in C++ language)
In: Computer Science
1)The welding process with highest power density is: a) Electron beam welding. b) Plasma welding. c) Excimer laser welding. d) Shielded metal arc welding.
2) Welding 1015 and 1010 steels using CO2 laser: a) It is harder to weld the 1010 because of its low hardness. b) It is harder to weld the 1015 because of its low hardness. c) It is harder to weld the 1010 because of less prone for cracking. d) It is harder to weld the 1015 because of more prone for cracking.
3) Find the incorrect sentence from: a) Weldment melts and joins in fusion welding. b) Weldment melts and joins in solid state welding. c) Weldment melts and joins in brazing. d) Weldment melts and joins in friction welding.
4) When welding thin aluminum sheets with laser, the weldment should be: a) Positive b) Negative c) Either positive or negative d) None of the above
5) When using YAG laser to produce a lap joint of two steel sheets, the melt starts at: a) Top of the sheets. b) Between the sheets. c) Bottom of the sheets. d) None of the above.
6) In brazing, the base metals melt at temperatures above 840F (450C) while in soldering they melt at 840F (450C) or below a) true b) false
7) Which one of the following AW processes uses an electrode consisting of continuous consumable tubing containing flux and other ingredients in its core a) FCAW b) GMAW c) GTAW d) SMAW
8) Which one of the following arc welding processes uses a non-consumable electrode a) FCAW b) GMAW c) GTAW d) SMAW
9) "Stick" welding is a term sometimes applied when referring to a) FCAW b) GMAW c) GTAW d) SMAW
10) For metallurgical reasons, it is desirable to melt the weld metal with minimum energy input. Which one of the following heat sources is most consistent with this objective: a) high power b) high power density c) low power d) low power density
In: Mechanical Engineering
It is now January 1, 2019, and you are considering the purchase of an outstanding bond that was issued on January 1, 2017. It has an 8.5% annual coupon and had a 15-year original maturity. (It matures on December 31, 2031.) There is 5 years of call protection (until December 31, 2021), after which time it can be called at 108—that is, at 108% of par, or $1,080. Interest rates have declined since it was issued, and it is now selling at 111.55% of par, or $1,115.50.
a. What is the yield to maturity? Do not round intermediate calculations. Round your answer to two decimal places.
What is the yield to call? Do not round intermediate calculations. Round your answer to two decimal places.
b. If you bought this bond, which return would you actually earn?
I. Investors would not expect the bonds to be called and to earn the YTM because the YTM is less than the YTC.
II.Investors would expect the bonds to be called and to earn the YTC because the YTC is less than the YTM.
III. Investors would expect the bonds to be called and to earn the YTC because the YTC is greater than the YTM.
IV. Investors would not expect the bonds to be called and to earn the YTM because the YTM is greater than the YTC.
c. Suppose the bond had been selling at a discount rather than a premium. Would the yield to maturity have been the most likely return, or would the yield to call have been most likely?
I. Investors would expect the bonds to be called and to earn the YTC because the YTC is greater than the YTM.
II. Investors would expect the bonds to be called and to earn the YTC because the YTC is less than the YTM.
III. Investors would not expect the bonds to be called and to earn the YTM because the YTM is greater than the YTC.
IV. Investors would not expect the bonds to be called and to earn the YTM because the YTM is less than the YTC.
In: Finance
The Butler-Perkins Company (BPC) must decide between two mutually exclusive projects. Each project has an initial outflow of $6,750 and has an expected life of 3 years. Annual project cash flows begin 1 year after the initial investment and are subject to the following probability distributions:
Project A | Project B | |||
Probability | Cash Flows | Probability | Cash Flows | |
0.2 | $6,500 | 0.2 | $ 0 | |
0.6 | 6,750 | 0.6 | 6,750 | |
0.2 | 7,000 | 0.2 | 18,000 |
BPC has decided to evaluate the riskier project at 11% and the less-risky project at 8%.
Project A: | $ |
Project B: | $ |
σA: | $ |
CVA: |
In: Finance
list five different Free Trade Agreements and briefly describe each one.
In: Operations Management
Describe the experimental procedures you would use to study the topic of whether or not playing violent video games is related to increased aggression among youth in a within-subjects design. Be sure to explain and provide support as to how your method of measurement meets the criteria for a within subjects design.
In: Psychology
For the Business Analysis assignment, you will be analyzing a business that you want to create or you can analyze an existing business.
Answer the analysis questions below.
Analysis Questions:
In: Operations Management