This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:projek_kel_1/list_screen.dart'; | |
class LoginScreen extends StatefulWidget { | |
const LoginScreen({Key? key}) : super(key: key); | |
@override | |
State<LoginScreen> createState() => _LoginScreenState(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:projek_kel_1/home_screen.dart'; | |
class SplashScreen extends StatefulWidget { | |
const SplashScreen({Key? key}) : super(key: key); | |
@override | |
State<SplashScreen> createState() => _SplashScreenState(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class LoginScreen extends StatefulWidget { | |
const LoginScreen({Key? key}) : super(key: key); | |
@override | |
State<LoginScreen> createState() => _LoginScreenState(); | |
} | |
class _LoginScreenState extends State<LoginScreen> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
menu = 0 | |
while menu !=9: | |
print('menu tersedia') | |
print('1. menu makanan') | |
print('2. menu minuman') | |
daftarmenu = int(input('silahkan masukkan menu: ')) | |
if(daftarmenu==1): | |
print('bakso') | |
print('mi ayam') | |
menu = int(input('ketik 0 untuk ke home, 9 untuk keluar')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
buatlah aplikasi sederhana menghitung total harga | |
user memasukkan harga barang | |
user memasukkan total barang | |
pada harga ke 3 di kasih discount 50% | |
lalu print total harga barang | |
memakai for | |
hint: pakai += |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fruits = "banana pisang" | |
for x in fruits: | |
if x == "a": | |
x="e" | |
print(x,end="") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
buatlah program sederhana | |
dihitung pake for | |
user memasukkan harga barang | |
user memasukkan total barang | |
lalu print total harga barang | |
bisa pakai operator += |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
buatlah program sederhana | |
dihitung pake for | |
user memasukkan harga barang | |
user memasukkan total barang | |
lalu print total harga barang | |
bisa pakai operator += | |
untuk barang ke -3 di kasih discount 50% | |
contoh: outputnya | |
total barang: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:hive_flutter/hive_flutter.dart'; | |
import 'package:projek_satu/list_screen.dart'; | |
import 'package:projek_satu/login_screen.dart'; | |
import 'package:projek_satu/welcome_screen.dart'; | |
import 'home_screen.dart'; |