Skip to content

Ammar allumani #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://dart.dev/guides/libraries/private-files
# Created by `dart pub`
.dart_tool/
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial version.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# Quiz App
This lab will be a simple quiz app designed to test your knowledge of Git and GitHub. The app includes five functions, each representing a different aspect of Git and GitHub.

## Note:
Each function has been developed and committed separately to showcase progress. You can check each commit to see the development history and understand how each function was implemented.
A sample command-line application with an entrypoint in `bin/`, library code
in `lib/`, and example unit test in `test/`.
30 changes: 30 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.

include: package:lints/recommended.yaml

# Uncomment the following section to specify additional rules.

# linter:
# rules:
# - camel_case_types

# analyzer:
# exclude:
# - path/to/excluded/files/**

# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints

# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
98 changes: 98 additions & 0 deletions bin/lab_soultion.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@





import 'dart:io';

void main(){

String op = "0";


while(op !="5")
{

print("\n\n ########### git and github info ########### \n\n");
print("\n\n\n");

print("0: info 1");
print("-"*25);
print("1: info 2");
print("-"*25);
print("2: info 3");
print("-"*25);
print("3: info 4");
print("-"*25);
print("4: info 5");
print("-"*25);
print("5: exit");
print("-"*25);

op = stdin.readLineSync()!;






switch(op){

case "0":
gitinfo();
break;

case "1":
github();
break;


case "2":
githubTeamWork();
break;


case "3":
branch();
break;

case "4":
convlect();
break;



}

}

}



gitinfo(){
print("\n\n########### git is it version control ###########");
}


github(){
print("\n\n########### github is website to store your code ###########");
}


githubTeamWork(){

print("\n\n ########### github can be used to work with you team and mange the code ###########");
}


branch(){

print("\n\n ########### Branch is used to git copy of the code that will not afrct the main branch ###########");
}



convlect(){
print("\n\n ########### you may face some convelct when merge branch to the main bracnh you have to fix the code that cause the prmbolm ########### ");
}
3 changes: 3 additions & 0 deletions lib/lab_soultion.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
int calculate() {
return 6 * 7;
}
Loading