Friday, September 22, 2023

How Do You Convert a C# 2-D Array DataType Anyways?

string[] arrayName = new string[SIZE];


This 2-D Array was filled with two different dataTypes.
This file had a name at the top and double dataTypes within the file. 

Resolve with using the StreamReader to open the file contents and put into a string array to scan this 2-D Array and find its normal readings (counted), all the higher readings (counted) and all the lower readings (counted). And basically let the program compare the file to your hard coded 2D Array. 

Sounds easy. 

Figure ME out C#



Methods for this? 

There is no 2-D dataType conversion available, currently with Microsoft.Learns, the C# Programming textbook, or the Stack OverFlow Forums. So. What do you do? 

I am hoping someday to reflect back onto this blog posting so I can update with a valid solution. I want to know the intensity of this assignment and what skill level was needed to require the proper application results and be able to have a solution with this program in operable condition. 

Converting DataTypes

The parse methods are basically used. What other way is there to convert data types? I had seen in a Microsoft.Learns demo how to assign from an array's elemental location this, seemed to work, but running in the IDE it did not produce results. 

string to int; int to double; double to decimal; 
You know you have seen the measuring cup change and using the bits to bytes to mB to (capital) MB differences for converting memory to reserve for the program. The less, the better. 
So, why can't we have a method that is run (like a ToString(); or an embedded method) to automatically clip these conversions? 
DataType enforcement does take up time in the programming sections that often rely on multiple methods, lines of extra code to convert and back again if necessary. 

So, in my world of dataType conversions - is this an obsolete skill? Why can't I just have this knowledge readily available if it is supposed to be one of the easiest questions any developer could be asked. How do you change this dataType to the next? 
Well, to make it difficult, let's ask what about 2-D Arrays? Multi-dimensional Arrays in general, for multi-column files with different data.length to compensate. 

Is that all programming is? Conversion? 

Example:

Trim.Select(Program Name);

And that would take care of:

Overused dataType structures that are separating the int, double, decimal, string, static, bool, etc. into what we understand how to classify them and identify them as well from memory storage conflictions. 

What other hassles have you had with dataType conversions? How much time? Assignment grades? 

If we are going to learn this programming language, why not create the learning environment, off-season, prep time material to bypass this wasted amount of time! I want to be prepared for this course and be able to still live! I waste too much time learning a programming code without valid results. It's choppy material, puzzle peices to programs that don't apply most times to the actual assignment, or able to identify the assignment concepts with what is provided to you. 
THIS SHOULD BE EASIER. 

If its a tech school. WRAP these assignments with the necessary tools, concepts, and the only thing needed for the assignment. Don't give us the whole book and expect us to not waste our time. Plus, it leads to more questions and wanting to reference (well, what about this time when this worked). 

Let us build a notebook online for notes from students about questions they had on the material for feedback and improvement. The skill building concepts with syntax, position, why, where, how, and using what tools worked. How to manipulate those tools. How to strategize with those tools. Then we will see finer results with student success with programming. We really need a teaching style to modify the business concepts that are being used (check out the review on the "What Developers Need To Know Now" article) by providing our feedback and upgrading our teaching style to keep developing the skills needed. 

I hate the time to finish the semester - it doesn't do anything for today's learning environment. The grading rubric is great for project checklists and expectations. The time is not for everyone, however, and that should remain open-ended until the student develops it. Why are we stuck in the same position, with a group, for? Is this schedule so difficult that we cannot determine when we are available to finish this work as adults? What is expected is documented. We know it can affect our graduation time and other classes but we should not be punished for not keeping pace. The idea is to learn. 
When are we going to create a learning environment? 
We do realize we have different generational techs in the classroom and their influential environment does range! 

There are solutions. 

__Mischief



No comments:

Post a Comment

Thank You For Commenting!

Welcome to Gravacity!

Welcome to Gravacity! I have been anticipating my C#-Part 2 NWTC course in the second term of the Fall Semester and within it, a game I must...