Solved

I need some help starting this program

Posted on 2000-03-10
2
145 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
calling Tcolordialog in dll make the form disappear 8 111
Convert Jpg /PNG To GIF 5 135
Print Graphic and Text to Epson TM-T88v 12 245
Performance of SQL statement 37 111
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

785 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