Question about Operating Systems

I set up this pdf link...click on it and it will show you all necessary steps. http://campus.kellerisd.net/Teachers/12576/Homework%20Review/Practice%20Work/AdditionSubtraction.PDF

Oct 20, 2011 | Operating Systems

The answer is: -154557

Do the innermost parentethese and work out.

Do multiplication and division before addition and subtraction.

Steps for this are:

122 - (155 - (400 - 637) x 652)=

122-(155-(-237) X 652)

122-(155- (-154524))

122-(154679)

-154557

You can use the Windows calculator on the scientific View and come up with the same answer.

Thanks for using Fixya.

Do the innermost parentethese and work out.

Do multiplication and division before addition and subtraction.

Steps for this are:

122 - (155 - (400 - 637) x 652)=

122-(155-(-237) X 652)

122-(155- (-154524))

122-(154679)

-154557

You can use the Windows calculator on the scientific View and come up with the same answer.

Thanks for using Fixya.

Feb 03, 2011 | Operating Systems

Hi,

The following information on "Hierarchy of Operations" was taken from Pages 45-46 of the "Microsoft QuickBasic 4.0: Basic Language Reference" manual for Versions 4.00 and 4.00b. This information also applies to the following products:

For more information on the "Hierarchy of Operations," consult the Basic language reference manual for your version of Basic. Please post your feedback and Vote if the problem resolved as per your satisfaction.

The following information on "Hierarchy of Operations" was taken from Pages 45-46 of the "Microsoft QuickBasic 4.0: Basic Language Reference" manual for Versions 4.00 and 4.00b. This information also applies to the following products:

- Microsoft GW-Basic Versions 3.20, 3.22, and 3.23
- QuickBasic Versions 1.00, 1.01, 1.02, 2.00, 2.01, 3.00, 4.00, 4.00b, and 4.50
- Microsoft Basic Compiler Versions 5.35, 5.36, 6.00, and 6.00b
- Microsoft Basic PDS Version 7.00.

- Arithmetic operations

- Exponential (^)
- Negation (-)
- Multiplication and division (*, /)
- Integer division (\)
- Modula arithmetic (MOD)
- Addition and subtraction (+, -)

- Relational operations (=, >, <, <>, <=, >=)
- Logical operations

- NOT
- AND
- OR
- XOR
- EQV
- IMP

For more information on the "Hierarchy of Operations," consult the Basic language reference manual for your version of Basic. Please post your feedback and Vote if the problem resolved as per your satisfaction.

Jul 13, 2010 | Microsoft Windows XP Professional

- Hi, to "Subtract a >Higher (#,$) numbers from a <Lower (#, $) numbers; you take the "bigger number 167, place that number (over the smaller number 78 and from (right to left) take away numbers. Example: 167 - 86 = Think of 167 as $167.00 and 86 as $86.00, so to make $86.00 into $167.00 you'll need a $81.00 more. So if you think about how much more money you will need to "Add" to make a certain amount, it is just the same as how much you "Don't have! You have $167.00 when you go shopping for clothes, and you spend $86.00 when you count how must money you have left, it add up to $81.00 "That's "Subtracting." "Subtract (167 from 86 you get 81). " Always remember the Higher, or Larger number goes on top! " If you want to check to see if the answer is "right," add the two number together,(86 + 81 = 167). "I hope this helped you, rating the solution is appreciated, thanks"

May 02, 2010 | School Zone Addition Subtraction Full...

Access http://www.google.com

and enter '72.63-1.50' and press ENTER.

Google Math will give you the answer. :-)

and enter '72.63-1.50' and press ENTER.

Google Math will give you the answer. :-)

Oct 01, 2009 | School Zone Addition Subtraction Full...

Dear here is the link that contains a sample code to your problem.

http://www.vb6.us/source-code/simple-calculator-written-vb6

Best regard

http://www.vb6.us/source-code/simple-calculator-written-vb6

Best regard

May 26, 2009 | Microsoft Windows XP Professional

