Hi, Here is my assignment. I have created a program in visual.basic.Net. The program Lets user to input the initial value and Final Value Numbers. Then, the program will calculate the sum of the odd...

1 answer below »
Hi, Here is my assignment. I have created a program in visual.basic.Net. The program Lets user to input the initial value and Final Value Numbers. Then, the program will calculate the sum of the odd numbers & will display it in text box, & the program will also calculate the sum off Even numbers & will display it in the other textbox separately. I NEED THE FLOW CHART FOR THIS PROGRAM WHICH I HAVE WRITTEN. THE FLOW CHART SHOULD BE BASED ON MY SOURCE CODE AND OUTPUT WINDOW. ATTACHED PDF IS ALL THE INFORMATION YOU WILL NEED TO WRITE THE FLOW CHART.


Question: Draw the Flow chart for this program that I have done with Visual Basic.Net? Public Class Form1 Private Sub button1_Click(sender As Object, e As EventArgs) Handles button1.Click Dim evensum As Long Dim even As Long Dim odd As Long Dim oddsum As Long If Val(val_i.Text) Mod 2 = 0 Then even = Val(val_i.Text) evensum = 0 odd = even + 1 oddsum = 0 Do While even <= val(val_f.text)="" evensum="evensum" +="" even="" even="even" +="" 2="" loop="" do="" while="" odd=""><= val(val_f.text)="" oddsum="oddsum" +="" odd="" odd="odd" +="" 2="" loop="" val_even.text="Str(evensum)" val_odd.text="Str(oddsum)" end="" if="" if="" val(val_i.text)="" mod="" 2=""><> 0 Then odd = Val(val_i.Text) oddsum = 0 even = odd + 1 evensum = 0 Do While odd <= val(val_f.text)="" oddsum="oddsum" +="" odd="" odd="odd" +="" 2="" loop="" do="" while="" even=""><= val(val_f.text) evensum = evensum + even even = even + 2 loop val_odd.text = str(oddsum) val_even.text = str(evensum) end if end sub private sub button2_click(sender as object, e as eventargs) handles button2.click val_i.text = " " val_f.text = " " val_even.text = " " val_odd.text = " " end sub private sub button3_click(sender as object, e as eventargs) handles button3.click end end sub end class val(val_f.text)="" evensum="evensum" +="" even="" even="even" +="" 2="" loop="" val_odd.text="Str(oddsum)" val_even.text="Str(evensum)" end="" if="" end="" sub="" private="" sub="" button2_click(sender="" as="" object,="" e="" as="" eventargs)="" handles="" button2.click="" val_i.text=" " val_f.text=" " val_even.text=" " val_odd.text=" " end="" sub="" private="" sub="" button3_click(sender="" as="" object,="" e="" as="" eventargs)="" handles="" button3.click="" end="" end="" sub="" end="">
Answered Same DayMar 08, 2021

Answer To: Hi, Here is my assignment. I have created a program in visual.basic.Net. The program Lets user to...

Neha answered on Mar 09 2021
140 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here