Sunday, 27 May 2018

25 web development tips to boost your skills

1. Clear lists

Clearing floating elements is part of the grind for most web developers. We can still get caught out though. For example, how do you clear floated list elements without setting a height? “The answer to this little dilemma is actually really simple,” says Rhys Little of Plug and Play, “Just add the following two CSS properties to any list container with floated list elements.”
 display: block;overflow: hidden;
If you check the list container now with any DOM inspector you’ll find that the height attribute has automatically been calculated - and that fixes the issue.

2. Sandbox

If you want to develop techniques, CSS effects or new kinds of transition, for example, do it as a sandbox project. “Keeping experimentation uncluttered by outside influences makes the code much easier to debug if something isn't working as expected,” says Creative Director Shane S. Mielke.

3. Web inspectors

Developers differ on which web inspector is best, but they all agree that we struggled before our favourite browsers had them. New Context’s Paul Wilson points out that you can preview CSS changes live in Chrome or Safari. Right click on an element, and choose ‘Inspect Element’, says Wilson, “All the applied CSS will be shown in the right inspection pane. You can edit or add new elements here, to see the effects of your changes.”

The web inspector isn’t accessible by default in Safari on the Mac. Enable it by going to Preferences >Advanced>Show Develop menu in menu bar.

4. Firebug and beyond

Chrome and Safari have a web inspector built in, but Mike Ballan, Digital Designer at Jellyfish stands by the original Firefox Developers Toolbar. “It’s the perfect thing to detect those little CSS problems when testing your site in multiple screen sizes,” says Mike.

“Firebug has just added the ability to display multiple screen sizes in one browser tab too - which means you will never need to change your browser’s width to test your site again."

5. One thing at a time

Ben Howdle, developer of Didlr at wapple.net, says he cannot stress the importance of the Single Responsibility Principle enough. “Every object in your code should have one function. Even with CSS. Don't put all styles onto a .button class. Split it into .button-structure and .button-face and so on...”

Why? Because if you don’t do that and something breaks, you’ll have a heck of time tracing back through your code, finding which object is the problem - and whether the bug is inherited from higher in the DOM.

6. Can you code it?

Ben also thinks that falling back on frameworks and libraries isn’t always the best answer. “If you're coding a small project and always, for example, include jQuery, think ‘Can I do this with Vanilla JS?’” You may find that, indeed, you can do it in JavaScript, better and faster.

Project Management

7. Get Git

If you’re working on big projects, you need a robust versioning system. Many devs swear by GitHub, but there’s a downside if your project is private. Your code is hosted on GitHub’s servers and publicly available. The folks at Plug and Play recommend GitLab.

“GitLab is very similar to GitHub but is completely open source and free to set up on your own servers,” says Rhys Little. “The best set-up for GitLab is to use NGINX with Unicorn to improve performance and speed - but Apache with Passenger will work as well.

“The biggest advantage of this arrangement is that all your code is backed up each time you commit, with a really useful diff viewer so you can see what has been changed on each commitment.”

8. Commented code

Team workers in particular, remember that other people need to understand your code - use your resources and work through your files. “Don't be Lazy,” says Shane S. Mielke. “Always comment your code, name your layers and organize your PSDs and FLAs. The more organised your files are the easier it is for you or others to jump in and understand where things are at and how they work.”

9. Secure your site

Before you go live with a website, be sure to run it through ASafaWeb.com (pronounced A-Safer-Web). “This site, written by Microsoft MVP Troy Hunt, scans ASP.NET websites for a range of common security issues,” says .NET dev Macs Dickinson. “Should you fail any of the tests, it will advise you how to resolve the problem.”

10. Automate

“Don’t waste time deploying or manually running unit tests. Automate it,” says Macs, “Time spent getting to grips with NAnt or MSBuild is time well spent as it will decrease the number of hoops you need to jump through when that deadline is looming.”

11. Team tracker

