Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
7e5090d
Create g.txt
nbxromy Feb 18, 2020
e2c2d90
test
rowan-rinn Feb 18, 2020
2f26651
test
jeroen107 Feb 18, 2020
3613cf2
test 2
rowan-rinn Feb 18, 2020
cd1a69d
g
jeroen107 Feb 18, 2020
00a180b
in the jungle
rowan-rinn Feb 18, 2020
60f60f7
test for dev
jeroen107 Mar 10, 2020
4126e59
I don't know why this happened. help.
BV50Git Mar 10, 2020
4b8e377
test
jeroen107 Mar 10, 2020
2ad3b10
test2
jeroen107 Mar 10, 2020
50dacbb
test
Reg-Zim Mar 10, 2020
2c3ac98
tt
Reg-Zim Mar 10, 2020
e01b3a2
test7
jeroen107 Mar 10, 2020
0ee58d2
Merge branch 'Development' of https://github.com/BV50Git/Cinema-App i…
jeroen107 Mar 10, 2020
e46a47c
idk5
jeroen107 Mar 10, 2020
68de4d4
Seating reservation progress
BV50Git Mar 10, 2020
9ed0b33
test7
jeroen107 Mar 12, 2020
07dd7cc
okay nothing changed
rowan-rinn Mar 16, 2020
2829cbb
code arrays prices based on age.
rowan-rinn Mar 16, 2020
5079dbb
code1
jeroen107 Mar 16, 2020
d40caae
new functionality for movie time/date/location.
rowan-rinn Mar 17, 2020
3963c98
locatie verandert naar location
rowan-rinn Mar 17, 2020
49f16e4
rewriten with classes still needs future changes
rowan-rinn Mar 24, 2020
e97b7c6
Lists begin
BV50Git Mar 26, 2020
ccb465d
cant read from the file yet
rowan-rinn Mar 30, 2020
08d8dc6
Multiple Seat reservation done
BV50Git Mar 30, 2020
af968e3
met json
jeroen107 Mar 31, 2020
2edce73
remove movies
jeroen107 Apr 4, 2020
a96c7e5
test
jeroen107 Apr 5, 2020
b5a2643
basic payment system/allot needs to be changed and added
rowan-rinn Apr 6, 2020
4e3ba84
genre is added to the movie list
jeroen107 Apr 13, 2020
4bade8a
.
Reg-Zim Apr 13, 2020
99650d6
Merge branch 'Bas' of https://github.com/BV50Git/Cinema-App into Bas
Reg-Zim Apr 13, 2020
9e4c8cd
.
Reg-Zim Apr 13, 2020
7252a6d
Revert "."
Reg-Zim Apr 13, 2020
33477fd
readable file/ payment option changes still figuring out how to add t…
rowan-rinn Apr 14, 2020
a2d1d10
test
Reg-Zim Apr 14, 2020
d355ec3
test
jeroen107 Apr 19, 2020
1d35d10
list movies
jeroen107 Apr 19, 2020
5c336e2
changes made for the future ticket/ not jet functional.
rowan-rinn Apr 20, 2020
a68cfd4
Filter complete
BV50Git Apr 20, 2020
fb0dbfd
namechange to avoid conflicts when merging
BV50Git Apr 20, 2020
e315f11
gepushed
rowan-rinn Apr 21, 2020
fadceea
q
rowan-rinn Apr 21, 2020
2a5268f
Hi
nbxromy Apr 22, 2020
64d1ba4
Merge branch 'Bas' into Development
BV50Git Apr 22, 2020
488b72c
Merge branch 'Development' of https://github.com/BV50Git/Cinema-App i…
BV50Git Apr 22, 2020
81e68ed
.
BV50Git Apr 22, 2020
e525097
HI
nbxromy Apr 22, 2020
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
4 changes: 4 additions & 0 deletions CInemaApp/CInemaApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>

</Project>
10 changes: 10 additions & 0 deletions CInemaApp/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace CInemaApp
{
class Class1
{
}
}
8 changes: 8 additions & 0 deletions CInemaApp/ConsoleApp1/ConsoleApp1.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

</Project>
6 changes: 6 additions & 0 deletions CInemaApp/ConsoleApp1/List.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace CInemaApp
{
internal class List<T>
{
}
}
246 changes: 246 additions & 0 deletions CInemaApp/ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
using System;

