Solved

I need some help starting this program

Posted on 2000-03-10
2
142 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
Comment Utility
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
Comment Utility
how wouuld I write the rest of the program please help me. Yours truly Herb
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now