Professional Documents
Culture Documents
Practical 1
Aim: Installing Git on Windows.
2. Navigate to where you saved the Git program .exe file. Right-click on the file and choose
‘Run as Administrator’. If asked, enter in administrator credentials. This should launch the
installer.
3. The Git License will display. Read through and then Click Next to accept the terms of the
license.
4. Choose where Git will be installed. Click Next to choose the default location provided
unless you know you need to install the software somewhere else on your machine.
5. Select the components you want installed along with the Git software. There are already
some default options checked. Make sure to check: Windows Explorer integration, including
Git Bash Here and Git GUI Here. This component will allow you to use the Windows
Explorer context menu to access git Bash and Git Gui. All other options are optional. See
screenshot below.
6. Select your Start menu Folder. Choose Next to use the default.
7. Choose which default editor you would like Git to use. For this class, choose ‘Use the
Nano editor by default’ and click Next
8. Choose how you would like to use Git from the command line. You can choose ‘Git from
the command line and also from 3rd-party software’ or ‘Use Git from Git Bash only’ See
screenshot.
9. Choose a SSL/TLS library. Select ‘Use the native Windows Secure Channel library. This
allows Git to use the certificates that are native to your machine and may avoid a path
problem later on. See screenshot.
10. Choose an option for how Git should treat line endings in text files. Recommended to
keep the default as this is better if you’re planning on sharing your project with others who
may be using a different operating system. Choose ‘Checkout Windows-style, commit Unix-
style line endings’. See screenshot.
11. Configure your terminal emulator to use with Git Bash. Use the default ‘Use MinTTY’
12. Configure extra options. Check: Enable file system caching and Enable Git Credential
Manager
Once installed, you can access Git bash or the Git GUI via two different ways:
1. Open the Start menu, you’ll find a new Git entry with the Git Bash icon
2. Best Way: Navigate to a folder on your machine where you want to use Git
a. Right click inside the folder. You’ll notice two new options in your context menu: Git
Bash and Git Gui . Choose Git Bash.
Practical 2
Aim:Install Android studio.
Step 1
To download the Android Studio, visit the official Android Studio website in your web
browser.
Step 2
Step 3
Double click on the downloaded "Android Studio-ide.exe" file.
Step 4
"Android Studio Setup" will appear on the screen and click "Next" to proceed.
Step 5
Select the components that you want to install and click on the "Next" button.
Step 6
Now, browse the location where you want to install the Android Studio and click
"Next" to proceed.
Step 7
Choose a start menu folder for the "Android Studio" shortcut and click the
"Install" button to proceed.
Step 8
After the successful completion of the installation, click on the "Next" button.
Step 9
Click on the "Finish" button to proceed.
Now, your Android studio welcome screen will appear on the screen.
Android Studio Setup Configuration
Step 10
"Android Studio Setup Wizard" will appear on the screen with the welcome
wizard. Click on the "Next" button.
Step 11
Select (check) the "Standard" option if you are a beginner and do not have any
idea about Android Studio. It will install the most common settings and options
for you. Click "Next" to proceed.
Step 12
Now, select the user interface theme as you want. (I prefer Dark theme (Dracula)
that is most liked by the coders). Then, click on the "Next" button.
Step 13
Now, click on the "Finish" button to download all the SDK components.
Step 14
After downloading all the necessary components, click on the "Finish" button.
Practical 3
Input :
void main() {
final a = 100;
print(a);
}
Output:-
Input :
import 'dart:io';
void main() {
const pi = 3.14;
print('enter number:');
int? r = int.parse(stdin.readLineSync()!);
var area = pi * r * r;
stdout.write('area of circle is $area');
}
Output:-
Practical 4
print(s3.trimLeft());
print(s4.trim());
print(s5.trimRight());
print("s3.compareTo(s5): ${s3.compareTo(s5)}");
print("s3.compareTo(s2): ${s3.compareTo(s2)}");
StringBuffer sb = StringBuffer('Name:');
sb.write('Raj PRAJAPATI');
sb.writeCharCode(27);
sb.writeln('Computer');
sb.writeAll({'B.M.POLYtechnic', 'Surat'}, ',');
sb.clear();
print('String Length:${sb.length}');
print('isEmpty:${sb.isEmpty}');
print('isNotEmpty:${sb.isNotEmpty}');
}
OUTPUT:
Practical 5
AIM : Write a program to use loops.
Input :
void main()
{
for (int i = 0; i < 5; i++) {
print('prajapati RAJ parsottambhai');
}
}
Output:-
Practical 6
Input :
import 'dart:io';
void main()
{
print('enter number:');
int? no=int.parse(stdin.readLineSync()!);
var f=fact(no);
print('factorial of $no is $f');
stdout.write('hello..');
}
int fact(int n)
{
if(n<=1)
return 1;
else
return(n*fact(n-1));
}
Output:-
Practical 7
Aim: Develop an application to display Hello Word.
Input :
import 'package:flutter/material.dart';
void main() {
runApp(const practical());
}
class practical extends StatelessWidget {
const practical({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(title: 'RAJ-Practical 7',
debugShowCheckedModeBanner: false,
home: Scaffold(
body: const Center(child: Text('Hello World', style: TextStyle(fontSize: 34))),
));}}
Output:-
Practical 8
Input :
import 'package:flutter/material.dart';
void main() {
runApp(const practical());
}
class practical extends StatelessWidget {
const practical({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'RAJ-Practical 8',
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
title: const Text(''), ),
body: const Center(child: Text('Welcome to MY FLUTTER PROJECT.',
style: TextStyle(fontSize: 34)),
)
);
}
}
Output:-
Practical 9
Input :
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
Output:-
Practical 10
Input :
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
backgroundColor: Colors.greenAccent,
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
'$_counter',
style: Theme.of(context).textTheme.headline4,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: Icon(Icons.add),
),
);
}
}
Output:-