Java Help:
Scenario: North Carolina Medical Supply is researching purchasing Flint, a surgical robot. They have gathered data from several sources and need you to write a program to arrange this data in a report. They want to know what is the average rating for Flint, which users have given Flint above average ratings, and which companies rated Flint below average. They also want to know the cost per Flint, since they have noticed a difference in price based on the number of robots purchased.
Sample Data:
Name of Company # of Robots Cost (No tax included) Rating
Hospital A 15 $250, 000 Below Average
Hospital B 30 $450, 000 Above Average
Hospital C 3 $75, 000 Below Average
Hospital D 50 $500, 000 Above Average
/*
* The java program that displays the name of the hospital, number
of robots,
* cost of purchase and rating and also print the cost per flint on
console
* output as a table format
* */
//Exercise_1.java
public class Exercise_1
{
public static void main(String[] args)
{
//an array of hospital names
String hospitals[]=
{"Hospital
A",
"Hospital B",
"Hospital C",
"Hospital
D"};
//an array of number of
robots
int robots[]= {15,30,3,50};
//an array of costs of robots
double cost[]=
{250000,4500000,
75000,500000};
double avg=0;
double total=0;
for(int
idx=0;idx<cost.length;idx++)
total+=cost[idx];
//find average cost
avg=total/cost.length;
System.out.printf("%-25s%-20s%-40s%-20s%-20s\n",
"Name of Company",
"# of Robots",
"Cost(No tax included)",
"Rating",
"Cost/Flint");
//print the table format for the total details of flints
for(int
idx=0;idx<cost.length;idx++)
{
if(cost[idx]>avg)
System.out.printf("%-35s%-30d$%-40.0f%-20s%-20.2f\n",
hospitals[idx],
robots[idx],
cost[idx],
"Above Average",
cost[idx]/robots[idx]);
else
System.out.printf("%-35s%-30d$%-40.0f%-20s%-20.2f\n",
hospitals[idx],
robots[idx],
cost[idx],
"Below Average",
cost[idx]/robots[idx]);
}
}
}
Sample Output:
Name of Company # of Robots Cost(No tax included) Rating
Cost/Flint
Hospital A 15 $250000 Below Average 16666.67
Hospital B 30 $4500000 Above Average 150000.00
Hospital C 3 $75000 Below Average 25000.00
Hospital D 50 $500000 Below Average 10000.00
Java Help: Scenario: North Carolina Medical Supply is researching purchasing Flint, a surgical robot. They have...
Write program in JAVA for the scenario below Scenario: North Carolina Medical Supply is researching purchasing Ram, a surgical robot. They have gathered data from several sources and need you to write a program to arrange this data in a report. They want to know what is the average rating for Ram, which users have given Ram above average ratings, and which companies rated Rams below average. They also want to know the cost per Ram, since they have noticed...
9. If the stable developers such as HRI have a total
debt-to-total assets ratio in the range of 48-55 percent, how much
flexibility for future financing will HRI have if is issued at
present?
Case 31 The Debt versus Equity Financing Alternative High Rock Industries Kathleen Crawford, president and CEO of High Rock Industries, reflected upon the company's growth since its inception in 1975. That growth, indicative of the activity in land development in the mid-Atlantic region of the United...
My
question is about the case study “ Comparing Apples and Oranges:
which group yuelds the best profit?”
1) Using the Excel apreadsheet attached to complete the rooms
sold and revenue projections based on the above case study.
Case Study: "Comparing Apples and Oranges: Which Group Yields
the Best Profit?"
The Diamond Peak Hotel, one of 45 hotels in the Host Marriott
management company, was bustling with business this Thursday
afternoon as the hour of the daily revenue meeting drew...