• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Need Assistance

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
User selects "Enter Usage Details" option
Ask user to enter their region and average usage in KW per day or return to Main Menu
User can enter numbers to enter their region
1- TAM
2- MUM
3- ND
4- BL
After entering valid region, enter avg. usage per day.
The value entered must be positive and after taking inputs, the program should show main menu.

1. Enter usage details
2. Display cost under provider 1
3. Display cost under provider 2
4. Show report
5. Exit
 
Marshal
Posts: 80976
529
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

I think your post would fit better in one of our other fora (moving). Have you got a question? Is this an assignment? We don't supply answers for assignments, but if you show us what you have achieved so far, we shall be pleased to help you.
 
Pema Lama
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


it's my first sem but this is what i've achieved so far
 
Campbell Ritchie
Marshal
Posts: 80976
529
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let's start by adding code tags to your code, and a bit of indentation, so we can actually read it
I think you are going about the task the wrong way. You are trying to write code from centre to periphery, and the code looks unplanned to me, I am afraid. Start by telling us what the plan for your code is; I haven't got the time to say any more at the moment: sorry.
 
Are you okay? You look a little big. Maybe this tiny ad will help:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic