go to w3schools online html editor
• Your Name in Bold
• Your Current College Major, Not in Bold text
• A horizontal line
• Your Favorite Hobby in Italics
• Your Favorite Movie written in Red text ... use any resource you would like (web/textbook/etc) to figure out how to complete this step.
• A picture from another website of your Favorite Book or Magazine
• Text under the Book or Magazine stating what it is or why it's your favorite
• A link to an interesting webpage, the link text must match the page you are linking to. (ie: Don't write CNN for the link, and have it point at MSNBC.com)
• A picture of an interesting person that is also a link to their wikipedia page. The picture itself must be the link, no actual text to click on.
• Embed a you tube video of your favorite music video.
In: Computer Science
Java language
This is your first homework on objects and classes, and the basics of object-oriented programming. For each exercise, your task is to first write the class that defines the given object. Compile it and check it for syntax errors. Then write the “demo class” with the main program that creates and uses the object.
a)You are planning to purchase a new motor boat for cool cruises on Porter’s Lake this summer, but you want to simulate it before you make the purchase. Write a class MotorBoat that represents motorboats. A motorboat has attributes for
and the following methods:
Note: If the rate of fuel consumption is r and the distance traveled is d, then the amount of fuel remaining in the tank = fuel in tank – r*d
b) Write a tester program that creates a motorboat with capacity 100 liters, fuel in tank 50 liters, max. speed 100 kmph, rate of fuel consumption 1. Set its speed to 25 kmph and operate it for 30 minutes. Print the current speed, distance driven and the fuel remaining in the tank. Then increase the speed by 25, and operate it for 30 minutes. Print the current speed, distance driven and fuel in tank. Your output should be:
Current speed: 25.0 kmph
Distance driven: 12.5 km
Fuel in tank: 37.5 liters
Current speed: 50.0 kmph
Distance driven: 25.0 km
Fuel in tank: 12.5 liters
Test your program to check for other cases as well.
In: Computer Science
Suppose a random sample of size 40 is selected from a population with = 11. Find the value of the standard error of the mean in each of the following cases (use the finite population correction factor if appropriate).
In: Math
Hello,
I have created the following code in C++. The goal of this code is to read 3 types of employee information(String/*Name*/, String/*Phone number*/,Int/*Office number*/, ) from a .txt file and store that information into an array which can be accessed by various functions. The code below is within a header file, and im trying to define some functions (within a .cpp file) of my class to carry out the following tasks.
I have already managed to define a couple functions, but I'm stuck on the two listed below and need help coding them.
Thank you.
CODE:
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
const int SIZE = 25;
struct Phone
{
string employeeName;
string phoneExt;
int officeNumber;
};
class Directory
{
public:
Directory(string/*file name*/, int = SIZE/*max number
of employees*/);
void showPhone(string/*employee phone*/, int
/*employee office*/);
void showPhoneOffice(string/*Name*/) const;
void writeDirectory(ostream &)const;
void addEmployee(string/*Name*/, string/*Phone*/,
int/*Office*/); // this is second function I need help
defining
void showNoEmployees(ostream &) const; //This is
first function I need help defining
int getNoEmployees() const {return noEmployees;}
private:
Phone employees[SIZE];
int maxEmployees;
int noEmployees;
void findEmployee();
};
1. showPhoneOffice() that displays a string(a name) and int( a phone number). The function receives the string and int. It does not return a value. Displays the data or a meaningful error message if the string was not found
2. . addEmployee() that adds an employee(string/*Name*/,string/*Name*/,int/*Office Number*/) to the employee array. The function receives the employee’s string, string and int. It does not return a value. Ensure the employee is not already in an existing array and that the array is not full. You can assume valid data is passed.
In: Computer Science
Keller Company makes two models of battery-operated boats, the Sandy Beach and the Rocky River. Basic production information follows:
Sandy Beach | Rocky River | |||||
Direct materials cost per unit | $ | 19.60 | $ | 27.20 | ||
Direct labor cost per unit | 14.30 | 17.60 | ||||
Sales price per unit | 83.20 | 105.00 | ||||
Expected production per month | 1,190 | units | 980 | units | ||
Keller has monthly overhead of $10,424, which is divided into the following cost pools:
Setup costs | $ | 2,880 |
Quality control | 5,369 | |
Maintenance | 3,220 | |
Total | $ | 11,469 |
The company has also compiled the following information about the chosen cost drivers:
Sand Beach | Rocky River | Total | |
Number of setups | 16 | 29 | 45 |
Number of inspections | 110 | 345 | 455 |
Number of machine hours | 1,400 | 1,400 | 2,800 |
Required:
1. Suppose Keller uses a traditional costing system with
machine hours as the cost driver. Determine the amount of overhead
assigned to each product line. (Do not
round intermediate calculations and round your final answers to the
nearest whole dollar amount.)
Overhead Assigned | |
Sandy Beach Model | |
Rocky River Model | |
Total Overhead Cost |
2. Calculate the production cost per unit for each
of Keller’s products under a traditional costing
system.(Round your intermediate calculations and final
answers to 2 decimal places.)
Sandy Beach | Rocky River | |
Unit Cost |
3. Calculate Keller’s gross margin per unit for
each product under the traditional costing system. (Round
your intermediate calculations and final answers to 2 decimal
places.)
Sandy Beach | Rocky River | |
Gross Margin |
4. Select the appropriate cost driver for each
cost pool and calculate the activity rates if Keller wanted to
implement an ABC system. (Round your answers to 2 decimal
places.)
Setup Costs | ||
Quality Control | ||
Maintenance |
5. Assuming an ABC system, assign overhead costs
to each product based on activity demands.(Round your
intermediate calculations to 2 decimal places and final answers to
the nearest whole dollar amount.)
Overhead Assigned to Sandy Beach | Overhead Assigned to Rocky River | |
Setup Cost | ||
Quality Control | ||
Maintenance | ||
Total Overhead Cost |
6. Calculate the production cost per unit for each
of Keller’s products with an ABC system. (Round your
intermediate calculations and final answers to 2 decimal
places.)
Sandy Beach | Rocky River | |
Unit Cost |
7. Calculate Keller’s gross margin per unit for
each product under an ABC system. (Round your intermediate
calculations and final answers to 2 decimal places.)
Sandy Beach | Rocky River | |
Gross Margin |
8. Compare the gross margin per unit of each
product under the traditional system and ABC. (Round your
answers to 2 decimal places.)
Sandy Beach | Rocky River | |
Gross Margin(traditional) | ||
Gross Margin(ABC) |
In: Accounting
Garcia's Truckin' Inc. is considering the purchase of a new production machine for $150,000. The purchase of this machine will result in an increase in earnings before interest and taxes of $70,000 per year. To operate the machine properly, workers would have to go through a brief training session that would cost $6,000 after taxes. It would cost $4,000 to install the machine properly. Also, because this machine is extremely efficient, its purchase would necessitate an increase in inventory of $30,000. This machine has an expected life of 10 years, after which it will have no salvage value. Finally, to purchase the new machine, it appears that the firm would have to borrow $100,000 at 9 percent interest from its local bank, resulting in additional interest payments of $9,000 per year. Assume simplified straight-line depreciation and that the machine is being depreciated down to zero, a 34 percent marginal tax rate, and a required rate of return of 13 percent.
a. What is the initial outlay associated with this project?
b. What are the annual after-tax cash flows associated with this project for years 1 through 9?
c. What is the terminal cash flow in year 10 (what is the annual after-tax cash flow in year 10 plus any additional cash flows associated with the termination of the project)?
d. Should the machine be purchased?
In: Finance
Consider low- versus high-involvement purchases. Specifically, high-involvement purchases are "psychologically important to the buyer". Contend high involvement purchases entail consumers move through a five-step cognitive process.
1.Problem Identification
2. Information search
3. Evaluation of alternatives
4. Purchase
5. Post-purchase evaluation
Now, consider a good or service YOU consider a high-involvement purchase. Share the story of your purchase decision-making process from need/want identification (e.g., I want a BMW convertible) through the five stages (listed above) provide a timeframe (e.g., I said I wanted a BMW convertible on Monday and I purchased it that Friday; or I said I wanted a BMW convertible 10 years ago...and finally leased one this week). Please label each of the five stages to optimize readability. Share your recollections, emotions, anguish, cognitive dissonance, or sheer bliss - bring us into your world for a moment.
In: Psychology
Each of two mutually exclusive projects involves an investment of $124,000. Net cash flows for the projects are as follows:
Year |
Project A |
Project B |
1 |
60,000 |
57,000 |
2 |
62,000 |
64,000 |
3 |
40,000 |
47,000 |
A. Calculate each project's payback period. (2 Points)
B. Compute the Net Present Value (NPV) of each project when the firm's cost of capital is 10 percent. (2 Points)
C. Internal Rate of Return (IRR) -Your choice; based on your answer to part (B). (2 Points)
D. Modified Internal Rate of Return (MIRR) Your choice; based on your answer to part (B). (2 Points)
In: Finance
Sawaya Co., Ltd., of Japan is a manufacturing company whose total factory overhead costs fluctuate considerably from year to year according to increases and decreases in the number of direct labor-hours worked in the factory. Total factory overhead costs at high and low levels of activity for recent years are given below: |
Level of Activity |
|||||
Low | High | ||||
Direct labor-hours | 47,100 | 62,800 | |||
Total factory overhead costs | $ | 245,580 | $ | 273,840 | |
The factory overhead costs above consist of indirect materials, rent, and maintenance. The company has analyzed these costs at the 47,100-hour level of activity as follows: |
Indirect materials (variable) | $ | 61,230 |
Rent (fixed) | 127,000 | |
Maintenance (mixed) | 57,350 | |
Total factory overhead costs | $ | 245,580 |
To have data available for planning, the company wants to break down the maintenance cost into its variable and fixed cost elements. |
Required: |
1. |
Estimate how much of the $273,840 factory overhead cost at the high level of activity consists of maintenance cost. (Hint: To do this, it may be helpful to first determine how much of the $273,840 consists of indirect materials and rent. Think about the behavior of variable and fixed costs!) (Do not round intermediate calculations.) |
Maintenance cost at high level of activity_________
2. |
Using the high-low method, estimate a cost formula for maintenance. (Do not round intermediate calculations. Round "Variable cost element" to 2 decimal places.) |
|
Y =_____ +______X
3. |
What total factory overhead costs would you expect the company to incur at an operating level of 51,810 direct labor-hours? (Do not round intermediate calculations.) |
Total Factory overhead cost____
In: Accounting
These are post lab questions regarding paper chromatography. Some background. The solvent used was a mix of HCl and acetone. We spotted the paper with 4 ions including Co(II), Cu(II), Fe(III), and Ni(II). After the solvent nearly reached the top, the paper was removed and measurements were made. Paper was dried and sprayed with ammonia. Changes observed and the paper was dried again and sprayed with sodium sulfide. Pleas help!
a)You used a pencil to mark the chromatography paper since the carbon in the pencil lead does not dissolve in the solute. Why does carbon not dissolve? What type of pen(ink) will also not produce a chromatogram when watert is used as the solvent? Explain using principles based on the polarity of particles.
b)You are to minimize hand contact with the paper since amino acids, oils, etc. on your skin will form a smudge on the cellulose paper. Why will using corroded tweezers also cause a smudge when sodium sulfide is sprayed on the paper?
c) What type of complexes appear when the spots are sprayed with Ammonia and why do new colors appear?
d) Same question as 'c' but being sprayed with sodium sulfide
In: Chemistry
Blocks/pages are units of both storage allocation and data transfer.
True
False
-------------------------------------
While clustering of records from two or more tables can enhance the performance of some join queries, other queries may see diminished performance.
True
False
----------------------------
databases are too large to fit on the main Memory so they are stored on the magnetic disk
True
False
----------------
In: Computer Science
Cant get this to loop properly. Any tips out there?
import java.util.Scanner;
public class Lab4 {
public static void main(String[] args) {
//Declared variables
int choice;int number; int sum=0; int fact =1;
Scanner scan = new Scanner(System.in);
do {
System.out.println("Please choose one option from the following
menu:");
System.out.println("1) Calculate the sum of integers from 1 to
m");
System.out.println("2) Calculate the factorial of a given
number");
System.out.println("3) Display the leftmost digit of a given
number");
System.out.println("4) Quit");
choice= scan.nextInt();
//Based on choice, the entered menun options will be
executed
switch(choice){
case 1:
System.out.println("enter a number");
number = scan.nextInt();
for(int i =1; i<=number; i++) {
sum = sum + i;
}
System.out.println("the sum of 1 to " + "" + number + " " + "is" +
" " + sum );
number = scan.nextInt();
break;
case 2:
System.out.println("enter a number");
number = scan.nextInt();
for(int i=1; i<=number; i++) {
fact = fact * i;
}System.out.println("The factorial is" + " " + fact);
number = scan.nextInt();
break;
case 3:
System.out.println("Enter Number");
number = scan.nextInt();
while(number >= 10)
number = number / 10;
System.out.println("The left most digit is" + " " + number);
number = scan.nextInt();
break;
default:
System.out.println("Invalid choice.");
number = scan.nextInt();
break;
}
}while(choice!=4); {
}
}
}
In: Computer Science
An engineer wants to estimate the annual inflation-free cost of owning an aerobic digester system with a capacity of 195 million gallons per day (MGD) for the first 8 years of operation. Company records show that the cost of a similar system with a capacity of 75 MGD was $8 million five years ago. The equipment cost index has increased 26% per year since then, and the future general inflation rate is forecast to be 2% per year. He estimates that the annual operating expenses of the new system would be $440,000 per year for the first two years and increase to $441,500 per year thereafter, due to the increase in maintenance costs. Calculate the annual inflation-free cost of owning the 295-MGD system for the first 8 years. Use a cost-capacity exponent of 0.14 for the system and a market-based MARR of 8% per year.
In: Finance
Write the code in python only.
You will need the graphics library for this assignment. Please download the library and place it in the same file as your solution.
Draw a 12" ruler on the screen. A ruler is basically a rectangular outline with tick marks extending from the top edge. The tick marks should be drawn at each quarter-inch mark. Below the tick marks, your ruler should show large integers at each full-inch position.
In: Computer Science
Consider the previous question with the following new information: Fixed costs are assumed to be $500,000 per year. The company estimates the variable cost per unit (v) to be $75 and expects to sell each unit for $425. There are no taxes and the required rate of return is 22% per year. Suppose that sales are currently estimated to be 5000 units per year.
What is the degree of operating leverage? (Round to 1 decimal place, ie 2.3)
Using your answer from above, estimate what the new monthly operating cash flow (OCF) will be if sales increase by 100 units: $ (Round your answer to the nearest whole dollar, and do NOT use commas in your response, ie. 456789)
In: Finance