namespace CInemaApp
{
// the 'login screen' that asks whether the current user is an admin or not
public class Login
{
public static void Question()
{
User.STARS();
Console.WriteLine("Are you an Admin or User? [A/U]");
string Answer = Console.ReadLine();

//StringComparison.OrdinalIgnoreCase makes sure that the answer gets through despite it being upper or lower case
//Answer.Equals is the same as Answer = "U"
if (Answer.Equals("U", StringComparison.OrdinalIgnoreCase))
User.Menu();
else if (Answer.Equals("A", StringComparison.OrdinalIgnoreCase))
Admin.Menu();
else
Question();
//repeats the question if it isn't answered properly .-.
}
}

// menu screen for the user
public class User
{
public static void STARS()
{
Console.WriteLine("********************");
}
public static void bb()
//works as a back button
{
Console.WriteLine("To go back to the main menu, please press Enter.");
string key = Console.ReadLine();

if (key == "" + "") //enter
Menu();
else
bb();

}

public static void Contact()
{
Console.WriteLine("CINEMAPP CONTACT INFO\n");
Console.WriteLine("Phone number: 06123456789");
Console.WriteLine("Email: [email protected]\n");
bb();
}
public static void Current()
{
bb();
}
public static void Upcoming()
{
bb();
}
public static void Prices()
{
Console.WriteLine("MOVIE TICKET PRICES BY AGE\n");

Console.WriteLine("REGULAR 2D MOVIES");
Console.WriteLine("Children up to 11 - $6.00");
Console.WriteLine("Regular - $11.00");
Console.WriteLine("Teenagers (aged 12 - 17) and elderly (65+) - $9.00\n");

Console.WriteLine("3D MOVIES");
Console.WriteLine("Children up to 11 - $9.00");
Console.WriteLine("Regular - $14.00");
Console.WriteLine("Teenagers (aged 12 - 17) and elderly (65+) - $12.00\n");

Console.WriteLine("IMAX/4DX MOVIES");
Console.WriteLine("Children up to 11 - $11.50");
Console.WriteLine("Regular - $16.50\n");

bb();
}
public static void Events()
{
bb();
}
public static void Sally()
{
bb();
}

public static void Choices()
{
string choice = Console.ReadLine();
switch (choice)
//switch cases are pretty similar to if-else statements, only it looks better and works a bit faster
// also you don't have to deal with 80 else ifs back to back
{
case "1":
STARS();
Console.WriteLine("Welcome to the current movies page!");
Current();
break; // <<<<< needed because switch cases REFUSE to work if the breaks are left out
case "2":
STARS();
Console.WriteLine("Welcome to the popular movies page!");
Console.WriteLine("These are the popularmovies: ");

System.Collections.Generic.List<string> Movies = new System.Collections.Generic.List<string>();
Movies.Add("Bad Boys for Life from 2020");
Movies.Add("The Godfather from 1974");
Movies.Add("1917 from 2020");
Movies.Add("Guardians of the Galaxy from 2014");
Movies.Add("Joker from 2019");

foreach (var movie in Movies)

Console.WriteLine(Movies);

Upcoming();
break;
case "3":
STARS();
Prices();
break;
case "4":
STARS();
Console.WriteLine("Welcome to the events page!");
Events();
break;
case "5":
STARS();
Console.WriteLine("Welcome to sally's cafe page!");
Sally();
break;
case "6":
STARS();
Contact();
break;
case "7":
Console.WriteLine("Goodbye.");
break;
default:
Console.WriteLine("False input. Try again.");
Choices();
break;
}
}

public static void Menu()
{
STARS();
Console.WriteLine("[1] - Current Movies");
Console.WriteLine("[2] - Popular Movies");
Console.WriteLine("[3] - Movie Prices");
Console.WriteLine("[4] - Events");
Console.WriteLine("[5] - Sally's Café");
Console.WriteLine("[6] - Contact Information");
Console.WriteLine("[7] - Quit");
STARS();
Console.WriteLine("Please choose an option to continue.");

Choices();

}

}

// menu screen for the admin
public class Admin
{
public static void Menu()
{
User.STARS();
Console.WriteLine("[1] - Current Movies");
Console.WriteLine("[2] - Upcoming Movies");
Console.WriteLine("[3] - Movie Prices");
Console.WriteLine("[4] - Events");
Console.WriteLine("[5] - Sally's Café");
Console.WriteLine("[6] - Contact Information");
Console.WriteLine("[7] - Quit");
User.STARS();
Console.WriteLine("Please choose an option to continue.");

Choices();
}
public static void Current()
{
string tc = Console.ReadLine();
}
public static void Upcoming()
{
string tu = Console.ReadLine();
}
public static void Prices()
{
string tp = Console.ReadLine();
}
public static void Events()
{
string te = Console.ReadLine();
}
public static void Sally()
{
string ts = Console.ReadLine();
}
public static void Contact()
{
string tco = Console.ReadLine();
}
public static void Choices()
{
string choice = Console.ReadLine();
switch (choice)
{
case "1":
Current();
break;
case "2":
Upcoming();
break;
case "3":
Prices();
break;
case "4":
Events();
break;
case "5":
Sally();
break;
case "6":
Contact();
break;
default:
Choices();
break;
}
}
}
class Program
{
static void Main(string[] args)
{
Login.Question();

}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v3.1",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v3.1": {
"ConsoleApp1/1.0.0": {
"runtime": {
"ConsoleApp1.dll": {}
}
}
}
},
"libraries": {
"ConsoleApp1/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\Roomy\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\Roomy\\.nuget\\packages"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
}
}
}
5 changes: 5 additions & 0 deletions CInemaApp/ConsoleApp1/obj/ConsoleApp1.csproj.nuget.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": 1,
"dgSpecHash": "MYGudAr+ay6hr0/gf6uad4nWBmriVpaAj63adjeT8krP89uVsLBJ2f9LExGjZkYaXuZHCAOCKVVo3KJ7/MZkqg==",
"success": true
}
60 changes: 60 additions & 0 deletions CInemaApp/ConsoleApp1/obj/ConsoleApp1.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"format": 1,
"restore": {
"C:\\Users\\Roomy\\Documents\\GitHub\\Cinema-App\\ConsoleApp1\\ConsoleApp1.csproj": {}
},
"projects": {
"C:\\Users\\Roomy\\Documents\\GitHub\\Cinema-App\\ConsoleApp1\\ConsoleApp1.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Roomy\\Documents\\GitHub\\Cinema-App\\ConsoleApp1\\ConsoleApp1.csproj",
"projectName": "ConsoleApp1",
"projectPath": "C:\\Users\\Roomy\\Documents\\GitHub\\Cinema-App\\ConsoleApp1\\ConsoleApp1.csproj",
"packagesPath": "C:\\Users\\Roomy\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Roomy\\Documents\\GitHub\\Cinema-App\\ConsoleApp1\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\Roomy\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.101\\RuntimeIdentifierGraph.json"
}
}
}
}
}
Loading