Write the formula of the coordination compound pentacarbonyliron(0)
Write a systematic name for Li2[CoF6].
Write a systematic name for [RuCl2(bipy)2].
Write a systematic name for [Co(NH3)3Cl3].
In: Chemistry
How do I make it that it rounds up?
it's required that the numbers be (555) 213-000, instead, I get (555) 212-000.
///// Input /////
Zed 5552129999 [email protected]
////// Required Output //////
New number creation tool\n Enter name\n Enter phone number\n Enter email\n Name: Zed\n Phone: 5552129999\n Email: [email protected]\n Telephone neighbor: (555) 213-0000\n
Here is my code:
public class SmartPhone extends Phone
{
private String email;
private String phone;
private String phone2;
public SmartPhone()
{
super("None",-1);
phone = "Not set";
email = "None";
phone2 = "Not set";
}
public SmartPhone(String name, String phone)
{
super(name, Long.parseLong(phone));
this.phone = phone;
this.email = "None";
}
public SmartPhone(String name, String phone, String email)
{
super(name, Long.parseLong(phone));
this.email = email;
this.phone = phone;
}
public boolean hasPhoneNumber()
{
return !phone.equals("Not set");
}
public String getAreaCode()
{
return phone.substring(0,3);
}
public String getPrefix()
{
return phone.substring(3,6);
}
public String getLineNumber()
{
return phone.substring(6);
}
public String toString()
{
return "Name: " + name + "\n" +
"Phone: " + phone + "\n" +
"Email: " + email + "\n";
}
public String getTeleponeNeighbor()
{
if(phone == "Not set")
{
return "Cannot calculate phone number neighbor";
}
else
{
String roundUp = "(";
roundUp += phone.substring(0,3) + ") ";
String num1 = Integer.parseInt(phone.substring(3,6)) + "-";
String num2 = String.valueOf(Integer.parseInt(phone.substring(6,10)) + 1);
if (num2.length() > 4)
{
num2 = num2.substring(num2.length() - 4);
}
if (num2.length() < 4)
{
num2 = String.format("%04d", Integer.parseInt(num2));
}
roundUp += num1;
roundUp += num2;
return roundUp;
}
}
}
And:
import java.util.Scanner;
public class Demo5
{
public static void main(String args[])
{
Scanner keyboard = new Scanner(System.in);
System.out.println("New number creation tool");
System.out.println("Enter name");
String name = keyboard.nextLine();
System.out.println("Enter phone number");
String phoneNumber = keyboard.nextLine();
System.out.println("Enter email");
String email = keyboard.nextLine();
Phone test1 = new SmartPhone(name, phoneNumber, email);
System.out.print(test1);
System.out.println("Telephone neighbor: " + ((SmartPhone) test1).getTeleponeNeighbor());
}
}
Given File:
public class Phone
{
protected String name;
protected long number;
public Phone() {
this("None", -1);
}
public Phone(String name) {
this(name, -1);
}
public Phone(String name, long number) {
this.name = name;
this.number = number;
}
public String getName() {
return name;
}
public long getNumber() {
return number;
}
}
In: Computer Science
Add two lines of code in main() function to create a variable, goodStudent, whose type is Student with name, "John" and age, 21.
public class Student {
private String name;
private int age;
public Student(){
name = "";
age= 0;
}
public Student(String initName){
name = initName;
age = 0;
}
public String getName() {
return name;
}
public void setAge(int anAge) {
age = anAge;
}
public static void main (String[] args) {
// !!!! Your two lines of code come here !!!
}
}In: Computer Science
Review the project charter template and apply it to a project of your choice. Make suggestions for improving the template.
Please write your own project in charter template and make a suggestion how can the project charter templet can be improved for project managemnt.
Project Charter Templet
Background
[Why is the project being undertaken? Describe an opportunity or problem that the project is to address.]
Goals
[specific & measurable goal 1]
[specific & measurable goal 2]
[specific & measurable goal 3]
Scope
[What will be the end result of the project? Describe what phases of work will be undertaken. It’s also important to mention what activities will not be included in this project.]
Key Stakeholders
|
Client |
[name] |
|
Sponsor |
[name] |
|
Project manager |
[name] |
|
Project team members |
[name], [name], [name], [name]. |
Project Milestones
[Identify the significant project milestones: start date, end date and invoicing dates to the client.]
Project Budget
[Describe the main project expenses: non-recurring & monthly recurring.]
Constraints, Assumptions, Risks and Dependencies
|
Constraints |
[Describe here potential factors that will impact the delivery of the project] |
|
Assumptions |
[Describe here conditions or situations that you are relying on in order to achieve project goals] |
|
Risks and Dependencies |
[What are the most significant risks? What things must happen before the project is delivered?] |
Approval Signatures
|
[Name], Project Client |
[Name], Project Sponsor |
[Name], Project Manager |
In: Operations Management
Need to check if File is successfully opened? C++
It works when I input the right txt file. But, it keeps stating, File successfully open." even I put in a non-existing file.
Here are the specifications:
Develop a functional flowchart and then write a C++ program to solve the following problem.
Create a text file named first.txt and write your first name in the file. You will be reading the name of the file from the keyboard as a string, using the string class. Your program will also read your first name from the keyboard. The process of the file creation (name of the file, mode for opening the file, and testing the open success is done in a user-defined function. The function communicates the status of file open to the calling function).
Here is what I have:
#include<string>
#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;
int main() {
string file; //This is a declaration for a file name
string firstname;
ofstream myfile;
cout << "Please enter the file name of your
first name:";
cin >> file;
myfile.open(file);
if (myfile.is_open())
{
cout << "\nFile successfully
open.\n";
}
else
{
cout << "Error opening
file";
}
cout << "Please enter your first name:";
//asks the user to input first name
cin >> firstname; //user inputs first name
myfile << firstname;
myfile.close(); //closes the file
In: Computer Science
Why am I getting this error using 000webhost , but I do not get this error running XAMPP?
Warning: Cannot modify header information -
headers already sent by (output started at
/storage/ssd2/006/14881006/public_html/test/index.php:1) in
/storage/ssd2/006/14881006/public_html/test/index.php
on line 8
Code is below.
********************************************************************************************************************
<!DOCTYPE html>
<?php
//Determine if the submit button has been clicked
to set the cookie name and value
if (isset($_POST['name'])){
$cookie_name =
$_POST['name'];
$cookie_value =
$_POST['value'];
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/");
// 86400 = 1 day
} else {
$cookie_name = NULL;
$cookie_value = NULL;
}
?>
<html>
<body>
<!-- Form to get cookie name and
value -->
<form action="index.php"
method="post">
<p>Cookie
name: <input type="text" name="name" /></p>
<p>Cookie
value: <input type="text" name="value" /></p>
<br>
<p><input type="submit" name="Submit"/></p>
</form>
<?php
//Display
cookie name and value
if(!isset($_COOKIE[$cookie_name])) {
echo "Cookie
named '" .$cookie_name. "' is not set!";
} else {
echo "Cookie '"
.$cookie_name. "' is set!<br>";
echo "Value is:
" .$_COOKIE[$cookie_name];
}
?>
<p><strong>Note:</strong> You might have to
reload the page to see the value of the cookie.</p>
</body>
</html>
In: Computer Science
For this assignment you will create a set of simple classes that model a cookbook. The cookbook will consist of set or recipes. Each recipe will consist of a set of ingredients and instructions. Your submission will consist of the below three classes and a test driver (the only class with a main()) that exercises the functionality of your system.
You will need to implement the following classes based on the description of their attributes and operations:
In: Computer Science
Question.
Peyton Smith enjoys listening to all types of music and owns countless CDs. Over the years, Peyton has gained a local reputation for knowledge of music from classical to rap and the ability to put together sets of recordings that appeal to all ages.
During the last several months, Peyton served as a guest disc jockey on a local radio station. In addition, Peyton has entertained at several friends’ parties as the host deejay.
On June 1, 2016, Peyton established a corporation known as PS Music. Using an extensive collection of music MP3 files, Peyton will serve as a disc jockey on a fee basis for weddings, college parties, and other events. During June, Peyton entered into transactions that were posted to the accounting equation grid in Part 1 of this problem.
| Required: | |
| 3. Prepare a retained earnings statement for PS Music for the month ended June 30, 2016.* | |
| 4. Prepare a balance sheet for PS Music as of June 30, 2016.* |
Information
| Labels | |
| Expenses | |
| For the Month Ended June 30, 2016 | |
| June 30, 2016 | |
| Amount Descriptions | |
| Change in retained earnings | |
| Dividends | |
| Net income | |
| Net loss | |
| Retained earnings | |
| Retained earnings, June 1, 2016 | |
| Retained earnings, June 30, 2016 | |
| Total assets | |
| Total expenses | |
| Total liabilities and stockholders’ equity | |
| Total stockholders’ equity |
X
Income Statement
Shaded cells have feedback.
ending balances for accounts are shown in the following summary grid.
| Assets | = Liabilities + | Stockholders’ Equity | ||||||||||||||
| Cash | + Accounts Receivable | + Supplies | = Accounts Payable | + Common Stock | - Dividends | + Fees Earned | - Music Expense | - Office Rent Expense | - Equipment Rent Expense | - Advertising Expense | - Wages Expense | - Utilities Expense | - Supplies Expense | - Miscellaneous Expense | ||
| Bal. | 3,920 | 1,000 | 170 | 250 | 4,000 | – 500 | 6,200 | – 1,590 | – 800 | – 675 | – 500 | – 400 | – 300 | – 180 | – 415 | Bal. |
In: Accounting
Topic-Research and Development Costs
Beta Ltd incurred development costs that may be capitalised of Sh.24,000,000 on 31 March 2014.The asset was available for use on 1 May 2014 and the marketing division completed the following estimates of future sales for the year ending 31st December:
| 2014 | 2,800,000(production commenced on 30 June 2014) |
| 2015 | 3,600,000 |
| 2016 | 3,300,000 |
| 2017 | 2,000,000 |
| 2018 | 1,800,000 (production ceased and asset derecognised on 30 June 2018) |
The average gross profit mark-up on sales is 25% , while the associated sales and administrative expenses amount to 6% of the selling price.The fair pre-tax discount rate for Beta Ltd is 10% and the cash flow are deemed to have taken place on the last day of the Financial year.The fair value less costs to sell of the asset is Sh.13,000,000 at 31st December 2016
The company plans to amortise the development costs over a period of 48 months ( the estimated market life) but a technical problem caused production to cease temporarily between 1 january 2016 and 31 May 2016.The total development costs were written off during the year ended 31 December 2015 as the technical feasibility of the product was questioned at that stage and thus an impairment loss was recognized.
Further development costs amounting to Sh.3,900,000 were incurred between January and May 2016.However, the problem with technical feasibility was solved in the interim and production recommenced on 1 june 2016, thus leading to a reversal of the impairment loss.The actual sales figure for 2016 was Sh.28,000,000, while the estimates for 2017 and thereafter increased by 20% as a result of an unexpected increase in demand for the now improved product.The estimated market life still expires on 30 june 2019
Required:
Illustrate how development costs will be accounted for in the statement of comprehensive income for the year ended 31 december 2015 (show your workings)
In: Accounting
Mr. Ben Barns wanted to start a home based business that would specialize in selling t-shirts. The business would be operated from his principal residence. He set aside 20% of the total floor space in the residence for the t-shirt operations. Mr. Ben Barns’ principal residence, costing $ 950,000 in total, was acquired on January 01, 2016. It is estimated that $ 350,000 of this total value can be attributed to the land value. Mr. Ben Barns incurred the following 2016 costs relating to the principal residence: $ 2,500 Utilities For The Home (Heat, Light, And Water) $ 7,000 Mortgage Interest Paid $ 4,500 House Insurance $ 8,000 Property Taxes $ 6,000 Repairs & Maintenance For The Home ———— $28,000 Total Costs The business commenced operations on March 01, 2016. On that date, Mr. Ben Barns purchased the following assets to be used in his new business: $30,000 Office Furniture & Storage Shelving $ 3,000 Computer $ 1,000 Business Software In addition, Mr. Ben Barns had a separate telephone line installed for dealing with the mail order business. During the period March 01, 2016 through December 31, 2016, Mr. Ben Barns’ mail order sales totaled $ 450,000. Costs associated with these sales included the following: $250,000 Cost Of Merchandise Sold $ 50,000 Unsold Merchandise (Lower Of Cost And Fair Market Value) $ 7,000 Packaging Materials $ 10,000 Mailing Costs $ 4,000 Office Supplies $ 3,000 Telephone Charges $ 6,000 Printing Of Brochures Required: Can Mr. Ben Barns deduct work space in the home costs? Briefly explain your decision. Calculate Mr. Ben Barns’ 2016 minimum net business income or loss that he will report on his 2016 income tax return. Briefly discuss any issues that should be discussed with Mr. Ben Barns regarding the work space in his home and business costs
In: Finance