The team at Unboxed Consulting use Pivotal Tracker and Pivotal Booster for project management and feature/bug tracking. “There are other tools for this but Pivotal Tracker is a the simple, lightweight options,” the team told us. “We regularly use it to track progress through projects.”

12. Perfect pictures

Pixel Perfect is a tool Unboxed use for comparison of initial designs with the actual front-end that the development process spits out. “This little Firefox plugin allows you overlay a jpeg version of your designs right on top of the page,” say the Unboxed team. “You can check down to the last pixel that everything lines up!”

13. Dotted lines

Unboxed has a smart, intuitive idea for tracking progress in coding pages. “Sometimes working on the front end we use an ‘incomplete’ or ‘todo’ CSS class which gives a dotted outline to elements which don’t work or are unfinished,” the team tells us. “We can clearly see what needs work before going live.”

Mobile

14. Active phone numbers

“Most mobile devices have the ability to make calls, so take advantage of that in your page code,” says Mike Ballan. Wrap the number in the <a href> tag. Instead of http:// as the protocol you use “tel:”

Here’s what that might look like:
<a href="tel:0123456789">0123456789</a>

15. High or low?

Is your site ready for retina screens? Don’t think you’re OK just because the numbers are on your side right now, because it won’t stay that way forever.

“There are a couple of solutions for switching images depending on response to screen resolution,” says Mike. “There’s the JavaScript framework retina.js which uses Apple’s @2x naming convention to swap out standard images with hi-res versions.

“It’s also possible to supply high-res images to iOS devices using webkit-image-set”. Here’s how:
.header { background: -webkit-image-set( url(images/header.jpg) 1x, url(images/header_2x.jpg) 2x);}

16. Fixed position

Want to have fixed navigation or a contact bar at the bottom of your site? When it comes to mobile, you’ll have to keep in mind that only a few browsers support the ‘fixed’ class. “Windows Phone 7 will replace the ‘fixed’ class with ‘static’ - which isn’t a good thing,” says Mike.

Here’s his list of mobile operating systems that support the ‘fixed’ attribute in CSS:
  • Mobile Safari iOS5 and above
  • Android 3 and above
  • Blackberry 7.0 and above

Shortcuts

17. Sprite me

Turn buttons, icons and backgrounds into sprites to speed up page downloads. Combining multiple images into one file reduces the number of requests the client must make to your server. “Some developers will group images by type,” says Rhys Little, “Others will just combine everything into one file”.

You then use the CSS background-position attribute to just show the portion of the image you want. The image downloads once, is cached once and requested once. If that sounds like too much hard work, use online tool SpriteMe to do the donkey work. It scans your page for images it can combine and generates the CSS for you.

18. White space

“Shrinking down the white space and even function names of your JavaScript and CSS will greatly reduce your page load times,” says Rhys. He suggests combining all your JavaScript and CSS into one or two files, then passing those files through YUI Compressor.

19. Actions

Even designers forget how easy Photoshop Actions can make their lives. Developers won’t forget this one: Photoshop Web Workflow.

“Once installed, you click on any layer in Photoshop and hit the F1 key,” says Paul Wilson, “This grabs the layer, puts it in a new document that is the exact dimensions and brings up the Save for Web window”.

A simple sounding sequence, but one that will make background creation, prototyping and sprite making much faster

20. If then

Keir Whitaker of Viewport Industries can’t live without Mac application TextExpander: “It allows you to assign shortcuts to big chunks of text. For example if I want to output the WordPress loop in my code editor I simply type // loop. It works system wide and is a great tool for building time consuming code structures, like nested lists.

21. Refreshed

Keir is also a fan of CodeKit “If you are on a Mac then CodeKit is a must,” he says, “ The browser reloading feature is worth the small cost alone. It’s also great for image optimisation, and compiling Sass and JavaScript.

22. You’ve all got mail

“It's a full-time job maintaining your app's mailing function, so save yourself a headache and outsource it,” says UX Developer Will Grant. Services like SendGrid or Mandrill handle deliverability, spam protection, bounce reports - the lot. “These things are super-cheap or even free for your first few thousands mails.”

