SlideShare a Scribd company logo
1 of 14
VB.Net Programming Console Application ,[object Object],[object Object]
The first line of the program indicates the main( ) procedure. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen
These lines create  named  memory locations to store the data entered by the program user. Name is string to store characters Age is integer to store whole numbers Gender is char to store a single character Balance & Interest are decimal to  store numbers with digits after the point. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Name Age Balance Interest Gender
This line writes to the console screen. The words in quotes appear on the screen. Write will display the contents of the quotes and stay on the same line.  Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….: Name Age Balance Interest Gender
This next line reads the line typed by the program user and stores it in the named memory location  Name. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Name Age Balance Interest Jim  Gender
Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub This line writes to the console screen. The words in quotes appear on the screen . Code Narrative Memory Screen Enter Name…….:Jim Enter Age………: Name Age Balance Interest Jim  Gender
This next line reads the line typed by the program user and stores it in the named memory location  Age. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Name Age Balance Interest Jim  23  Gender
This line writes to the console screen. The words in quotes appear on the screen. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Gender.…………: Name Age Balance Interest Jim  23  Gender
This next line reads the line typed by the program user and stores it in the named memory location  Gender. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Gender.…………:M Name Age Balance Interest Jim  23  Gender M
This line writes to the console screen. The words in quotes appear on the screen. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Gender.…………:M Enter Balance…..: Name Age Balance Interest Jim  23  Gender M
This next line reads the line typed by the program user and stores it in the named memory location  Balance. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Gender.…………:M Enter Balance…..:100 Name Age Balance Interest Jim  23  100.00 Gender M
This next line uses the contents of  Balance  to calculate 10% of its value and places the answer into the location  Interest . Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age....... .. ..:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Gender.…………:M Enter Balance…..:100 Name Age Balance Interest Jim  23  100.00 10.00 Gender M
These next lines Write the contents of the variables to the console screen. Note  the use of {0} which represents the position of the named variable between the quotes. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age....... .. ..:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Enter Gender. .…:M Enter Balance…..:100 ------------------------------- Name…………:Jim Age……………:23 Gender………..:M Balance………..:100 10% Interest is..:10.00 Name Age Balance Interest Jim  23  100.00 10.00 Gender M
This final line holds the display until the program user presses a key. And this program ends. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name  :") Name = Console.ReadLine() Console.Write("Enter Age  :") Age = Console.ReadLine() Console.Write("Enter Gender  :") Gender = Console.ReadLine() Console.Write("Enter Balance  :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age....... .. ..:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Enter Gender. .…:M Enter Balance…..:100 ------------------------------- Name…………:Jim Age……………:23 Gender………..:M Balance………..:100 10% Interest is..:10.00 Name Age Balance Interest Jim  23  100.00 10.00 Gender M

More Related Content

Similar to Wlkthru vb netconsole-inputoutput

04 Console input output-
04 Console input output-04 Console input output-
04 Console input output-maznabili
 
04. Console Input Output
04. Console Input Output 04. Console Input Output
04. Console Input Output Intro C# Book
 
C++ and OOPS Crash Course by ACM DBIT | Grejo Joby
C++ and OOPS Crash Course by ACM DBIT | Grejo JobyC++ and OOPS Crash Course by ACM DBIT | Grejo Joby
C++ and OOPS Crash Course by ACM DBIT | Grejo JobyGrejoJoby1
 
Unit 1 of c++ first program
Unit 1 of c++ first programUnit 1 of c++ first program
Unit 1 of c++ first programAKR Education
 
c++basics.ppt
c++basics.pptc++basics.ppt
c++basics.pptEPORI
 
030 cpp streams
030 cpp streams030 cpp streams
030 cpp streamsHồ Lợi
 
Practical basics on c++
Practical basics on c++Practical basics on c++
Practical basics on c++Marco Izzotti
 
Input and output basic of c++ programming and escape sequences
Input and output basic of c++ programming and escape sequencesInput and output basic of c++ programming and escape sequences
Input and output basic of c++ programming and escape sequencesssuserf86fba
 
Best C Programming Solution
Best C Programming SolutionBest C Programming Solution
Best C Programming Solutionyogini sharma
 
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output) Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output) Aman Deep
 
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)Aman Deep
 
4 operators, expressions & statements
4  operators, expressions & statements4  operators, expressions & statements
4 operators, expressions & statementsMomenMostafa
 

Similar to Wlkthru vb netconsole-inputoutput (20)

04 Console input output-
04 Console input output-04 Console input output-
04 Console input output-
 
04. Console Input Output
04. Console Input Output 04. Console Input Output
04. Console Input Output
 
C++ and OOPS Crash Course by ACM DBIT | Grejo Joby
C++ and OOPS Crash Course by ACM DBIT | Grejo JobyC++ and OOPS Crash Course by ACM DBIT | Grejo Joby
C++ and OOPS Crash Course by ACM DBIT | Grejo Joby
 
2 data and c
2 data and c2 data and c
2 data and c
 