First think how you would solve this problem yourself on a piece of
paper. Then try programming it using the things you learned (if they've
given you this assignment without teaching you to multiply, subtract
and use if's, drop the course).

Well here is an idea.

Take the total kilowattage and send it to a function. What the function will do is subtract 14KW from the total Kilowattage and add the amount for the first 14KW then subtract 85KW from the total KW and add the amount for the 85KW. But once you subtract the number of KW from the total make sure to check if the total KW isn't negative, if so just break out of the function and return the total due.

Or if you have formula for how much the rate grows over how many miles.

For example lets say the rate grows by $1 every time the KW doubles you could have something like

int rate = 1; //Begining rate

int KW = 14; //First flat rate

int amount; //total amount they have to pay

while(totalKW > 0)

{

totalKW -= KW; //subtract the first rate

if(totalKW <= 0) //check if too much subtracted

break; //if so break

amount += rate; //add the rate to the total

rate += 1; // Add $1 to the rate every time

KW *= 2; // KW is doubled

}

Well here is an idea.

Take the total kilowattage and send it to a function. What the function will do is subtract 14KW from the total Kilowattage and add the amount for the first 14KW then subtract 85KW from the total KW and add the amount for the 85KW. But once you subtract the number of KW from the total make sure to check if the total KW isn't negative, if so just break out of the function and return the total due.

Or if you have formula for how much the rate grows over how many miles.

For example lets say the rate grows by $1 every time the KW doubles you could have something like

int rate = 1; //Begining rate

int KW = 14; //First flat rate

int amount; //total amount they have to pay

while(totalKW > 0)

{

totalKW -= KW; //subtract the first rate

if(totalKW <= 0) //check if too much subtracted

break; //if so break

amount += rate; //add the rate to the total

rate += 1; // Add $1 to the rate every time

KW *= 2; // KW is doubled

}

Jan 05, 2009 | Operating Systems

See the Following Program

Leap Years

Def: A year is a century year if it is divisible by 100.

Def: A year is a non-century year if it is not a century year.

Def: A year is a leap year if it is a non-century year that is divisible by 4, or a century year that is divisible by 400. Nothing else is a leap year.

In a source file named leapyears.cpp, write a program that will prompt the user for the starting year and ending year for a range of years and print to the screen all leap years in that range, 5 years per line. You must write a separate function called isLeapYear that takes a year as a parameter and returns whether or not that year is a leap year. Your main function will call the isLeapYear function in a loop for every year within the range delineated by, and including, the starting and ending years.

Help with Code Tags**c Syntax** (Toggle Plain Text)

The One More Sample Of the Program

C program to check whether a year is a leap year or not.

Code: C /*

** C program to check whether an entered year is a leap year or not

** @author: Pradeep

** @date: 02/12/06

*/

#include<stdio.h>

int main(void)

{

int year;

printf("Enter the year: ");

scanf("%d",&year);

/*

** The logic is that the year is either divisible by both

** 100 and 4 , OR its only divisible by 4 not by hundred

*/

if(year%400 ==0 || (year%100 != 0 && year%4 == 0))

{

printf("Year %d is a leap year",year);

}

else

{

printf("Year %d is not a leap year",year);

}

return 0;

}

If Not Satisfied Just put the Program name in Google and Search

Leap Years

Def: A year is a century year if it is divisible by 100.

Def: A year is a non-century year if it is not a century year.

Def: A year is a leap year if it is a non-century year that is divisible by 4, or a century year that is divisible by 400. Nothing else is a leap year.

In a source file named leapyears.cpp, write a program that will prompt the user for the starting year and ending year for a range of years and print to the screen all leap years in that range, 5 years per line. You must write a separate function called isLeapYear that takes a year as a parameter and returns whether or not that year is a leap year. Your main function will call the isLeapYear function in a loop for every year within the range delineated by, and including, the starting and ending years.

Help with Code Tags

- #include <iostream>
- using namespace std;
- bool LeapYear(int y)
- {
- return ( y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0);
- }
- double isLeapYear(double x)
- {
- if( x > -10000 && x < 10000)
- return x;
- }
- int main()
- {
- int x;
- cout << "Please enter start and end of a range of years: ";
- cin >> x;
- if (isLeapYear(x))
- {
- if (LeapYear(x))
- cout << x;
- }
- }

The One More Sample Of the Program

C program to check whether a year is a leap year or not.

Code: C /*

** C program to check whether an entered year is a leap year or not

** @author: Pradeep

** @date: 02/12/06

*/

#include<stdio.h>

int main(void)

{

int year;

printf("Enter the year: ");

scanf("%d",&year);

/*

** The logic is that the year is either divisible by both

** 100 and 4 , OR its only divisible by 4 not by hundred

*/

if(year%400 ==0 || (year%100 != 0 && year%4 == 0))

{

printf("Year %d is a leap year",year);

}

else

{

printf("Year %d is not a leap year",year);

}

return 0;

}

If Not Satisfied Just put the Program name in Google and Search

Sep 10, 2008 | Operating Systems

Get a free Vista calculator from: http://www.softpedia.com/get/Windows-Widgets/System-Utilities/Vista-Calculator.shtml

Or an updated Microsoft one from

http://www.microsoft.com/downloads/details.aspx?familyid=32B0D059-B53A-4DC9-8265-DA47F157C091&displaylang=en

Or an updated Microsoft one from

http://www.microsoft.com/downloads/details.aspx?familyid=32B0D059-B53A-4DC9-8265-DA47F157C091&displaylang=en

Aug 22, 2008 | Microsoft Windows Vista Ultimate Edition

Computers use the RAM of the computer to store the active programs, and perform other operating system functions. Obviously, there is a limit to how much RAM is available for this function. This is why Windows runs faster with more RAM installed.

Since Windows allows you to open multiple programs and switch between them, it is more efficient to "swap" inactive programs or parts of programs out of RAM, so a special disk files is created - "pagefile.sys".

Pagefile.sys is related to the "Virtual Memory" function of Windows.

You can see the pagefile setup by right clicking on My Computer, the go to Properties/Advanced/Performance/Advanced.

Since Windows allows you to open multiple programs and switch between them, it is more efficient to "swap" inactive programs or parts of programs out of RAM, so a special disk files is created - "pagefile.sys".

Pagefile.sys is related to the "Virtual Memory" function of Windows.

You can see the pagefile setup by right clicking on My Computer, the go to Properties/Advanced/Performance/Advanced.

Jul 20, 2008 | Microsoft Windows Server Standard 2003 for...

Dec 02, 2016 | Operating Systems

51 people viewed this question

Usually answered in minutes!

×