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

28.04 #2

Open
wants to merge 8 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
1 change: 1 addition & 0 deletions 2extra/.idea/description.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions 2extra/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions 2extra/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions 2extra/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions 2extra/.idea/project-template.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

130 changes: 130 additions & 0 deletions 2extra/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions 2extra/2extra.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

Binary file not shown.
29 changes: 29 additions & 0 deletions 2extra/src/com/company/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.company;

import java.util.Scanner;

public class Main {

public static void main(String[] args) {
int capacity = 100;
Scanner sc = new Scanner(System.in);
System.out.println("please enter the amount of people in the room");
int input1 = sc.nextInt();
System.out.println("the amount of people still in the queue");
int input2 = sc.nextInt();
int now = 100 - input1;


for (int user = 0; user <input2 ; user++) {
if (now > 0) {
System.out.println("fit");
now--;
} else {
System.out.println("can't fit");
now--;
}
}

}

}
13 changes: 13 additions & 0 deletions THEORYANSWERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
1: b
2: apt-get install
3: d
4: a
5: b
6: a
7: 1
8: 15
9: 3
10: 1
11: true
12: true
13: true
1 change: 1 addition & 0 deletions test1/.idea/description.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions test1/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions test1/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions test1/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions test1/.idea/project-template.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading