Unzip and open the Odd Squares Solution\\Odd Squares Solution.sln file. Code the
ID: 3791640 • Letter: U
Question
Unzip and open the Odd Squares SolutionOdd Squares Solution.sln file. Code the Display button's Click event procedure so that it displays the squares of the odd integers from 1 through 9 in the squaresLabel. Display each square on a separate line in the the control using the For...Next statement. Save the solution and then start and test the application. Close and submit this week's entire project folder into a single zip file. Submit the zip file to the form inside this folder.
Visual Basic, Visual Studio 15
Toolb Search Toolbox All Windows Forms Pointer r BackgroundWorke Bind Navigator T Binding Source Button M CheckBox EE CheckedListBox ColorDialog S ComboBox E ContextMenuStrip GE DataGridView Dataset DateTimePicker DirectoryEntry Directory earche DomainUpDown ovide a EventLog Filesystemwatcher Flow LayoutPanel Folder 3 FontDialog GroupBox HelpProvider DID HScrollBar El ImageList Main Formavb Design X a odd squares Display output Show output from: output Start Search Solution Explorer (Ctrl+ p Solution Odd Squares Solution' d pro 4 Odd Squares Project F My Project References App D EH Main Formvb Properties MainForm System, nd Foms.Fom Right ToLeftLayou False True Showilcon ShowlnTaskbar True 2S3, 228 Size Size GripStyle Auto StartPosition CenterScreen Text Odd Squares TopMost Text The text associated with the control.Explanation / Answer
Sorry to say this, but this is your project and everything should be done on your own... for your idea we'll be helping you by giving a basic idea of logic
look, for/next loop from that syntax .. for <variable> = <start> to <end> step <numbers added>
so you can do that by
for i as integer = 1 to 9 step 2
label1.text &= i^2 & vbnewline
next i
from this code you are counting closed interval from 1 to 9 and adding 2 for each loop not 1 (if you removed step 2 word it will count by default +1)
and label1.text &= i^2 is the same label1.text = label1.text & i^2 (i power 2) .. vbnewline I guess it is obvious to enter new line
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.