What it teaches you?
It is a field where every coder showcases their problem-solving skills under various constraints that forces them to think creatively and efficiently.
What it teaches you?
It is a field where every coder showcases their problem-solving skills under various constraints that forces them to think creatively and efficiently.
In computer science, artificial intelligence, sometimes called machine intelligence, is intelligence demonstrated by machines, in contrast to the natural intelligence displayed by humans and animals. - Wikipedia
Supervised Machine learning in R is discussed with R basics and how to clean, pre-process , partitioning. It also discusess some algorithms and how to control training itself using cross-validation.
Reinforcement Learning In AI Powerpoint Presentation Slide Templates Complete...SlideTeam
Showcase how machines are built to perform intelligent tasks by using our content-ready Reinforcement Learning In AI PowerPoint Presentation Slide Templates Complete Deck. Take advantage of these artificial intelligence PowerPoint visuals, and describe how machine learning models are trained to make sequences of decisions in a complex environment. Showcase the types of artificial intelligence such as deep learning, machine learning. Explain the concept of machine learning which delivers predictive models based on the data fed into machine learning algorithms. Take the assistance of our visually attention-grabbing reinforcement learning PowerPoint templates and discuss the effective uses of artificial intelligence in various areas such as supply chain, human resources, fraud detection, knowledge creation, research, and development, etc. You can also present the usage of AI in healthcare. This includes treatment, diagnosis, training and research, early detection, etc. Explain the working of machine learning by downloading our attention-grabbing supervised learning PowerPoint presentation. https://bit.ly/3kQBnEZ
Chapter1 fundamentals of computers by reema tharejaAlisherShah1
It's chapter one of manual fundamentals of the computer however basically in an effortless way furthermore yall can also download it and I demand you to follow me and I suppose this helps you.
In computer science, artificial intelligence, sometimes called machine intelligence, is intelligence demonstrated by machines, in contrast to the natural intelligence displayed by humans and animals. - Wikipedia
Supervised Machine learning in R is discussed with R basics and how to clean, pre-process , partitioning. It also discusess some algorithms and how to control training itself using cross-validation.
Reinforcement Learning In AI Powerpoint Presentation Slide Templates Complete...SlideTeam
Showcase how machines are built to perform intelligent tasks by using our content-ready Reinforcement Learning In AI PowerPoint Presentation Slide Templates Complete Deck. Take advantage of these artificial intelligence PowerPoint visuals, and describe how machine learning models are trained to make sequences of decisions in a complex environment. Showcase the types of artificial intelligence such as deep learning, machine learning. Explain the concept of machine learning which delivers predictive models based on the data fed into machine learning algorithms. Take the assistance of our visually attention-grabbing reinforcement learning PowerPoint templates and discuss the effective uses of artificial intelligence in various areas such as supply chain, human resources, fraud detection, knowledge creation, research, and development, etc. You can also present the usage of AI in healthcare. This includes treatment, diagnosis, training and research, early detection, etc. Explain the working of machine learning by downloading our attention-grabbing supervised learning PowerPoint presentation. https://bit.ly/3kQBnEZ
Chapter1 fundamentals of computers by reema tharejaAlisherShah1
It's chapter one of manual fundamentals of the computer however basically in an effortless way furthermore yall can also download it and I demand you to follow me and I suppose this helps you.
Student Lab Activity
CIS170 Week 6 Lab Instructions
Lab 7 of 7: Sequential Files
Lab Overview—Scenario/Summary
You will code, build, and execute a program that requires sequential files to create an address database.
Learning Outcomes
1. Continue using a menu system with console applications.
2. Be able to write a console application.
3. Demonstrate entering, appending, storing, and retrieving records.
4. Be able to write lines of output to a text file in order to create a report.
Deliverables
Section
Deliverable
Points
Lab
Program Listing and Output
40
All Steps
Total
40
Lab Steps
Preparation:
If you are using the Citrix remote lab, follow the login instructions located in the lab area in Course Home.
Locate the Visual Studio icon and launch the application.
Lab:
Step 1: Requirements: An Address Database
Create a C++ console application that will store and retrieve names and addresses in a text file.
The program should do the following.
1. It should accept a series of names and addresses from the console.
2. The user's input should be written to a text file in the CSV format described in the lesson, but do not include the field names in the first row of the file. Use a delimiter to separate the records.
3. Read the records from the text file, and display them in a user-friendly format.
4. Provide a menu to allow the user to append records to the file, display the records, or exit the application.
Build upon the code below to complete the assignment.
//Specification: Append and display records in a address database
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
void menu(void);
void writeData(void);
void readData(void);
const char FileName[] = "TestAddress.txt";
int main () {
menu();
return 0;
} //end main
void menu(void) {
//allow user to choose to append records, display records or exit the program
}//end menu
void writeData(void){
//Write the Address Info to a file
//loop while user still has data to write to file
//eg outStream<<name<<”#”; //where # is the delimiter
}//end write data
void readData(void){
//read data from a file
//use the split function to break a
//deliminated line of text into fields
ifstream inMyStream (FileName);
if (inMyStream.is_open()) {
//set character to use as a line between record displays
string recBreaks = "";
recBreaks.assign(20,'-');
int fieldCount = 0; //keep track of the number of fields read
int recordCount = 1; //keep track of the number of records read
//read the first field
fieldCount = 1;
string fieldBuffer;
getline (inMyStream, fieldBuffer, '#');
while (!inMyStream.eof() ){
//display the field
switch (fieldCount) {
case 1:
cout << recBreaks << endl;
cout << "record # " << recordCount << endl;
cout << "Name...." << fieldBuffer << endl; break;
case 2:
cout << "Street.." << fieldBuffer << endl; break;
case 3:
cout << "City...." << fieldBuffer << endl; break;.
RANDOM TESTS COMBINING MATHEMATICA PACKAGE AND LATEX COMPILERijseajournal
This paper presents a competent and useful way to elaborate random exams by using Mathematica and
LATEX. With these two tools, the authors suggest how to generate, in an easy way, different PDF
documents containing different models of exams. The main idea is to provide a support to professors who
have to manage groups of large number of students that should take different exams along the term, or even
though not being groups of numerous students, it may be useful when different models of exams want to be
provided to the students. The underlying advantage in this paper is the use of the Mathematica package for
this purpose in a simple way, similarly as it has been done with alternative software. We present in this
paper, some models of exams produced in the context in which the authors work.
FOR MORE CLASSES VISIT
tutorialoutletdotcom
NameFirstNamePhoneNumberTranslator.java
Coin.java
LastNameFirstNameCoinDriver.java
ModifiedCoin.java Note 1: Unless otherwise mentioned, you are asked to upload ONLY your java source files through
blackboard. Email submission is not accepted, because of confusion in grading.
This is my code but not complete, please complete my.pdffashionbigchennai
This is my code but not complete, please complete my code related by lab#4
And i wans results for output in black screen.
#include
#include
#define MAX 100;
using namespace std;
struct date
{
int day,month,year\'
};
struct STUDENT_TYPE
{
string name;
int id;
double GPA;
date DOB;
};
int i=0;
int main()
{
STUDENT_TYPE student[MAX];
int choice=-1;
while(choice!=0)
{
cout<<\"\ 0-Exit\ 1-Insert\ 2-Delete_last\ 3-Display\ 4-Search\ 5-Deletion_particular_record\ 6-
Insert_after_record\ 7-Sort(acending)\";
cout<<\"Enter your choice:\";
cin>>choice;
switch(choice)
{
case 0exit(0);
case 1:insert();break;
case 2:delete();break;
case 3:display();break;
case 4:searcht();break;
case 5:delete();break;
case 6:insert();break;
case 7:sort();break;
default:cout<<\"Wrong selection\";
}
}
return 0;
}
void insert()
{
cout<<\"Enter the student details:\";
cout<<\"student name:\";
cin>>student[i].name;
cout<<\"student id:\";
cin>>student[i].id;
cout<<\"student GPA:\";
cin>>student[i].GPA;
cout<<\"student DOB\";
cin>>student[i].DOB.day>>student[i].DOB.month>>student[i].DOB.year;
i++;
}
void delete()
{
//assign 0 to last pointed record
student[i].name=0;
student[i].id=0;
student[i].GPA=0;
student[i].DOB.day=0;student[i].DOB.month=0;student[i].DOB.year=0;
i--;
}
void display ()
{
cout<<\"student details are\ \";
for(int n=0; n>id;
for(int n=0;n>record;
for(int n=0;n>id;
for(int n=0;npos;p--)
{
// move all record towards right to make space for insertion of new record
student[p].name=student[p-1].name;
student[p].id=student[p-1].id;
student[p].GPA=student[p-1].GPA;
student[p].DOB.day=student[p-1].DOB.day;
student[p].DOB.month=student[p-1].DOB.month;
student[p].DOB.year=student[p-1].DOB.year;
}
cout<<\"enter the student details:\";
cout<<\"student name:\";
cin>>student[pos].name;
cout<<\"student id:\";
cin>>student[pos].id;
cout<<\"student GPA:\";
cin>>student[pos].GPA;
cout<<\"student DOB:\";
cin>>student[pos].DOB.day>>student[pos].DOB.month>>student[pos].DOB.year;
}
void sort()
{
// bubble sorting technique is used
struct STUDENT_TYPE TEMP[2];
for(intx=0;xstudent[y+1]id)
{
//move all the record information to temp and swap them
temp[0].name=student[j].name;
temp[j].name=student[j+1].name;
temp[j+1].name=student[0].name;
//the above three lines are repeated for all the student fields
}
}
}
}
#include
#include
#define MAX 100;
using namespace std;
struct date
{
int day,month,year\'
};
struct STUDENT_TYPE
{
string name;
int id;
double GPA;
date DOB;
};
int i=0;
int main()
{
STUDENT_TYPE student[MAX];
int choice=-1;
while(choice!=0)
{
cout<<\"\ 0-Exit\ 1-Insert\ 2-Delete_last\ 3-Display\ 4-Search\ 5-Deletion_particular_record\ 6-
Insert_after_record\ 7-Sort(acending)\";
cout<<\"Enter your choice:\";
cin>>choice;
switch(choice)
{
case 0exit(0);
case 1:insert();break;
case 2:delete();break;
case 3:display();break;
case 4:searcht();break;
case 5:delete();break;
case 6:insert();break;
case 7:sort();break;
default:cout<<\"Wrong selection\";
}
}
return 0;
}
void insert()
{
cout.
COSC 2436 – PROJECT Contents TITLE ..................docxbobbywlane695641
COSC 2436 – PROJECT
Contents
TITLE .............................................................................................................................................................. 1
TIME TO COMPLETE ...................................................................................................................................... 1
COURSE OBJECTIVES – LEARNING OUTCOME .............................................................................................. 1
LAB OBJECTIVES ............................................................................................................................................ 2
SKILLS REQUIRED........................................................................................................................................... 2
HOW TO DO THE PROJECT ............................................................................................................................ 2
REQUIREMENT PROJECT ............................................................................................................................... 3
HOW TO TURN IN THE LAB ........................................................................................................................... 6
HOW TO GRADE THE LAB .............................................................................................................................. 6
Note: in the instruction of the lab change “yourLastName” to your last name. In the example, change
Smith to your last name, change James Smith to your full name, change Mary Lane to the name that
users type in from the keyboard (if these words are in this instruction)
TITLE
Review data structures - GradingStudentApplication
TIME TO COMPLETE
Seven weeks
COURSE OBJECTIVES – LEARNING OUTCOME
[LO1]
Provide UML class diagram and the code of data type classes
Provide the pseudo-code or flowchart based on the requirement of a project before writing the code of the driver
class. Also, can access data members of data type classes
Describe and implement the inheritance relationship between super class and child classes.
Can use abstract classes or interface and apply polymorphism to the real life problem project
LO2 Describle and implement operations of unsorted/sorted array based structures
[LO4] Define and implement Singly linked list, Circular Linked List, Double ended Singly Linked List,
doubly linked list, with their operations and Java Linked List
LO5 Describe and implement operations of Hashed data structure
LO7 Describe and implement operations of Binary Search Trees
[LO11] How to evaluate the performance of each operation algorithm of data structure type based on BigO
and Density
LAB OBJECTIVES
-Complete the lab on time (Time Management)
-Can write the pseudo-code
-Can provide UML of data type class
-Can write comments in the program
-Can write the code of da.
Similar to 9608 Computer Science Cambridge International AS level Pre-Release May June paper 22 2019 Tasks 1.1 - 1.6 (20)
Text Preprocessing is the first step before converting text data into vectors for NLP-based models. This step can also get complicated as text data is not always friendly.
This documentation includes the majority of the steps carried out for preprocessing for making the lives of the Data Scientists and NLP practitioners much easier.
Fundamentals of Cryptography - Caesar Cipher - Python Isham Rashik
Documentation of the cipher program that allows the letters in a raw text file to be ciphered - encrypted or decrypted. The program is implemented in Python 3.x. Code implementation followed by demonstration on how the program is to be used are outlined within this document.
An efficient solution to HackerRank Repeated String Problem using Python 3.x. The time complexity of the program is O(n). This can also be implemented in Java and C++ as the solution is not Pythonic.
Corporate Finance - Disney Sea Park ProjectIsham Rashik
Case study on the subject: Corporate Finance. Based on industrial, economic and financial (in-depth) analysis, the project - DisneySea Park were decided whether it should be continued or not.
Human Resource Management - Different Interview TechniquesIsham Rashik
Different types of interview techniques that are commonly used by the interviewers, errors that are caused by the interviewers and how to make the interview successful are discussed.
Most commonly used commands and functions that are used for reading and writing text files in Python 3.x. Therefore, these commands are used for manipulating file objects.
Android Application Development - Level 3Isham Rashik
Final level of the Android Application Development series. With this tutorial documentation, this will enable mobile developers to gain complete basic knowledge of Android Development. After completing all 3 of the levels, the developers can proceed with intermediary and advanced concepts.
Android Application Development - Level 2Isham Rashik
Continuation of Android Application Development - Level 1. Further fundamentals required to become an Android Developer is explained. It is aimed at people with basic knowledge of programming or must have read Level 1 documentation.
Android Application Development - Level 1Isham Rashik
Very basics of Android Application Development for the beginners who have no prior experience with programming. Can be used for hobby purpose as well as educational material for the academic purpose.
Operations Management - Business Process Reengineering - ExampleIsham Rashik
Mini assignment on Business Process Reengineering. All the steps before reengineering, to improvise the operation process and after reengineering were explained. Flowchart for the operation process before and after reengineering were created.
Lighting Design - Theory and CalculationsIsham Rashik
Types of lamps, how lamps/luminaires can be mounted and its varieties, basic terminologies associated with illumination engineering, essentials and how lightings are designed for rooms and its classroom example for getting a clear picture of lighting design concept.
Linear Control Hard-Disk Read/Write Controller AssignmentIsham Rashik
Classic Hard-Disk Read/Write Head Controller Assignment completed using MATLAB and SIMULINK. To see the diagrams in detail, please download first and zoom it.
Circuit Breakers for Low Voltage ApplicationsIsham Rashik
Features, Working principles, and differences of Miniature Circuit Breaker(MCB), Moulded Case Circuit Breaker(MCCB) and Residual Current Circuit Breaker (RCCB) are explained in basic terms.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
The Indian economy is classified into different sectors to simplify the analysis and understanding of economic activities. For Class 10, it's essential to grasp the sectors of the Indian economy, understand their characteristics, and recognize their importance. This guide will provide detailed notes on the Sectors of the Indian Economy Class 10, using specific long-tail keywords to enhance comprehension.
For more information, visit-www.vavaclasses.com
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
4. Task 1.1
'1 - Declaration of array to hold student records
Dim clsRecords(30) As String
Dim i As Integer
For i = 0 to 29
clsRecords(i) = "---"
Next
'4 and 5 - Writing record to the array
'nextElement - Acts as a pointer for accessing next blocks in the array
'cond - Gives choice to the user whether to continue or quit
Dim nextElement As Integer = 0
Dim cond As String
Do
'2 - User Prompts
Dim name As String
Dim email As String
Console.WriteLine("Enter name: ")
name = Console.ReadLine()
Console.WriteLine("Enter email: ")
email = Console.ReadLine()
'3 - Formatting of string as per the requirement
Dim record As String = name & "#" & email
'Record is getting written to the array
clsRecords(nextElement) = record
nextElement = nextElement + 1
'User prompt for either continuing to add record or stop
Console.WriteLine("Any key to continue, S - stop: ")
cond = Console.ReadLine()
Loop Until cond = "S" or nextElement = 29
'6 - Output
Console.WriteLine("Student Name#Email Address")
Console.WriteLine("--------------------------")
For i = 0 to 29
Console.WriteLine(clsRecords(i))
Next
1
5. Task 1.2
Console.WriteLine("Student Name#Email Address")
Console.WriteLine("--------------------------")
For i = 0 to 29
'Task 1.2 - To display only the current records
If clsRecords(i) <> "---" Then
Console.WriteLine(clsRecords(i))
End If
Next
Task 1.3
'Task 1.3 Searching a record and display its corresponding email
'Conditional variable that will determine whether user wants to keep
'searching or quit the loop
Dim cond1 As String
Do
'Prompt to ask name of the student
Dim name1 As String
Console.WriteLine("Enter name: ")
name1 = Console.ReadLine()
Console.WriteLine("Student Name#Email Address")
Console.WriteLine("--------------------------")
For i = 0 to 29
If clsRecords(i) <> "---" Then
'If name in the record equals name entered, email will be
'displayed
If clsRecords(i).Substring(0, name1.length) = name1 Then
Console.WriteLine(clsRecords(i).Substring(name1.length +1))
End If
End If
Next
'Prompt whether to search for student name again or stop searching
Console.WriteLine("Any key to continue searching, S - Stop")
cond1 = Console.ReadLine()
Loop Until cond1 = "S"
2
6. Task 1.4
'Task 1.4 Searching a record by inputting full or part of the name and
'display the records
'Conditional variable that will determine whether user wants to keep
'searching or quit the loop
Dim cond1 As String
Do
Dim name1 As String
Console.WriteLine("Enter name: ")
name1 = Console.ReadLine()
'Flag variable to indicate whether full or part of name is found
'In a record
Dim flag As Boolean = False
Console.WriteLine("Student Name#Email Address")
Console.WriteLine("--------------------------")
For i = 0 to 29
If clsRecords(i) <> "---" Then
'IndexOf method allows to search full name or part of the name
'Within the contagious records in the array.
'If record(s) found, flag variable is set to True.
If clsRecords(i).IndexOf(name1) <> -1 Then
Console.WriteLine(clsRecords(i))
flag = True
End If
End If
Next
'If no records found, flag not be set to True and will remain False.
'This will indicate no record is found in the array.
If flag = False
Console.WriteLine("No Record found!")
End If
'Prompt whether to search for student name again or stop searching
Console.WriteLine("Any key to continue searching, S - Stop")
cond1 = Console.ReadLine()
Loop Until cond1 = "S"
3
7. Task 1.5 and Task 1.6 - Repeating Tasks 1.1 - 1.4 using 2D array
Task 1.1
'1 - Declaration of 2D Arrays to hold student records
Dim clsRecords(30,4) As String
Dim row, col As Integer
'For accessing inner arrays or rows
For row = 0 to 29
'For accessing elements by each column
For col = 0 to 3
'Each empty block in the array will be represented by “---”
clsRecords(row, col) = "---"
Next
Next
'4 and 5 - Writing all of the details to the empty blocks of array
'nexetRecord - Acts as a pointer for accessing next row. Each row is responsible to
'hold details of a student
'cond - Gives choice to the user whether to continue or quit
Dim nextRecord As Integer
Dim cond As String
Do
'2 - User prompts
Dim name As String
Dim email As String
Dim dob As String
Dim studentID As String
Console.Writeline("Enter name: ")
name = Console.Readline()
Console.Writeline("Enter email: ")
email = Console.Readline()
Console.Writeline("Enter date of birth: ")
dob = Console.Readline()
Console.Writeline("Enter student ID: ")
studentID = Console.Readline()
'3 - All the details of a student are getting added in each of the blocks
'of the inner array
'Name of the student is stored in the first block of the row
clsRecords(nextRecord, 0) = name
4
8. 'Email address of the student is stored in the second block
clsRecords(nextRecord, 1) = email
'Date of birth of the student is stored in the third block
clsRecords(nextRecord, 2) = dob
'StudentID of the student is stored in the fourth block
clsRecords(nextRecord, 3) = studentID
'Pointer is updated to move to the next row
nextRecord = nextRecord + 1
'User prompt for either continuing to add record or stop
Console.Writeline("Any key to continue, S - stop: ")
cond = Console.Readline()
Loop Until cond = "S" or cond = "s" or nextRecord = 29
'6 - Output
Console.Writeline("Student Name#Email Address#Date of Birth#Student ID")
Console.Writeline("---------------------------------------------------")
For row = 0 to 29
For col = 0 to 3
'To display elements of a row in same line followed by a separator - “#”
Console.Write(clsRecords(row, col) & "#")
Next
'Once all details of a student is displayed, we move to the next line for
'Displaying the record of another student
Console.Writeline()
Next
Task 1.2
Console.Writeline("Student Name#Email Address#Date of Birth#Student ID")
Console.Writeline("---------------------------------------------------")
'flag variable - To allow moving to the next line only if a record is found
'This will prevent printing unnecessary blank lines.
Dim flag As Boolean = False
For row = 0 to 29
For col = 0 to 3
'To prevent printing empty slots in the console. Each elements or cells
'are checked if the slot is empty.
If clsRecords(row, col) <> "---" Then
Console.Write(clsRecords(row, col) & "#")
'After record of a student is displayed, flag is set to true
flag = True
End If
5
9. Next
'flag = True represents the record of a student is detected and will only
'allow moving to the next line after record of a student is displayed.
'After moving to next line, flag is then again set to False so that if row of
'are not detected, flag will remain False, and we then do not move to the next
'line.
If flag = True Then
Console.Writeline()
flag = False
End If
Next
Task 1.3
'Conditional variable that will determine whether user wants to keep
'searching or quit the loop
Dim cond1 As String
Do
'Prompt to ask name of the student
Dim name1 As String
Console.Writeline("Enter name: ")
name1 = Console.Readline()
'Column headers
Console.Writeline("StudentName#EmailAddress#DateofBirth#StudentID")
Console.Writeline("----------------------------------------------")
Dim row1, col1 As Integer
Dim flag1 As Boolean = False
For row1 = 0 to 29
For col1 = 0 to 3
If clsRecords(row1, col1) <> "---" Then
'First cell of the row is checked if it equals the name
'that is entered by the user.
'If True, next line is executed and email is displayed of
'the respective student of whose name was entered.
If clsRecords(row1, 0) = name1 Then
Console.Writeline(clsRecords(row1,1))
flag1 = True
'Once email address is displayed, it is necessary to
'exit the inner loop as it will repeat itself, and then
'more than once, same email will be displayed as we
'explicitly pass number 1 to access the second column.
exit for
End if
6
10. End If
Next
If flag1 = True Then
Console.Writeline()
flag1 = False
End if
Next
Console.Writeline("Any key to continue, S - stop: ")
cond1 = Console.Readline()
Loop Until cond1 = "S" or cond1 = "s"
Task 1.4
Dim cond1 As String
Do
Dim name1 As String
Console.Writeline("Enter name: ")
name1 = Console.Readline()
'Column headers
Console.Writeline("StudentName#EmailAddress#DateofBirth#StudentID")
Console.Writeline("----------------------------------------------")
Dim row1, col1 As Integer
Dim flag1 As Boolean = False
For row1 = 0 to 29
For col1 = 0 to 3
If clsRecords(row1, col1) <> "---" Then
'If full name includes part of the name, then record(s)
'Of those students will be displayed.
If clsRecords(row1, 0).IndexOf(name1) <> -1 Then
Console.Write(clsRecords(row1, col1) & "#")
flag1 = True
'Here we don’t need to exit loop in advance as col1
'variable gets incremented at the end of the loop which
'will then allow us to access all of the elements of
'inner row(s) and therefore display details of
'student(s)
End if
End If
Next
If flag1 = True Then
Console.Writeline()
flag1 = False
End if
7