Responsive sites

23. Media queries

“When building responsive sites, media queries are the backbone of the process,” says Mike Ballan, “They match the media type of your device and display the CSS you have declare”. For example:
body { text-color:#000000; }@media only screen and (min-width:1200px) {body { text-color:#FF0000; }}
The code above traps screen resolutions at 1200px or higher and applies the colour red to all body text on the page. If the screen size is less than 1200px it will display black body text.

So far, so simple - but seasoned devs know that this process can soon get cumbersome as you struggle to please all of the people all of the time.

“Use a CSS Framework like Amazium” says Mike. It replaces the need to write a billion different media queries with simple, semantic classes

24. A heavier choice

If a more heavyweight framework is required then Twitter’s Bootstrap or ZURB’s Foundation might do the trick.

25. Turn things off

“When making responsive sites, you don’t really want users to be able to double tap and zoom, as all your content should be visible,” says Mike Ballan, “To do this you will need to add some code that disables user zooming and scaling”.
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
This code will also enable iOS device to display sites more elegantly when the iPad or iPhone is rotated.

Thursday, 24 May 2018

CS201 Assignment no 2 Solution 2018

/*
Regrads,
Muhammad Hamza Baig
Biggnerstart.blogspot.com
 */

#include <iostream>
using namespace std;

void computeUserLevel (char *) ;

int main()
{
    cout<<"\t\tProgram To Predict User Programming Level"<<endl;
char Y [4];
for (int k=0; k<=0; k++)
{
cout<<"Q: Switch is a loop?\nA: ";
cin>> Y[0];
cout<<"Q: Pointers store memory addresses?\nA: ";
cin>> Y[1];
cout<<"Q: Semicolon after for loop is an error?\nA: ";
cin>>Y[2];
}
computeUserLevel(Y);
return 0;
}
void computeUserLevel (char *ptr)
{
if (*ptr == 'f' && *(ptr+1) == 't' && *(ptr+2) == 'f')
{
cout<<"Your level is advanced";
}
else if (*ptr == 'f' && *(ptr+1) == 't' && *(ptr+2) == 't')
{
cout<<"Your level is Intermediate";
}
else
cout<< "Your level is Beginner"<<endl;
system ("PAUSE");
}

Sunday, 13 May 2018

MTH202 Assignment solution 2018



Q#1: Use the truth table to test the validity of the following argument
If you invest in the HBFC, then you get rich.
You didn’t invest in the HBFC.
Therefore, you didn’t get rich.                                                                     Mark=5


Answer :
  
Step 1:

First symbolize the argument.
Let p be the argument “you invest in the HBFC.”
Let q be the argument “you get rich.”

Then the argument has this symbolic form.

                                                            




Step 2:

Make a truth table having a column for each premise and for the conclusion.

                                                                          

P
q
T
T
T
F
F
T
F
F
F
T
F
T
T
T
F
F
F
T
T
T



Step 3:

Interpret the truth table.
Notice that in the third row, the conclusion is FALSE while both premise are TRUE.
This tells us the argument is INVALID.








Q#2: Prove that the statement   
                  

 is tautology.

                                                                                                                        Mark=5
  



MGT 101 Assignment 1 Solution 2018


Solution:
·        Sales Revenue
Gross Profit =Sale – cost of goods sold
40000=Sales- 55000
40000+55000=Sale
Sale Revenue =95000

·        Fixed Assets

Fixed Assets = Plants and machinery +land & building + Furniture and Fixture
Fixed Assets = 750000+840000+170000= 1760000
·        Current Assets
Current Assets= cash at bank + Income earned expected to be received within 3 months + Closing stock

Current Assets = 45,000+10000+20,000
Current Assets = 75000

·        Current Liabilities

Current Liabilities’ = Office expenses incurred expected to be paid within 3 months +Sundry Creditors
Current liabilities = 15000+25000

Current Liabilities’ = 40000

·        Selling Expense
Selling Expense = Salaries of marketing staff + Advertisement Expense

Selling Expense =150000+65000

Selling Expense =215000


·         Capital to be shown in balance sheet as on 31st December 2017

 Capital = Capital +Net Profit
Capital =500000+46000
Capital to be Shown in balance sheet =546000


CS 304 Assignment 1 Solution


Q No 1 Answer:
Relevant objects Categories in case study:
i)                    Costumer
ii)                   Vehicles
iii)                 Car, Coaster, Bus
iv)                 Drivers
v)                  Engines , Tires
Q No 2 Answer:
Object Model for that problem:



