How do you evaluate this ?

6/2(1+2)

 

The answer is 1 or 9?

6/2(1+2)

1) 6/2(3)

2) 6/6

3) Answer: 1

That’s it… or..

6/2(1+2)

1) 6/2(3)

2) 3(3)

3) Answer: 9

The correct answer is on how you evaluate the operator precedence. If you think the operator of division and multiplication have the same precedence, then you evaluate it from the right (division) to the left (multiplication), so your answer is 1 but if you think the multiplication has the higher precedence compared to division, then your answer is 9. In some programming languages, such as C++, it treats the multiplication operator as higher precedence over division. So, a C++ programmer will answer it as 9. Engineer students should agree with this. So let’s redo:

1)

problem

2)

sol2

3)

sol3

4) Answer: 9

============= MaXi32 ===========

How to disable UAC for a specific program in Windows 7?– The effective way for now.

*Very useful if you want to disable UAC for a certain programs that you trusted rather than disable completely UAC setting in Control Panel which is not recommended!

1) Download and Install Microsoft Application Compatibility here 

 msapp_shorcut

 

2) Run Compatibility Administrator (32-bit) if the application you wish to disable is 32-bit. Otherwise, choose 64-bit version. Then right click on the New Database (1) [Untitled_1] under Custom Databases  category. Choose Create New > Application Fix… (refer to pic)

compadmin32bit

 

3) Type the name of the program and locate the program and click ‘Next’.

newappfix

 

4) On the additional compatibility modes, tick RunAsInvoker and click ‘Next’.

runasinvoker

5) Leave Compatibility Fixes as its default setting. Just click Next.

compatibilityfix

 

6) Leave the Matching Information as its default setting. Just click Finish

matchinginfo

7) Now  save the database. Go to File > Save As…

save

 

8 ) Rename the database. This name will be appeared in the Add Remove Program Control Panel later. Click OK.

renamenoUAC

 

9) Save your file to any location you wish. eg: C:\notepad.sdb

renamefile

10) Now the last part is, run Command Prompt as Administrator and type this and hit enter:

sdbinst c:\notepad.db

commandfix

Done!

*If you wish to enable back the UAC on the program, you can remove it from Add Remove Program in Control Panel

 

addremovefix

test 123

123

MaXiShutdown v1.0 Alpha

If you need to shutdown, restart or log off your Windows OS with a specific time (for now can only input number as second).

 

Screenshot:

 

 

Download MaXiShutdown

 

Note: This application is free from viruses. Use it at your own risk.

Microsoft XNA Framework Basic Concept

HTML: How To Remove Spaces Between Table using CSS



 


[solution] Using CSS:

 

 

<html>
<head>

<style type="text/css">
body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; }
</style>

</head>

<body>
<form name="frm" method="post" action="">
<table width="100%" border = "1">
  <tr>
    <td>1</td>
    <td>2</td>
	<td>3</td>
    <td>4</td>
  </tr>
  </table>
</form>
</body>
</html>

TORCH LIGHT Cheat: How to enchant Items Without Losing Too Much Gold.

 

Do you play TORCH LIGHT game for PC? Do you want to enchant your items without losing your gold if the enchantments failed? Yes, you can do this without Trainer or Cheat Code!

Read more

Death is a mystery

People afraid of death. Death is a must to everybody and it is a mystery.  Life after death is the greatest mystery of all.

Read more

Protected: Akibat pemandu kereta yang cuai, saya mengalami kemalangan ANTARA yang paling teruk dalam sejarah

This post is password protected. To view it please enter your password below:


Hello universe

Hello Universe! This is the first post and categorized as Testing. This website has been established since May 2009 and old posts have been wiped out due to the security and maturity issues. Thanks :)

Return top