Unit 1 of c++ first program
Unit 1 of c++ first programUnit 1 of c++ first program
Unit 1 of c++ first program
 
c++basics.ppt
c++basics.pptc++basics.ppt
c++basics.ppt
 
C++basics
C++basicsC++basics
C++basics
 
C++basics
C++basicsC++basics
C++basics
 
c++basiccs.ppt
c++basiccs.pptc++basiccs.ppt
c++basiccs.ppt
 
c++basics.ppt
c++basics.pptc++basics.ppt
c++basics.ppt
 
c++basics.ppt
c++basics.pptc++basics.ppt
c++basics.ppt
 
07-Basic-Input-Output.ppt
07-Basic-Input-Output.ppt07-Basic-Input-Output.ppt
07-Basic-Input-Output.ppt
 
030 cpp streams
030 cpp streams030 cpp streams
030 cpp streams
 
Practical basics on c++
Practical basics on c++Practical basics on c++
Practical basics on c++
 
PostThis
PostThisPostThis
PostThis
 
Input and output basic of c++ programming and escape sequences
Input and output basic of c++ programming and escape sequencesInput and output basic of c++ programming and escape sequences
Input and output basic of c++ programming and escape sequences
 
Best C Programming Solution
Best C Programming SolutionBest C Programming Solution
Best C Programming Solution
 
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output) Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)
 
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)
 
4 operators, expressions & statements
4  operators, expressions & statements4  operators, expressions & statements
4 operators, expressions & statements
 

Recently uploaded

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Recently uploaded (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Wlkthru vb netconsole-inputoutput

  • 1.
  • 2. The first line of the program indicates the main( ) procedure. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen
  • 3. These lines create named memory locations to store the data entered by the program user. Name is string to store characters Age is integer to store whole numbers Gender is char to store a single character Balance & Interest are decimal to store numbers with digits after the point. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Name Age Balance Interest Gender
  • 4. This line writes to the console screen. The words in quotes appear on the screen. Write will display the contents of the quotes and stay on the same line. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….: Name Age Balance Interest Gender
  • 5. This next line reads the line typed by the program user and stores it in the named memory location Name. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Name Age Balance Interest Jim Gender
  • 6. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub This line writes to the console screen. The words in quotes appear on the screen . Code Narrative Memory Screen Enter Name…….:Jim Enter Age………: Name Age Balance Interest Jim Gender
  • 7. This next line reads the line typed by the program user and stores it in the named memory location Age. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Name Age Balance Interest Jim 23 Gender
  • 8. This line writes to the console screen. The words in quotes appear on the screen. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Gender.…………: Name Age Balance Interest Jim 23 Gender
  • 9. This next line reads the line typed by the program user and stores it in the named memory location Gender. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Gender.…………:M Name Age Balance Interest Jim 23 Gender M
  • 10. This line writes to the console screen. The words in quotes appear on the screen. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Gender.…………:M Enter Balance…..: Name Age Balance Interest Jim 23 Gender M
  • 11. This next line reads the line typed by the program user and stores it in the named memory location Balance. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age.........:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Gender.…………:M Enter Balance…..:100 Name Age Balance Interest Jim 23 100.00 Gender M
  • 12. This next line uses the contents of Balance to calculate 10% of its value and places the answer into the location Interest . Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age....... .. ..:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Gender.…………:M Enter Balance…..:100 Name Age Balance Interest Jim 23 100.00 10.00 Gender M
  • 13. These next lines Write the contents of the variables to the console screen. Note the use of {0} which represents the position of the named variable between the quotes. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age....... .. ..:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Enter Gender. .…:M Enter Balance…..:100 ------------------------------- Name…………:Jim Age……………:23 Gender………..:M Balance………..:100 10% Interest is..:10.00 Name Age Balance Interest Jim 23 100.00 10.00 Gender M
  • 14. This final line holds the display until the program user presses a key. And this program ends. Sub Main() Dim Name As String Dim Age As Integer Dim Gender As Char Dim Balance As Decimal Dim Interest As Decimal 'input data Console.Write("Enter Name :") Name = Console.ReadLine() Console.Write("Enter Age :") Age = Console.ReadLine() Console.Write("Enter Gender :") Gender = Console.ReadLine() Console.Write("Enter Balance :") Balance = Console.ReadLine() 'Process Interest = Balance * 10 / 100 'Output Console.WriteLine("-----------------") Console.WriteLine("Name........:{0}", Name) Console.WriteLine("Age....... .. ..:{0}", Age) Console.WriteLine("Gender......:{0}", Gender) Console.WriteLine("Balance.....:{0}", Balance) Console.WriteLine("10% Interest is :{0:f2}", Interest) Console.ReadKey() End Sub Code Narrative Memory Screen Enter Name…….:Jim Enter Age………:23 Enter Gender. .…:M Enter Balance…..:100 ------------------------------- Name…………:Jim Age……………:23 Gender………..:M Balance………..:100 10% Interest is..:10.00 Name Age Balance Interest Jim 23 100.00 10.00 Gender M