Solved

I need some help starting this program

Posted on 2000-03-10
2
149 Views
Last Modified: 2010-04-04
I need help writing a program using these values
Total Length of call
10
3
2
20
1
5
Assume that anything less than 3 minutes is an automatic flat charge of $1.00

I have to use a text file for my output data.

Print the Headings on my Output.

I need some help on getting started, please someone help. I sure would appreciate.

A three minute call to SCIO NY costs $1.15. Each Additional minute costs $0.26. Given the Total Length of a call in minutes. Print the cost. I'm very confused of how to get started on this program.
0
Comment
Question by:Hpool_12
2 Comments
 
LVL 15

Accepted Solution

by:
simonet earned 15 total points
ID: 2606852
Given X as the number of minutes (the length of the call), and Y as the result in US$ (the price of the call), we have the following formula:

If X<3 then
  Y := 1
else
  Y := (X - 3) * 0.26 + 1.15;

Yours,

Alex
0
 

Author Comment

by:Hpool_12
ID: 2606915
how wouuld I write the rest of the program please help me. Yours truly Herb
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi Spellcheck in Webbrowser 1 45
Delphi selector screen 2 91
Show Listview image from database (String field) 5 143
Base1 Encode/Decode 3 85
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question