Solved

I need some help starting this program

Posted on 2000-03-10
2
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month9 days, 4 hours left to enroll

617 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