Click here to Skip to main content
15,887,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Error : Property is readonly Pin
Eddy Vluggen7-Apr-14 7:22
professionalEddy Vluggen7-Apr-14 7:22 
GeneralRe: Error : Property is readonly Pin
dilkonika7-Apr-14 7:49
dilkonika7-Apr-14 7:49 
GeneralRe: Error : Property is readonly Pin
Eddy Vluggen7-Apr-14 8:53
professionalEddy Vluggen7-Apr-14 8:53 
GeneralRe: Error : Property is readonly Pin
dilkonika7-Apr-14 9:44
dilkonika7-Apr-14 9:44 
GeneralRe: Error : Property is readonly Pin
Eddy Vluggen8-Apr-14 8:01
professionalEddy Vluggen8-Apr-14 8:01 
QuestionCalculations Help! Pin
Member 107286676-Apr-14 8:33
Member 107286676-Apr-14 8:33 
AnswerRe: Calculations Help! Pin
Dave Kreskowiak6-Apr-14 8:37
mveDave Kreskowiak6-Apr-14 8:37 
GeneralRe: Calculations Help! Pin
Member 107286676-Apr-14 8:48
Member 107286676-Apr-14 8:48 
You will need to design an application that will receive the customer type and its units of utility used for the billing duration. The application will calculate and display the cost per unit based on the customer type and the total charges for that billing cycle. Calculate the charges using the following data.

Customer Type Units Consumed Cost per unit ($)
Commercial <= 1,000 $0.50 per unit
Commercial 1,000 < $0.50 per unit
Industrial < 800 $0.65 per unit
Industrial 800 <= 2,000 $0.55 per unit
Industrial 2,000 < $0.50 per unit
Residential < 500 $0.85 per unit
Residential 500 <= $0.75 per unit

Make sure that the units consumed entered is a positive number and the customer Type is valid; otherwise your program should display an error message and ask for the data to be entered again until the user enters valid data. Test your algorithm with the following three sets of data.

Test case 1: Units used of 799, Customer Type is Industrial
Test case 2: Units used 500, Customer Type is Residential
Test case 3: Units used 800, Customer Type is Industrial
Test case 4: Units used 1000, Customer Type is Commercial
Test case 5: Units used 499, Customer Type is Residential
GeneralRe: Calculations Help! Pin
Member 107286676-Apr-14 8:49
Member 107286676-Apr-14 8:49 
GeneralRe: Calculations Help! Pin
Member 107286676-Apr-14 8:50
Member 107286676-Apr-14 8:50 
GeneralRe: Calculations Help! Pin
Mycroft Holmes6-Apr-14 12:55
professionalMycroft Holmes6-Apr-14 12:55 
GeneralRe: Calculations Help! Pin
Eddy Vluggen7-Apr-14 7:46
professionalEddy Vluggen7-Apr-14 7:46 
AnswerRe: Calculations Help! Pin
ZurdoDev7-Apr-14 8:46
professionalZurdoDev7-Apr-14 8:46 
QuestionRefresh Devexpress Master-Detail gridcontrol Pin
dilkonika5-Apr-14 6:04
dilkonika5-Apr-14 6:04 
QuestionFree Twain for .NET Pin
dilkonika4-Apr-14 11:36
dilkonika4-Apr-14 11:36 
AnswerRe: Free Twain for .NET Pin
Richard MacCutchan4-Apr-14 23:21
mveRichard MacCutchan4-Apr-14 23:21 
QuestionAdd Multiple Records to one TextBox from SQL Pin
Dan O'Riordan2-Apr-14 23:52
Dan O'Riordan2-Apr-14 23:52 
AnswerRe: Add Multiple Records to one TextBox from SQL Pin
Richard MacCutchan3-Apr-14 0:07
mveRichard MacCutchan3-Apr-14 0:07 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 0:15
Dan O'Riordan3-Apr-14 0:15 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard MacCutchan3-Apr-14 0:22
mveRichard MacCutchan3-Apr-14 0:22 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 0:26
Dan O'Riordan3-Apr-14 0:26 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard MacCutchan3-Apr-14 0:31
mveRichard MacCutchan3-Apr-14 0:31 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 0:38
Dan O'Riordan3-Apr-14 0:38 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard Deeming3-Apr-14 0:55
mveRichard Deeming3-Apr-14 0:55 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 1:03
Dan O'Riordan3-Apr-14 1:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.