Tuesday, 8 May 2018

The "American Dream" In A Raisin In The Sun By Lorraine Hansberry


"To be young, naturally high-powered powered of mind and black" Lorraine Hansberry) is  a group of wordswhich is commonly connected with Lorraine Hansberry, which comes from the group of (related to people writing about themselves) pieces which were put together by her ex-husband in the her great respect when she came  to death. from end to  end the years, people from all walks of livinghave come to America with has uncontrolled thoughts in sleep of a better living, in manydifferent areas such as grouping, about education, and money-related chances as well as political and  with strong feeling of religion states of being free. With these desires and especially pleasing thoughts, the group of words "living, freedom and the going after of happiness" (Mitchell), which to many Americans has in the american specially pleasing thought, can become a material fact orjust a hard, rough memory help of what the american specially pleasing thought stands forbecause for some it comes true but for a great number of, they are never able to get stretchedtheir specially pleasing thought. She wrote the play a sundried grape in the Sun to let see peoplethat supporting friends and family members is important through the hard and attempting time. If you can work hard and truly have belief in yourself, especially pleasing thoughts can come truein one form or another. The American especially pleasing thought to each person, no material or substance existence-stage, and group of the same blood or sex has a different that is. A sundriedgrape in the Sun is important because it children/child to 2 over the continued discussion ofdivisions in people because of different blood and sex issues which rose up during the time this play was written , and even during the present day and existence-stage.
The American especially pleasing thought in the 50s was tropical to (wanting, increasingly than anything else, to buy and own lots of nice things). The owner-ship of user products (that are bought and sold) was had weighing to take Joy into a family's living. This worldwide view has executive effect on the have uncontrolled thoughts in sleep of one of the main notation1 in Lorraine Hansberry's play. The sign of position of the play is based on Harlem by Langston Hughes, a verse that raises a question well- nigh an especially pleasing thought that is put off to a later time. Does it dry up like a sundried grape in the sun? Or does it go off? Ampersand 1995, pg. 426) There are three main notation 1 and all three of them of have has uncontrolled thoughts in sleep that have been going on for a long time for too long. A sundried grape in the Sun is well- nigh the Rocky trip they go through to wilt owner of their hats uncontrolled thoughts in sleep.
The younger's family has just received a $10, 000 dollar trammels for their sufferer father's living insurance agreement. They full of gravity in a 2 bedroom rooms in another's house on the woebegone side town in Chicago. Divisions in people considering of variegated thoroughbred starting opinions versus blacks in that time and a poor are the root of opposite position in the family. Mother, sufferer Mr. Younger’s woman not married then wants to requite money for a house and put into effect the especially pleasing thought she once saw with her married man. Beneath , mother's daughter, hopes to discover her mind and physical qualities through looking in the direction of true African what is, may be handed down. Walter, mother's son, wants to one day wilt full of money. He wants to make full then his marriage and make ready his son with all the chances he never had growing up.
Walter wants to requite money in the swig drink merchant with a few of his friends. Although the idea shocks mother at first, she believes and supports her son with his decision. The night surpassing making the an outer tent Walter tells his son well- nigh the merchant bit of merchant he well- nigh to make while tucking him into bed. He tells the little boy that their lives will transpiration soon and paints a requite increasingly details and strong picture of the future. He tells his son that when he is 17 years old he will come home and park the Chrysler in the driveway. The gardener will come to the eyes, ears him and when he is inside the house he will kiss his married woman and come up to his sons room to see him taking grass for supplies through small books of the weightier colleges in America . He then tells his son that he will requite him whatever he needs. Although Walter is somewhat value-minded in what he wants at the middle part, heart he just wants a happy family and a son who should have all the chances he never had. During this time mother buys a house to put into effect the especially pleasing thought she saw with her married man; the only one she can have unbearable is in a white suburban one part of town. Mr. Lindner a man from the one part of town comes to the younger house trying to make come round them to not put an end to the white town. He offers an unconfined value of money in mart for their snout of exchange. Meanwhile Walter loses all the money he has given in the swig drink store considering me friend has run yonder with it. When he loses the greater number or part of their money merchant useful things/valuable supplies the well- constructed family falls into a deeper level of feeling lanugo times. At this time, Walter comes to a visualization well- nigh to take the money the white man has to offer. The thought of trading for money yonder their right troubles mother, Walter's sister and his married woman. They have a feeling of hate Walter for trading with his sufferer fathers money so hands and have a feeling of that he has lost his seat of feeling when he days we wants to be bought out by the white Mr. Lindener

In the end, losing everything they have gets together them considering at the last short time Walter changes his mind well- nigh taking money from Mr. Linden Walter tells him that they have moved into the house considering their father earned it for them. He goes on by saying that they do not need to make (give) trouble the one part of town peace or protest for worthier causes, and that they would be nice people living near. He tells Mr. Linden that he doesn't need the money. At this short time the well- constructed family's body-less beings are lifted and they are pleased as the result of good things washed-up of the visualization Walter has made. This act of stand by your family to get washed-up the American specially pleasing thought of coming after, taking the place of no field of interest who you are and where you come from gets together them. They learn to support each other and put their families surpassing their own. By stuff the owner a house, having an upper mood, and the support of their family, each of them is on their way to put into effect their American especially pleasing thought.

Thursday, 3 May 2018

CS101 Assignment Solution 2018


Question No. 1 Solution.
For your information  this assignment generated in HTML5.

Sample Output Attached

Your VU ID

You Name

Virtual University Of Pakistan

Semester Degree Program Course Code
1st BSCS CS101
CS201
MTH401
EMTH501
STA301



<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>Your VU ID</h1>
<h2>You Name</h2>
<h2>
<a href="http://www.vu.edu.pk/">Virtual University Of Pakistan</a>
</h2>
<table border="2">
<tr>
<th>Semester</th>
<th>Degree Program</th>
<th>Course Code</th>
</tr>
<tr>
<td rowspan="6" align="center">1st
</td>
<td rowspan="6" align="center">BSCS
</td>
<td>CS101
</td>
</tr>
<tr>
<td>CS201
</td>
</tr>
<tr>
<td>MTH401
</td>
</tr>
<tr>
<td>EMTH501
</td>
</tr>
<tr>
<td>STA301
</td>
</tr>
</table>
</body>
</html>

Tuesday, 1 May 2018

Assembly Language Programming Relevant Contant

Dear Fellows here are Links material relevant to Assembly Language get content from here and remember me in your prayers.
 
