473,654 Members | 3,239 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

write an alogrithm to find out average milage per liter?

1 New Member
write an alogrithm to find out average milage per liter?
Mar 5 '13 #1
1 1665
Rabbit
12,516 Recognized Expert Moderator MVP
It's a simple algorithm. The formula is miles traveled / liters used
Mar 5 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2632
by: Meena Lalwani | last post by:
Hi All, I am working on the performance measurement for my dot net application. There are 5000 to 10000 users who logged in with my application. I am able to find out which user logged in , time, date, and which page he was worked for that day . More over I need to find out the response time taken by my application for each Request however, Trace is disabled due to security reasons. Can anybody know how to find response time for each...
6
3132
by: J | last post by:
Kind of new at programming/vb.net. I'm doing this junky die roller program. Heres's what is supposed to happen: Roll 2 6-sided dies. Add rolls together put total in rolls(d6total). Display the number of 2 or 12 rolled, then display those numbers and average rolls. I didn't know how to do it exactly, but I came up with this.
4
1719
by: erick-flores | last post by:
Hello all How do I write this SQL in VBA code: SELECT DISTINCTROW Employees.UsernameHold, .ExpenseReportID, .EmployeeID, .ExpenseType, .ExpenseRptName, .ExpenseRptDescr, .DateSubmitted, .DepartmentCharged, .BusinessPurpose, ., ., ., . FROM Employees INNER JOIN ON Employees.EmployeeID=.EmployeeID WHERE (((Employees.UsernameHold)=CurrentUser()) AND ((.EmployeeID)=!!)); Like I know how to write: SELECT Employees.EmployeeID,...
5
4364
by: NoOoR | last post by:
I want to write a program that read n numbers and perform some mathematical tasks on them. The task available for the user is as follow : 1- Finding the average 2- Find the maximum number 3- Find the minimum number 4- Sort the numbers: store the sorted numbers in different memory location Use pointers. DO NOT USE ARRAY. All program should deal with pointers. Use pointer/offset notation only. Do not use...
1
1717
by: vinodkus | last post by:
dear sir/madam I have displayed data in gridview. after display of data i want some particular data from gridview by using index of that data in gridview. please tell me how it is possible like by using rows or column in a table we can find what is the particular item in a paricular cells of table. For eg. this is data displayed in gridview and I want value A4 then what should i write to find this value. EMPID NAME SALARY
65
5059
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but got errors of Failed to open file ./outdir/mytestout.txt. Below is the code: #include <stdio.h>
3
1512
by: Payne | last post by:
Hello, I'm having trouble figuring out how to best explain my problem but I hope I can make myself clear enough. Anyway, I'm doing an assignment for school and in this one we're supposed to write a simple "database" class. The interface of this database class supports adding items, removing items, obtaining information about how many items are stored etc. In the assignment the database is supposed to support only storing items of a...
3
1356
by: Allen Browne | last post by:
"Tony Toews " <ttoews@telusplanet.netreplied in message news:g075f4pkmg4uc5hk0ohdjfcaeph6ff963f@4ax.com... Tony, I did one of these recently, and asked the client, "Could there ever be a case where you need to store both (i.e. hours of operation and miles travelled)? The answer was no, so we just called the field MeterReading (Double), and added a MeterTypeID field to the VehicleType table. The real fun comes when you have to project...
1
8260
by: Ormazd | last post by:
Hello, I was wondering if anyone might be able to help me with a little PERL script? I'm very new and I have been given a task to write a simple Perl script that prints out the file names and file sizes and determines the average file size from the directory listing found in the "files.txt" file. In other words, I need to add up the size of all of the files listed in the text document and divide by the number of files listed. Sample of...
0
8294
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8709
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8494
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8596
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7309
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1924
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1597
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.