Friday, September 28, 2018

How to Write a Memo


                 How to Write a Memo


Memos are a great way to communicate big decisions or policy changes to your employees or colleagues. It’s important that you take the time to craft a good memo so your message comes across how you want it to.

  •         Writing the Memo’s Heading. Type “MEMORANDUM” at the top of the page. State that this document is a memorandum at the outset. Label the page “MEMORANDUM” 1.5 inches (3.8 cm) from the top of the page. Put the word in bold on the first line. You can either center it on this line or left-align it. You might also choose to make the font larger for this word. Double space between this line and the next line of the heading

  •          Address the recipient appropriately. A memo is a formal business communication, and you should address the reader formally as well. Use a full name and title of the person to whom you are sending the memo. If you are sending a memo to the entire staff, you might write: “TO: All Employees.”

  •      Add additional recipients in the CC line. The “CC” line indicates who will receive a “Courtesy Copy” of the memo. This is not the person to whom the memo is directed. Rather, this is someone who may need to stay informed about policies or issues that you’re addressing in the memo.

  •        Write your name in the “From” line. The heading needs to include who is writing and sending the memo. Your full name and job title go in this line.
  •       Include the date. Write the complete date, spelling out the month and including the date and year. For example, write: “DATE: January 5, 2015” or “DATE: 5 January 2015.”

  •      Choose a specific phrase for the subject line. The subject line gives the reader an idea of what the memo is about. Be specific but concise. For example, instead of writing, “Ants,” for the subject, be more specific by writing, “Ant Problem in the Office.”


  •       Format the heading properly. The heading should be at the top of the page, aligned to the left-hand side of the page. Capitalize the words “TO:”, “FROM:”, “DATE:”, and “SUBJECT:”

MEMORENDUM

TO:  Project Manager
FROM: Qamar Abbas CS
DATE: dd-mm-yy
SUBJECT: (or RE:) What the memo is about (highlighted in some way)
            Body Starts
//
//
Body Ends
here is a link which contains a sample memorendum:
 https://drive.google.com/open?id=11hNg4dpINPf0xA3hz_gEFZVuNjtaAzzT

Writing the Body of the Memo
  •      Consider who the audience should be. In order to get people to read and respond to the memo, it’s important to tailor the tone, length, and level of formality of the memo to the audience who will be reading it. Doing this effectively requires that you have a good idea of who the memo is intended for. Think about your audience’s priorities and concerns are. Try to anticipate any questions your readers might have. Brainstorm some content for the memo, such as examples, evidence, or other information that will persuade them. Considering the audience also allows you to be sensitive to including any information or sentiments that are inappropriate for your readers.
  •  Skip a formal salutation. A memo does not begin with a salutation like “Dear Mr. Edwards.” Instead, dive right into your opening segment that introduces the matter you’re discussing in the memo.
  • Introduce the problem or issue in the first paragraph. Briefly give them the context behind the action you wish them to take. This is somewhat like a thesis statement, which introduces the topic and states why it matters. You might also consider the introduction as an abstract, or a summary of the entire memo .As a general guideline, the opening should take up about one paragraph. For example, you might write: “As of July 1, 2015, XYZ Corporation will be implementing new policies regarding health coverage. All employees will receive health coverage and will make a minimum of $15 per hour.”
  •  Information about the issue you’re addressing. Give some context, but be brief and only state what is necessary.  If it’s relevant, continue your memo by stating why the policy is being implemented. For example, you might write: “The county government voted to require all employees in the county to receive a $15/hour minimum wage
  •  Support your course of action in the discussion segment. Give a short summary of the actions that will be implemented. Give evidence and logical reasons for the solutions you propose. Start with the most important information, then move to specific or supporting facts. State how the readers will benefit from taking the action you recommend, or be disadvantaged through lack of action. Feel free to include graphics, lists, or charts, especially in longer memos. Just be sure they are truly relevant and persuasive. For longer memos, consider writing short headings that clarify the content of each category. For example, instead of stating "Policies," write "New policies regarding part-time employees." Be specific and brief in every heading so that the basic point of your memo is apparent to the reader right away.
  •  Suggest the actions that the reader should take. A memo is a call for action on a particular issue, whether it is an announcement about a new company product, new policies regarding expense reports, or a statement about how the company is addressing a problem. Restate the action that the reader should take in the closing paragraph or sentence. For example, you might write, “All employees must use the new accounting system by June 1, 2015.” This can also include some evidence to back up your recommendations.

