import java.util.Scanner;
public class LetterGrade {
// The method you write will return a String representing a
letter
// grade (e.g., "A", "A-", "B+", etc.).
// The letter grade is determined by the given percentage,
according
// to the scale specified on page 2 of the class syllabus
(available
// here:
https://kyledewey.github.io/comp110-spring18/syllabus.pdf).
// You may assume that the given percentage is between 0.0 and
100.0
// TODO - write your code below this comment.
public static String letterGrade(double percentage){
if (percentage >= 92.5) {
return "A";
}
else if (percentage >= 89.5){
return "A-";
}
else if (percentage >= 86.5){
return "B+";
}
else if (percentage >= 82.5){
return "B";
}
else if (percentage >= 79.5){
return "B-";
}
else if (percentage >= 76.5){
return "C+";
}
else if (percentage >= 72.5){
return "C";
}
else if (percentage >= 69.5){
return "C-";
}
else if (percentage >= 66.5){
return "D+";
}
else if (percentage >= 62.5){
return "D";
}
else if (percentage >= 59.5){
return "D-";
}
else {
return "F";
}
}
// DO NOT MODIFY main!
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter grade as percentage: ");
double percentage = input.nextDouble();
System.out.println("Letter grade: " +
letterGrade(percentage));
}
}
NEED HELP WITH TEST CODE
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class LetterGradeTest {
// TODO - write your code below this comment.
// Write 12 tests, where each test corresponds
// to one of the possible class grades. As a hint,
// most of these tests look a lot like each other, so
// you might be able to work faster by copy-pasting
// the same test and then editing it for the given case.
In: Computer Science
Just before class starts, you realize that you have mistakenly recycled the second page of your cost accounting homework assignment. Fortunately, you still have the first page of the printout from your spreadsheet (shown below) and you remember that you were able to determine the items on the recycled page from this information.
| Direct materials inventory, January 1 | $ | 2,440 | |
| Direct materials inventory, December 31 | 2,258 | ||
| Work-in-process inventory, January 1 | 5,070 | ||
| Work-in-process inventory, December 31 | 6,650 | ||
| Finished goods inventory, January 1 | 23,120 | ||
| Finished goods inventory, December 31 | 24,820 | ||
| Cost of goods manufactured during this year | 601,740 | ||
| Total manufacturing costs | 603,320 | ||
| Direct labor | 267,400 | ||
| Manufacturing overhead | 224,000 | ||
| Average selling price per unit | 17 | ||
| Gross margin percentage (as a percentage of sales) | 37 | % | |
Required:
a. Find the cost of goods sold.
b. Find the direct materials used.
c. Find the purchases of direct materials. (Do not round intermediate calculations. Round your final answer to the nearest whole dollar.)
d. Find the sales revenue. (Round your final answer to the nearest whole dollar.)
In: Accounting
|
Hair World Inc. is a wholesaler of hair supplies. Hair World uses a perpetual inventory system. The following transactions (summarized) have been selected for analysis: |
| a. | Sold merchandise for cash (cost of merchandise $16,797). | $27,200 |
| b. |
Received merchandise returned by customers as unsatisfactory (but in perfect condition), for cash refund (original cost of merchandise $180). |
300 |
| c. | Sold merchandise (costing $3,325) to a customer, on account with terms 2/10, n/30. | 7,000 |
| d. | Collected half of the balance owed by the customer in (c) within the discount period. | 3,430 |
| e. | Granted a partial allowance relating to credit sales that the customer in (c) had not yet paid | 112 |
| 1. | Compute Sales Revenue, Net Sales, and Gross Profit for Hair World. |
|
Sales Revenue |
|
| Net Sales and Gross Profit |
| 2. | Compute the gross profit percentage. (Round your answer to 1 decimal place.) |
| 3. |
Prepare journal entries to record transactions (a)–(e). |
|
4. Hair World is considering a contract to sell merchandise to a hair salon chain for $12,000. This merchandise will cost Hair World $8,560. What would be the increase (or decrease) to Hair World’s gross profit and gross profit percentage? |
In: Accounting
Hair World Inc. is a wholesaler of hair supplies. Hair World uses a perpetual inventory system. The following transactions (summarized) have been selected for analysis: a. Sold merchandise for cash (cost of merchandise $8,797). $11,200 b. Received merchandise returned by customers as unsatisfactory (but in perfect condition), for cash refund (original cost of merchandise $60). 100 c. Sold merchandise (costing $2,375) to a customer, on account with terms 2/10, n/30. 5,000 d. Collected half of the balance owed by the customer in (c) within the discount period. 2,450 e. Granted a partial allowance relating to credit sales that the customer in (c) had not yet paid 80
1.
|
Compute Sales Revenue, Net Sales, and Gross Profit for Hair World. 2.
|
In: Accounting
Quality Cost Report
Bradshaw Company reported sales of $5,000,000 in 20X1. At the end of the fiscal year (June 30, 20X1), the following quality costs were reported:
| Vendor certification | $43,500 | |
| Warranty | 100,000 | |
| Rework | 125,000 | |
| Field testing | 54,000 | |
| Quality training | 56,500 | |
| Process acceptance | 40,000 | |
| Scrap | 75,000 | |
| Recalls | 90,000 | |
| Product inspection | 46,000 | |
| Returned goods | 70,000 |
Required:
1. Prepare a quality cost report. Round percentage
to two decimals.
| Bradshaw Company Quality Cost Report For the Year Ended June 30, 20X1 |
|||||||
| Quality Costs | Percentage of Sales |
||||||
| Prevention costs: | |||||||
| Vendor certification | $ | ||||||
| Quality training | $ | % | |||||
| Appraisal costs: | |||||||
| Field testing | $ | ||||||
| Process acceptance | |||||||
| Product inspection | |||||||
| Internal failure costs: | |||||||
| Rework | $ | ||||||
| Scrap | |||||||
| External failure costs: | |||||||
| Warranty | $ | ||||||
| Recalls | |||||||
| Returned goods | |||||||
| Total quality costs | $ | % | |||||
2. Failure costs are almost two-thirds of the total costs. This indicates that there is still ample opportunity for improving quality by investing more in prevention and appraisal activities.
3. Assuming sales of $5,000,000, by how much
would profits increase if quality improves so that quality costs
are only 3% of sales?
Profits would increase by $
In: Accounting
Financing Building Costs of Saint Louis University:
Saint Louis University is building a $13,000,000 office and classroom building in St. Louis in Missouri, and is planning to finance the construction at an 80% loan-to-value ratio, meaning that the borrowed money corresponds to 80% of the value of the building. The balance of 20% will be paid in cash up front. This loan has a ten-year maturity, calls for monthly payments, and is contracted at an interest rate of 7%.
Using the above information, answer the following questions.
1. What is the monthly payment?
Answer:
2. Using the provided Excel file, construct the amortization table in the spread "Sheet2".
3. How much of the first payment is interest?
Answer:
4. How much of the first payment is principal?
Answer:
5. How much will Saint Louis University owe on this loan after making monthly payments for three years (the amount owed immediately after the thirty-sixth payment)?
Answer:
6. Should this loan be refinanced after three years with a new seven-year 6% loan, if the cost to refinance is $210,000? (This means that the refinance cost must be added to the owed amount at the end of three years). To make this decision, calculate the new loan payments and then the present value of the difference in the loan payments.
Answer:
7. Returning to the original ten-year 7% loan, how much is the loan payment if these payments are scheduled for quarterly rather than monthly payments?
Answer:
8. For this loan with quarterly payments, how much will Saint Louis University owe on this loan after making quarterly payments for three years (the amount owed immediately after the twelfth payment)? (Hint: you can use the provided Excel file and do the estimations in the spread "Sheet3")
Answer:
9. What is the effective annual rate (EAR) on the original ten-year 7% loan?
Answer:
10. For the original ten-year 7% loan, how much is paid in interest over the entire life of the loan?
Answer:
11. For the ten-year 7% loan, what is the total construction cost including financial cost?
Answer:
Write it on an excel spreadsheet showing the formulas.
In: Finance
What is the difference between race and ethnicity? And what does it mean when your book discusses the idea of the social construction of race?
In: Psychology
Mention the Principles for Defining Report Quality (based on GRI Standards or G4 Guideline). Give an example of its implementation on a construction company.
In: Accounting
why did a national slump that began with housing affect companies like eagle alloy that didnt sell much to the construction industry?
In: Economics
The successful construction and transplantation into a cell of a synthetic Mycoplasma genome was an important milestone in synthetic biology. Briefly describe the approach used in this project.
In: Biology