art-of-asm/                                        05-Oct-2017 08:12       -
1994_ARMv7_instructions_set.pdf                    11-Sep-2014 18:59    437K
2004_ARM_assembler.pdf                             11-Sep-2014 19:00      1M
2005_x86_assembleur.pdf                            11-Sep-2014 18:59      1M
2007_ARM_instructions_set.pdf                      11-Sep-2014 18:56    187K
2011 - Assembly Language for x86 Processors 6e ..> 23-Jan-2013 21:37      2M
64 Bit Intel Assembly Language Programming for ..> 07-Jul-2016 14:43      5M
6502 Assembly-Language Programming for Apple, C..> 08-May-2016 00:34     36M
ARM Assembly Language Programming - Pete Cocker..> 07-Dec-2014 21:23      2M
ARM Assembly Language Programming [Cockerell 19..> 08-May-2016 00:40      2M
ARM Assembly Language with Hardware Experiments..> 08-May-2016 00:43     14M
ARM Assembly Language_ Fundamentals and Techniq..> 08-May-2016 00:41      4M
Adressage, directives assembleur.pdf               07-Jul-2016 14:43    320K
Apprendre l assembleur (INTEL - DOS 16 bits).pdf   07-Jul-2016 14:43    449K
Apprendre l_assembleur (INTEL - DOS 16 bits).pdf   07-Jul-2016 14:43    449K
AsmTut.zip                                         07-Jul-2016 14:43     86K
Assembly Language Primer for the IBM PC & XT [L..> 08-May-2016 00:33     12M
Assembly Language Programming for the Atari Com..> 08-May-2016 00:29     67M
Assembly Language Programming_ ARM Cortex-M3 [M..> 08-May-2016 00:43      4M
Assembly Language Step by Step_ Programming wit..> 08-May-2016 00:33      6M
Assembly Language Step-by-Step Programming with..> 07-Dec-2014 21:36      9M
Assembly Language Step-by-Step [Duntemann 1992-..> 08-May-2016 00:34      8M
Assembly Language Step-by-Step_ Programming wit..> 08-May-2016 00:34      4M
Assembly Language Step-by-Step_ Programming wit..> 08-May-2016 00:33      4M
Assembly Language Subroutines [Leventhal & Savi..> 08-May-2016 00:39     41M
Assembly Language for Intel-based Computers (4t..> 08-May-2016 00:32     83M
Assembly Language for x86 Processors (6th ed.) ..> 08-May-2016 00:32      2M
Assembly Language for x86 Processors (7th ed.) ..> 08-May-2016 00:32     12M
Assembly Language for x86 Processors 6th Ed.pdf    07-Dec-2014 21:23      3M
Assembly Language, The True Language Of Program..> 07-Dec-2014 21:23      5M
Assembly_handouts2.pdf                             07-Mar-2016 02:38    101K
Atari Assembly Language Programmer's Guide [Moo..> 08-May-2016 00:40     70M
Atari Roots_ A Guide to Atari Assembly Language..> 08-May-2016 00:36     65M
CoursASM.pdf                                       03-Feb-2009 21:31    449K
Guide to Assembly Language Programming in Linux..> 08-May-2016 00:33     31M
Guide to Assembly Language_ A Concise Introduct..> 08-May-2016 00:36      2M
How to Program the Z80 [Zaks 1979-01-01].pdf       08-May-2016 00:37     13M
IA-32 Intel® Architecture Software Developer's ..> 07-Dec-2014 21:23      2M
IBM PC Assembly Language and Programming (4th e..> 08-May-2016 00:43      8M
Initiation Assembleur.pdf                          07-Jul-2016 14:43    320K
Introduction to 64 Bit Intel Assembly Language ..> 08-May-2016 00:40      5M
Introduction to 80x86 Assembly Language and Com..> 08-May-2016 00:35      5M
Introduction to Assembly Language Programming_ ..> 08-May-2016 00:32      3M
Introduction to Assembly Language Programming_ ..> 08-May-2016 00:32      3M
Introduction to RISC Assembly Language Programm..> 08-May-2016 00:32      4M
Introduction_to_x64_Assembly.pdf                   07-Mar-2016 02:38    304K
Jones and Bartlett,Introduction to 80x86 Assemb..> 07-Dec-2014 21:25      5M
Langage Assembleur PC.pdf                          07-Jul-2016 14:43      1M
Langage assembleur.pdf                             07-Jul-2016 14:43      4M
Language Programming [Leventhal 1978].pdf          08-May-2016 00:38     14M
Language d_Assemblage Et Mode d_Adressage.pdf      07-Jul-2016 14:43    320K
Linux Assembly Language Programming 2000.pdf       07-Dec-2014 21:25      2M
Linux Assembly Language Programming [Neveln 200..> 08-May-2016 00:29      2M
MASMReference.pdf                                  07-Dec-2014 21:25    646K
MIPS Assembly Language Programming 2003.pdf        07-Dec-2014 21:20    525K
MIPS Assembly Language Programming [Britton 200..> 08-May-2016 00:32    628K
Machine Language for the Commodore 64 and Other..> 08-May-2016 00:37     11M
Modern X86 Assembly Language Programming_ 32-bi..> 08-May-2016 00:41      9M
Pas a pas vers l assembleur.pdf                    07-Jul-2016 14:43      2M
Piton_ A Mechanically Verified Assembly-Level L..> 08-May-2016 00:43     11M
Professional Assembly Language [Blum 2005-02-11..> 08-May-2016 00:35      7M
Professional Assembly Language.pdf                 07-Dec-2014 21:22      7M
Programmation Assembleur Avance.pdf                07-Jul-2016 14:43    269K
Programmation Infomatique Avance Assembleur.pdf    07-Jul-2016 14:43    269K
Programmation Infomatique Avancee Assembleur.pdf   07-Jul-2016 14:43    269K
Programming the VIC_ The Definitive Guide to th..> 08-May-2016 00:40     11M
See MIPS Run (2nd ed.) [Sweetman 2006-10-31].pdf   08-May-2016 00:29      5M
The Art Of Assembly Language 2003.chm              07-Dec-2014 21:38     18M
The Art Of Assembly Language.pdf                   03-Feb-2009 21:31      5M
The Art of Assembly Language (2nd ed.) [Hyde 20..> 08-May-2016 00:42      5M
The Art of Assembly Language.pdf                   07-Jul-2016 14:43     22M
The Zen Of Assembly Language 1990 - Michael Abr..> 07-Dec-2014 21:23      3M
The art of Assembly Language 8086.pdf              07-Dec-2014 21:42      4M
WRITE GREAT CODE, Vol. 2 Thinking Low-Level, Wr..> 07-Dec-2014 21:23      4M
Windows Assembly Language & Systems Programming..> 08-May-2016 00:36     11M
Windows Assembly Language & Systems Programming..> 07-Dec-2014 21:31     13M
Windows Assembly Language and Systems Programmi..> 08-May-2016 00:37     13M
Windows assembly language and systems programmi..> 07-Dec-2014 21:39     13M
Write Great Code Understanding the Machine, Vol..> 07-Dec-2014 21:31      8M
X86 Assembly Language and C Fundamentals [Cavan..> 08-May-2016 00:40      4M
X86 Disassembly.pdf                                07-Jul-2016 14:43      2M
XXXX_ARMv7_thumb_instructions_set.pdf              11-Sep-2014 18:58    289K
Z80 Assembly Language Programming [Leventhal 19..> 08-May-2016 00:44     18M
asmcodes-1.0.2.pdf                                 03-Feb-2009 21:31    274K
initiation a la programmation en assembleur.pdf    07-Jul-2016 14:43    980K
intel_arch_optimization.pdf                        03-Feb-2009 21:31      2M
pc_asm_language.pdf                                03-Feb-2009 21:31    557K
structures.pdf                                     03-Feb-2009 21:31     33K
x86dis.pdf                                         03-Feb-2009 21:31    231K

1St Assignment no 1 ENG201 (Business and Technical English)


Business and Technical English (Eng201)

Spring 2018   
Assignment No. 1
NAME: Muhammad Hamza Baig
Roll No: bc170405478

Q1.      There are different purposes of writing a document i.e. to inform, to persuade, to describe, to prohibit, and to instruct. Read the following paragraphs carefully and choose the purpose of writing from the given options.                                                                                                                                                                     (05*2=10 Marks)
a)      Democrats should get maximum votes this time as they have worked really hard. They have passed health care bill which is going to make it easier and cheaper for you to get insurance, if you happen to be self-employed, working part-time, or working for an employer who does not provide coverage. If you are a young person, you can now stay on your parents’ plan until you are 26 years old. These are big, important changes.

Answer _______ to persuade__________

b)      An employer must provide a working environment which is reasonably practical, safe and without any risks to health. In addition, employers have to assess risks and introduce any necessary prevention or control measures.

Answer ______ to instruct ___________

c)      The Sun is a star at the center of the Solar System. It is a nearly perfect sphere of hot plasma, with internal convective motion that generates a magnetic field via a dynamo process. It is by far the most important source of energy for life on Earth. Its diameter is about 1.39 million kilometers i.e. 109 times that of Earth and its mass is about 330,000 times that of Earth, accounting for about 99.86% of the total mass of the Solar System.

Answer ______to describe___________

d)     With a view to emphasize NAB’s commitment and to express nation’s resolve to meet the future challenges and involve people of the country in the fight against corruption, National Accountability Bureau under the mandate of section 33C of National Accountability Ordinance, 1999 is intensifying its awareness campaign against corruption and is using various platforms to spread its anti-corruption messages.

Answer ________ to inform_________

e)      Drugs should not be used at all because they tear families apart; they are addictive, and destroy lives. Since these problems can develop from any kind of substance abuse, there should be a national prohibition of all forms of drugs, even medical or “soft” drugs.

Answer _____ to prohibit____________

Q2.      Effective writers make the audience believe that the most important person in their business correspondence is "you," the reader. Carefully read the body of the following letter and reproduce it with “Reader-Centered Approach” i.e. the “You Attitude”.
                                                                                                                        (10 Marks)                            
Our company is pleased to announce the loan scheme for house building. In this regard, we can provide the readily available information round the clock.
We can provide the loan in installments and on annual timeframe, whichever is feasible. We can provide information via telephone and through our website. We ensure quick services in terms of availing the loan plus giving loan-information.
In case of any dissatisfaction, our company can be contacted by you. We appreciate your willingness and relationship with our company.

ANS:
House building schemes are need of the hour for citizens. In this regards many companies provide the information about loan in installments and timeframes of your choice.
Information is available through many sources like telepath and emails and networking websites with the quick services for loan. You can easily connect to the company in case of any problem and dissatisfaction and they will help properly to resolve the current issues.

CS 201 Assignment solution 2018

// created by Muhammad Hamza Baig
// search and find solution on my blog biggnerstart.blogspot.com
#include<iostream>
using namespace std;

int main()
{
int limit, sum=0, count=0;   // Define veriable for futher usage
cout<<"Enter the limit in the range <10 ... 150>: ";
cin>>limit;     
if (limit>=10)           //applying condition 
{
if(limit<=150)    //applying condition 
{
cout<<"Numbers which are divisible by both 3 and 5 is: ";
for(int i=1; i<=limit; i++)
{
if(i%3==0 && i%5==0)           //applying condition 
{
cout<<i<<"  ";
}
}
for(int i=1; i<=limit; i++)
{
if((i%3==0 || i%5==0) && !(i%3==0 && i%5==0))    //applying condition 
{
sum =sum + i;
}
}
cout<<"\nCalculated sum: "<<sum;
for(int i=1; i<=limit; i++)
{
if(i%3!=0 && i%5!=0)
{
count++;
}
}
cout<<"\nTotal Numbers which are not divisible by either 3 or 5 is: "<<count<<endl;
}
else
{
cout<<"Wrong input!! Limit shoud not be greater than 150"<<endl;
}
}
else
{
cout<<"Wrong input!! Limit shoud not be less than 10"<<endl;
}
system("pause");
}

Featured Post

All Answers of Quiz regarding to this course on Fiverr "Online Freelancing Essentials: Be A Successful Fiverr Seller"

To Clear All quiz of mentioned Course you can have a look on or check questions answers as well. Course name:  Online Freelancing Essentials...

Popular Posts