• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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: 79961
396
  • 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: 79961
396
  • 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic