This file contains hidden or 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
package main.servo; | |
import com.phidget22.*; | |
import java.io.IOException; | |
public class CSCM79 { | |
private static final int SERVO_SERIAL_NUMBER = 19946; | |
private static final int LCD_SERIAL_NUMBER = 39834; |
This file contains hidden or 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
package plab; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class AssessedPart { | |
public static void main(String[] args) { | |
ArrayList<Integer> ageArray = new ArrayList<>(); | |
ArrayList<String > namesArray = new ArrayList<>(); |
This file contains hidden or 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 java.util.Locale; | |
import java.util.Scanner; | |
public class LabThreeQ3 { | |
public static void main(String[] args) { | |
String countryOne = "Albania"; | |
String countryTwo = "Moldova"; | |
String countryThree = "Slovakia"; | |
String countryFour = " North Macedonia"; |
This file contains hidden or 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 java.util.Scanner; | |
public class LabThreeQ2 { | |
public static void main(String[] args) { | |
System.out.println("Please enter the earthquake magnitude below: "); | |
String smallShake = "Noticeable shaking of indoor objects and rattling noises." + | |
" Felt by most people in the affected area. Slightly felt outside. " + | |
"Generally causes zero to minimal damage. Moderate to significant damage very unlikely." + | |
" Some objects may fall off shelves or be knocked over."; |
This file contains hidden or 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 java.util.Scanner; | |
public class LabThree { | |
public static void main(String[] args) { | |
System.out.println("Please enter the hour of the day.. "); | |
System.out.println("Hint.. Please enter hour of day in 24hrs time format i.e 1 - 24..."); | |
Scanner scanner = new Scanner(System.in); | |
if (scanner.hasNextInt()){ | |
int hourOfDay = scanner.nextInt(); |
This file contains hidden or 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 java.util.Scanner; | |
public class LabThreeQ4 { | |
public static void main(String[] args) { | |
System.out.println("Welcome to date validator. Please enter a valid day of the month: "); | |
Scanner scanner = new Scanner(System.in); | |
if (scanner.hasNextInt()) { | |
int day = scanner.nextInt(); | |
if (day > 0 && day <= 31) { |
This file contains hidden or 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 React, {useEffect, useState} from 'react'; | |
import SafeAreaContainer from "../../components/SafeAreaContainer"; | |
import { | |
Alert, | |
FlatList, KeyboardAvoidingView, LayoutAnimation, | |
StyleSheet, | |
Text, | |
TextInput, | |
ToastAndroid, | |
TouchableOpacity, |
This file contains hidden or 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 React, {useCallback, useEffect, useMemo, useRef, useState} from "react"; | |
import SafeAreaContainer from "../../components/SafeAreaContainer"; | |
import { | |
Alert, | |
Dimensions, | |
Linking, | |
ScrollView, | |
StyleSheet, | |
Text, | |
ToastAndroid, |