Saturday, September 15, 2018

Enter Strings and Integers in Java

Enter Strings and Integers in Java

JAVA ENTERING STRING:

A string is group of characters, alphabets, numbers enclosed within quotes.
Java provides a special mechanism for handling exceptions (exceptions means the wrong inputs which can cause the program to crash or fail). To handle exceptions is to append the clause “throws IOException” to the declaration of main() method as
Public static void main(Strings args[]) throws IOException
Following syntax should be followed to input string in java program:
Import java.io.*;

Public class hello
{
Public static void main(Strings args[])throws IOException
{
InputStreamReader reader= new InputStreamReader(System.in);
BufferedReader input= new BufferedReader(reader);
System.out.println(“Enter your name”);
String name=input.readLine();
System.out.println(“hello” +name+”!”);
}}
OUTPUT:
Enter your name Qamar Abbas
Hello Qamar Abbas
Explanation:
The program prints the prompt “Enter your name” and then waits for input. When user types “qmarabbas” and press enter, the system responses immediately and produces output on screen “ helloQamarabbas”
The whole scenario takes place in five steps or with five objects say system.in, reader, input, name, and system.out. System.in and system.out objects are defined in System Class. The other three are defined in the program on the ist, 2nd and 3rd line.
Import Java.io.*: 
it tells the java compiler to check into the java input/output library for four classes as IOException,InputStreamReader, BufferdReader.
InputStreamReader reader:
Reader is an instance for the class InputStreamReader. The object reader will serve as a conduit (con-du-it), conveying data from the keyboard into the program. It reads the bytes that come from the keyboard such as {65 108 32 71 111 114 101 13}. These are the values of byte type.
BufferedReader input: 
Input is an instance for the class BufferedReader. It extracts the input in more convenient way. It converts the byte type input into character type {“Qamar Abbas”}. It uses its function readLine() to read a line of characters and assigns the string to the instance name of class String
String name=input.readLine():
the instance gets the value from the readline() function of called by input instance.
System.out.println(“hello” + name):
the system.out instance puts the stream of characters into its println() function which displays everything in parenthesis on screen.

Java Integer Input:
import java.io.*;
classneumaricinput{
public static void main(String args[])throws IOException{
InputStreamReader reader= new InputStreamReader(System.in);
BufferedReader input= new BufferedReader(reader);
String text=input.readLine();
System.out.println("Enter your age");
int age= new Integer(text).intValue();
System.out.println("you are "+age+" years old, now");
int year=2017-age;
System.out.println("so you proablly born in "+ year);
}
}
Everything is same as in string input method except following lines:
String text=input.readLine():
The method readline() called by input instance reads all the input in form of characters and assigns it to the instance of the String Class “text”.
Int age= new Integer(text).intValue():
This expression converts the character type input into integer type and stores it in the variable age.

Java Double Input
import java.io.*;
classAreaCircle{
public static void main(String args[])throws Exception{
InputStreamReader reader= new InputStreamReader(System.in);
BufferedReader input= new BufferedReader(reader);
System.out.println("Enter radius of circle");
String text= input.readLine();
Double x=new Double(text);
double r=x.parseDouble(text);
double area=Math.PI*r*r;
System.out.println("area of circle is "+area);
}
}
The structure of this program is same as previous two programs except the following lines;
Double x=new Double(text):
x is the object of the class Double. This x has obtained the value from text object of String class and this value cannot be used directly in expression because value in an object is different from the value in a variable.
Double r=x.parseDouble():
the value of object x from Double class is assigned to a double type integer r.

**for float use the line (float a=new Float(text).floatValue();)