Question about Operating Systems

1 Answer

Sales transaction how to compute amt, discount, VAT(12%), Total amount, Cash and Change

Posted by on

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    Superstar:

    An expert that got 20 achievements.

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

  • Master
  • 2,427 Answers

Pusedo is as follows

/get the cost of them items and add it to the total
when no onter items are found exit loop
if there are items continue loop //

item = y
total = 0
do while item = y
total = item + total
get cost of new item
if cost = 0 then item = n
loop
Print "BILL TOTAL = " + total

// minus discount
enter discount amt (in %) as da
discount = (da/100) * total
total = total - da
Print "DISCOUNT = " + discount
Print "new total " + total

//add vat
vat = (12/100) * total
total = total + vat
Print "VAT " + vat
Print "new Total " + total


//get pay
enter amt paid as amt
change = amt - total
Print "Paid " + amt
Print "change " + change

Print THANK YOU FOR SHOPPING AT FIXYA

Posted on Feb 21, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How do I subtract vat from amount


If your VAT rate is 20% then divide the Gross by 1.2
60 / 1.2 = 50.

Jul 08, 2014 | Operating Systems

1 Answer

Lost my Tally erp 9 icon on desk top. cannot find the tally.exe file either. pl tell me how can i restore it


I am new to this Apni Tally and I have a problem with sales.Is there any solution to print 14.5% VAT Items and 4.00 % VAT Items in seperate Invoices.
Tally ERP 9

Feb 08, 2012 | Operating Systems

1 Answer

One particular sales voucher date to change, but (tally 7.2) error shows "date below starting of books"


last financial year I have completed (1-1-2012 to 31-12-2012) Next fin.year I created (1-1-2013 to 31-12-2013) and keep current date (to day 13-1-2013) I start the payment voucher from 1-1-2013. But it showing date below starting of books 31-12-2013. In configuration (Skip date field in to NO.. But not possible to do entry. pls help. Email : pkumarlondon@gmail.com.

May 25, 2011 | Operating Systems

1 Answer

How to calculate the percentage using the excel



Hide All
Percentages are calculated by using the following equation:
amount/total = percentage
Where percentage is in decimal format.
What do you want to do?


Calculate the amount if you know the total and percentage For example, if you purchase a computer for $800 and there is an 8.9% sales tax, how much do you have to pay for the sales tax? In this example, you want to find 8.9% of 800.
Example The example may be easier to understand if you copy it to a blank worksheet.

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic. Note Do not select the row or column headers.
    Selecting an example from Help
  3. Press CTRL+C.
  4. In the worksheet, select cell A1, and press CTRL+V.
  5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
1 2 A B Purchase price Sales tax (in decimal form) 800 0.089 Formula Description (Result) =A2*B2 Multiplies 800 by 0.089 to find the amount of sales tax to pay ($71.20) Note To convert a number in percentage format to a decimal, divide it by 100. For example, the sales tax in this example (8.9) divided by 100 is .089.
Calculate the percentage if you know the total and amount For example, if you score 42 points correctly out of 50, what is the percentage of correct answers?
Example The example may be easier to understand if you copy it to a blank worksheet.
  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic. Note Do not select the row or column headers.
    Selecting an example from Help
  3. Press CTRL+C.
  4. In the worksheet, select cell A1, and press CTRL+V.
  5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.



Simple way Amount/Total*100

Apr 30, 2011 | Operating Systems

1 Answer

I have posted an invoice on sage instant with VAT and it should have been VAT free, can you tell me how I can change it as it won't let mee edit it thank you


It Should allow you edit it but if not post a credit note for the same amount and the incorrect Vat on the same date to the same nominal code, then reenter the invoice without the vat

Jan 25, 2011 | Operating Systems

1 Answer

I have lost my power cable in moving. Where may I buy one, address, and cost. Thank You. Ed


What type of power cable? What is it for?
If its the PC's power cable (also called a kettle lead) then you can buy these cheaply from discount stores like cash converters.
Otherwise let me know and we (MCSLondon.co.uk) may be able to send you one at cost price.

Oct 29, 2010 | Operating Systems

1 Answer

Unix


Improving UNIX server performance NOTES.INI settings Most NOTES.INI settings that affect IBM® Lotus® Domino® server performance apply to all UNIX® platforms.
NSF_Buffer_Pool_Size_MB Many machines that run UNIX have very large amounts of physical RAM. Use the parameters NSF_Buffer_Pool_Size_MB or PercentSysAvailable Resources to control how much memory Domino is allowed to use. Each Domino instance on a UNIX machine can reference a maximum of 4GB of RAM.
Disk and memory requirements When a UNIX system runs Domino server software, the server must have enough disk space for program and data files and enough memory to handle swapping and the number of processes. You can also change several system parameters to improve server performance.
Disk I/O tuning Maintaining multiple file systems for operating system files, swap space, transaction logs, and data improves overall server performance.
Use RAID 0+1 hardware for the disk drives on which the data files reside. Use multiple smaller disk drives instead of a few large disk drives for Domino data. Domino does not perform simple predictable sequential reads; therefore, disable Read Ahead Cache and enable Write Cache.
Keeping swap space on its own separate striped volumes improves server performance at high loads. The transaction logs should always be on the most reliable and highest performing disk subsystem available to the system hosting the Domino server. Transaction logging must be on its own disk drives for improved server restart time, reliability, and availability. The logged transactions are written to disk as fast serial writes to a sequential file that is of configurable size in 4K blocks.
Console and database logging To improve server performance, limit the amount of information that is logged to the log file (LOG.NSF) and the console.

Feb 21, 2009 | Operating Systems

1 Answer

Electricity bill coding in java


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
}

Jan 05, 2009 | Operating Systems

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

136 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18299 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...