Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Katakana Quiz
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { // this program is used to display one Japanese Katakana character at a time along with its Romaji. It's basically a flashcard program. List<string> vowels = new List<string>() { "ア", "a", "イ", "i", "ウ", "u", "エ", "e", "オ", "o" }; List<string> k = new List<string>() { "カ", "ka", "キ", "ki", "ク", "ku", "ケ", "ke", "コ", "ko" }; List<string> s = new List<string>() { "サ", "sa", "シ", "shi", "ス", "su", "セ", "se", "ソ", "so" }; List<string> t = new List<string>() { "タ", "ta", "チ", "chi", "ツ", "tsu", "テ", "te", "ト", "to" }; List<string> n = new List<string>() { "ナ", "na", "ニ", "ni", "ヌ", "nu", "ネ", "ne", "ノ", "no" }; List<string> h = new List<string>() { "ハ", "ha", "ヒ", "hi", "フ", "fu", "ヘ", "he", "ホ", "ho" }; List<string> m = new List<string>() { "マ", "ma", "ミ", "mi", "ム", "mu", "メ", "me", "モ", "mo" }; List<string> y = new List<string>() { "ヤ", "ya", "ユ", "yu", "ヨ", "yo" }; List<string> r = new List<string>() { "ラ", "ra", "リ", "ri", "ル", "ru", "レ", "re", "ロ", "ro" }; List<string> w = new List<string>() { "ヰ", "wa", "ヲ", "o" }; List<string> g = new List<string>() { "ガ", "ga", "ギ", "gi", "グ", "gu", "ゲ", "e", "ゴ", "go" }; List<string> z = new List<string>() { "ザ", "za", "ジ", "ji", "ズ", "zu", "ゼ", "ze", "ゾ", "zo" }; List<string> d = new List<string>() { "ダ", "da", "ヂ", "ji", "ヅ", "du", "デ", "de", "ド", "do" }; List<string> b = new List<string>() { "バ", "ba", "ビ", "bi", "ブ", "bu", "ベ", "be", "ボ", "bo" }; List<string> p = new List<string>() { "パ", "pa", "ピ", "pi", "プ", "pu", "ペ", "pe", "ポ", "po" }; List<string> additional = new List<string>() { "ン", "n", "ヴ", "V" }; // to display all consonants with their respective vowels, concat each list to 'testList' below var testList = vowels.Concat(k); testList = testList.Concat(s); testList = testList.Concat(t); testList = testList.Concat(n); testList = testList.Concat(h); testList = testList.Concat(m); testList = testList.Concat(y); testList = testList.Concat(r); testList = testList.Concat(w); testList = testList.Concat(g); testList = testList.Concat(z); testList = testList.Concat(d); testList = testList.Concat(b); testList = testList.Concat(p); testList = testList.Concat(additional); Random rndm = new Random(); int testListIndex = rndm.Next(testList.ToList().Count); while (testListIndex % 2 != 0) { testListIndex = rndm.Next(testList.ToList().Count); } // the tabs are used to push the romaji value out of sight so when looking at the Katakana character you don't instantly know the answer //Console.WriteLine( (testList.ToList()[testListIndex]) + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + (testList.ToList()[testListIndex + 1]) ); Console.WriteLine( (testList.ToList()[testListIndex]) + "\t\t\t\t" + (testList.ToList()[testListIndex + 1]) ); // used for mobile dispaly } } }
run
|
edit
|
history
|
help
0
Learning Rounding and Truncation from the Maths library
Today's work
งานสอบ
dsfafasd
lala
Gamez
dfgthyjui8u7yt5rewsx
Bellman Ford algorithm helps to find the shortest path
Permutations of string
масиви част1