TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
William Langly
NA
32
5.2k
Having Trouble With Array
Oct 25 2017 11:56 AM
I need help writing a program that stores the area codes and rates in parallel arrays and allows a user to enter an area code and the length of time for a call in minutes, and then display the total cost of the call.
For example if the area code is in the array, such as 715, and the call length is 22 minutes, the output should be:
Your phone call to area 715 costs $0.16 per minute For 22 minutes the total is $3.52
If the area code is not in the array, such as 111, the program should not accept a call length, and instead output "Sorry - no calls allowed to area 111".
Reply
Answers (
1
)
How to fetch data from string using C#
how to create setup file in visual Studio 2010