Skip to content
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

Santisteban-Maps #30

Open
wants to merge 17 commits into
base: master
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 Map/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial version, created by Stagehand
4 changes: 4 additions & 0 deletions Map/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
A simple command-line application.

Created from templates made available by Stagehand under a BSD-style
[license](https://github.com/dart-lang/stagehand/blob/master/LICENSE).
14 changes: 14 additions & 0 deletions Map/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Defines a default set of lint rules enforced for
# projects at Google. For details and rationale,
# see https://github.com/dart-lang/pedantic#enabled-lints.
include: package:pedantic/analysis_options.yaml

# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
# Uncomment to specify additional rules.
# linter:
# rules:
# - camel_case_types

analyzer:
# exclude:
# - path/to/excluded/files/**
40 changes: 40 additions & 0 deletions Map/bin/Map.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import 'dart:io';

void main() {
const pizzaPrices = {
'margherita': 5.5,
'pepperoni': 7.5,
'vegetarian': 6.5,
};
print('Pizza Menu $pizzaPrices');
const orders = ['margherita', 'pepperoni', 'vegetarian'];
print('What do you want to order? ');
var ord = stdin.readLineSync();
print(pizzaPrices['$ord']);
print('What do you want to add? ');
var add = stdin.readLineSync();
print(pizzaPrices['$add']);
var total = pizzaPrices['$ord'] + pizzaPrices['$add'];
print('You ordered $ord Pizza and $add Pizza.');
print("Your Total: \$" + total.toString());
{
print('What do you want to add?');
var other = stdin.readLineSync();
var veg= total + 6.5;
var pep= total + 7.5;
var marg= total + 5.5;

if (other.contains('vegetarian') == true) {
print('Coming! Total: $veg' );
}
else if (other.contains('pepperoni') == true) {
print('Coming! Total: $pep');
}
else if (other.contains('margherita') == true) {
print('Coming! Total: $marg');
}
else {
print(other + " pizza is not on the menu");
}
}
}
14 changes: 14 additions & 0 deletions Map/map.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Dart SDK" level="project" />
<orderEntry type="library" name="Dart Packages" level="project" />
</component>
</module>
19 changes: 19 additions & 0 deletions Map/pubspec.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.3"
pedantic:
dependency: "direct dev"
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.2"
sdks:
dart: ">=2.8.1 <3.0.0"
13 changes: 13 additions & 0 deletions Map/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Map
description: A simple command-line application.
# version: 1.0.0
# homepage: https://www.example.com

environment:
sdk: '>=2.8.1 <3.0.0'

#dependencies:
# path: ^1.7.0

dev_dependencies:
pedantic: ^1.9.0
5 changes: 5 additions & 0 deletions _mac/laf.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<application>
<component name="LafManager">
<laf class-name="com.intellij.ide.ui.laf.darcula.DarculaLaf" />
</component>
</application>
6 changes: 6 additions & 0 deletions _mac/path.macros.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<application>
<component name="PathMacrosImpl">
<macro name="MAVEN_REPOSITORY" value="/Users/trinamarie/.m2/repository" />
<macro name="KOTLIN_BUNDLED" value="/Users/trinamarie/Library/Application Support/JetBrains/IntelliJIdea2020.2/plugins/Kotlin/kotlinc" />
</component>
</application>
24 changes: 18 additions & 6 deletions activities/activity1/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:io';

void main() {
Person p1 = Person('Jane','Alba', 25);
print(p1.getFullName());
Expand All @@ -9,46 +8,59 @@ void main() {

print("Enter First Name: ");
String fn = stdin.readLineSync();
print("Enter Middle Name: ");
String mn = stdin.readLineSync();
print("Enter Last Name: ");
String ln = stdin.readLineSync();
print("Enter Age: ");
String strAge = stdin.readLineSync();
int age = int.parse(strAge);
Person p3 = Person(fn,ln,age);
print(p3.getFullName());
Student p = Student(fn, mn, ln, age);
print(p.getFullName());
}

class Person {
static String company = 'ABC Company';
String firstName, lastName;
class Student {
static String department = 'Computer Science';
String firstName, lastName, middleName;
int age = 18;
String _dept;

String get dept => _dept;

Person(this.firstName, this.lastName, this.age);
Student(this.firstName, this.middleName, this.lastName, this.age);

//named constructor
Person.withLNandAgeOnly(this.lastName, this.age);
Student.withLNandAgeOnly(this.lastName, this.age);

//Person p = Person();
//p.getFullName();
String getFullName() {
return ("$firstName $lastName age is $age");
return ("$firstName $lastName age is $age");
return ("Hello $firstName $middleName $lastName, $age, from $department department");
}

//Person.getInfo()
static String getInfo() {
return 'This is a Person class';
return 'This is a Person class';
}

//
@override
String toString() {
return lastName;
return lastName;
}

class Person {
void setLastName(String lastName) {
this.lastName = lastName;
this.lastName = lastName;
}
}
}
}
}
5 changes: 5 additions & 0 deletions androidStudioFirstRun.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<application>
<component name="AndroidFirstRunPersistentData">
<version>1</version>
</component>
</application>
1 change: 1 addition & 0 deletions codestyles/Default.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<code_scheme name="Default" version="173" />
5 changes: 5 additions & 0 deletions colors.scheme.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<application>
<component name="EditorColorsManagerImpl">
<global_color_scheme name="Darcula" />
</component>
</application>
98 changes: 98 additions & 0 deletions databaseDrivers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<application>
<component name="LocalDatabaseDriverManager" version="201">
<driver id="cassandra">
<option name="auto-sync" value="true" />
</driver>
<driver id="clickhouse">
<option name="auto-sync" value="true" />
</driver>
<driver id="db2.11">
<option name="auto-sync" value="false" />
</driver>
<driver id="db2">
<option name="auto-sync" value="false" />
</driver>
<driver id="db2.jtopen">
<option name="auto-sync" value="false" />
</driver>
<driver id="derby.embedded">
<option name="auto-sync" value="true" />
</driver>
<driver id="derby.remote">
<option name="auto-sync" value="true" />
</driver>
<driver id="exasol">
<option name="auto-sync" value="true" />
</driver>
<driver id="greenplum">
<option name="auto-sync" value="true" />
<option name="schema-control" value="MANUAL" />
<option name="send-app-info" value="false" />
</driver>
<driver id="h2.unified">
<option name="auto-sync" value="true" />
</driver>
<driver id="hive">
<option name="auto-sync" value="true" />
</driver>
<driver id="hsqldb.local">
<option name="auto-sync" value="true" />
</driver>
<driver id="hsqldb.remote">
<option name="auto-sync" value="true" />
</driver>
<driver id="mariadb">
<option name="auto-sync" value="true" />
</driver>
<driver id="mongo">
<option name="auto-sync" value="true" />
</driver>
<driver id="sqlserver.ms">
<option name="auto-sync" value="true" />
<option name="send-app-info" value="false" />
</driver>
<driver id="sqlserver.jtds">
<option name="auto-sync" value="true" />
</driver>
<driver id="azure.ms">
<option name="auto-sync" value="true" />
<option name="send-app-info" value="false" />
</driver>
<driver id="mysql.8">
<option name="auto-sync" value="true" />
</driver>
<driver id="mysql">
<option name="auto-sync" value="true" />
</driver>
<driver id="mysql_aurora">
<option name="auto-sync" value="true" />
</driver>
<driver id="oracle">
<option name="auto-sync" value="true" />
<option name="auto-commit" value="false" />
</driver>
<driver id="postgresql">
<option name="auto-sync" value="true" />
<option name="schema-control" value="MANUAL" />
</driver>
<driver id="redshift">
<option name="auto-sync" value="true" />
<option name="schema-control" value="MANUAL" />
</driver>
<driver id="snowflake">
<option name="auto-sync" value="true" />
</driver>
<driver id="sqlite.xerial">
<option name="auto-sync" value="true" />
</driver>
<driver id="sybase.jtds">
<option name="auto-sync" value="true" />
</driver>
<driver id="sybase.ase">
<option name="auto-sync" value="true" />
</driver>
<driver id="vertica">
<option name="auto-sync" value="true" />
</driver>
</component>
</application>
Loading