Jump to content

SickSix66

Member
  • Posts

    24
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Profile Information

  • Gender
    Male
  • Location
    SG
  • Occupation
    Student

System

  • CPU
    i7-3770
  • Motherboard
    ASRock B75 Pro3-M
  • RAM
    G.SKILL Sniper 1600 16GB
  • GPU
    ZOTAC GTX 1060 mini
  • Case
    FractalDesign Arc Midi R2
  • Storage
    Samsung 850 EVO 500GB SSD / WD Black 2TB HDD
  • PSU
    SuperFlower Leadex Gold 650W
  • Display(s)
    DELL S2341H
  • Cooling
    Cryorig H7
  • Keyboard
    Corsair Vengeance K70
  • Mouse
    Logitech G402
  • Operating System
    Windows 10 Pro

SickSix66's Achievements

  1. I plan to upgrade my CPU from an i7 3770 to i7 8700K. I have 3 motherboards in mind now but I'm not too sure which should I pick. 1) MSI Z370 GAMING PLUS 2) ASROCK Z370 PRO 4 3) MSI Z370 GAMING M5 The reason I have MSI Z370 Gaming 5 inside my choice list is that what I heard about MSI Z370 GAMING PLUS & ASROCK Z370 PRO 4 is that they aren't that good for overclocking. Which is the best? Or are there any better boards within this price range?
  2. Hi in this Java program I have to enter 3 cities. Display the temperature of the 3 cities & display the cities in the order from lowest temperature to the highest temperature. So the final output has to be something like the image I've attached. However I can't get the correct "Middle city" output. if((tempCelcius <= tempCelcius2) && (tempCelcius <= tempCelcius3)) { System.out.println("Coldest city is " + city + " at " + tempCelcius + " degrees"); } else if((tempCelcius2 <= tempCelcius3) && (tempCelcius2 <= tempCelcius)) { System.out.println("Coldest city is " + city2 + " at " + tempCelcius2 + " degrees"); } else if((tempCelcius3 <= tempCelcius2) && (tempCelcius3 <= tempCelcius)) { System.out.println("Coldest city is " + city3 + " at " + tempCelcius3 + " degrees"); } if((tempCelcius >= tempCelcius2) || (tempCelcius <= tempCelcius2) && (tempCelcius2 <= tempCelcius3) || (tempCelcius2 >= tempCelcius3)) { System.out.println("Middle city is " + city + " at " + tempCelcius + " degrees"); } //else if((tempCelcius2 >= tempCelcius) || (tempCelcius2 <= tempCelcius) && (tempCelcius2 <= tempCelcius3) || (tempCelcius2 >= tempCelcius3)) //{ //System.out.println("Middle city is " + city2 + " at " + tempCelcius2 + " degrees"); //} //else //{ //System.out.println("Middle city is " + city2 + " at " + tempCelcius2 + " degrees"); //} if((tempCelcius >= tempCelcius2) && (tempCelcius >= tempCelcius3)) { System.out.println("Hottest city is " + city + " at " + tempCelcius + " degrees"); } else if((tempCelcius2 >= tempCelcius3) && (tempCelcius2 >= tempCelcius)) { System.out.println("Hottest city is " + city2 + " at " + tempCelcius2 + " degrees"); } else if((tempCelcius3 >= tempCelcius2) && (tempCelcius3 >= tempCelcius)) { System.out.println("Hottest city is " + city3 + " at " + tempCelcius3 + " degrees"); }
  3. Hey, I was just wondering is it possible to put in 2 sticks of 4GB 1600RAM in dual channel mode and another stick of 4GB 1333Mhz RAM in another slot? Will this work or cause any kind of problems?
  4. using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;class ITSystem { private List<User> UserList; private User LoginUser; public ITSystem() { UserList = new List<User>(); UserList.Add(new User("Default Admin", "Administrator", "Password", true)); LoginUser = null; } public bool Login(string loginID, string password) { foreach (user z in UserList) { if (loginID.Equals(z.loginID)) { if (z.CheckPassword(Password) == true) { LoginUser = z; return true; } else { return false; } } } } public void AddUser(User user) { if ((LoginUser != null) && (LoginUser.IsAdmin == true)) { UserList.Add(user); } } public List<user> GetAllUsers() { return UserList; } public void Logout() { LoginUser = null; } }using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; class Program { static void Main(string[] args) { ITSystem slickback = new ITSystem(); string username = Console.ReadLine(); string password = Console.ReadLine(); slickback.Login(username, password); slickback.AddUser(new User("Administrator", "Admin", "Password", true)); slickback.AddUser(new User("boy","gay","Password", true)); slickback.AddUser(new User("girl","woman","Password", true)); foreach(User z in slickback.GetAllUsers()) { Console.WriteLine(z.ToString()); } slickback.Logout(); } }using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication11{ class User { public string Name; public string LoginID; private string Password; public bool IsAdmin; public User(string name, string loginID, string password, bool isAdmin) { Name = name; LoginID = loginID; Password = password; IsAdmin = isAdmin; } public bool CheckPassword(string password){if (Password.Equals(password)){return true;}else{return false;}} public string ToString() { string charset = ""; charset += "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; charset += "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; charset += "abcdefghijklmnopqrstuvwxyz"; charset += "abcdefghijklmnopqrstuvwxyz"; charset += "abcdefghijklmnopqrstuvwxyz"; charset += "0123456789"; charset += "0123456789"; CipherMachine z = new CipherMachine(charset, 10); string cipher = z.Encrypt(Password); return string.Format("{0},{1},{2},{3}", Name, LoginID, cipher, IsAdmin); } }}using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;class CipherMachine{ private List<char> Charset; private int Key; public CipherMachine(string c, int k) { Charset = new List<char>(c); Key = k; } public string Encrypt(string plain) { string cipher = ""; foreach(char i in plain) { cipher += Charset.ElementsAt(Charset.IndexOf(i) + Key); } return cipher; }}
  5. Yeap, I did that too eventually including Area which is: Console.WriteLine("Area : {0}", Area); However the output for my Area is 0. I have yet to make any changes with regards to Area
  6. { class Rectangle : Shape, IDisplayable { public double Length; public double Width; public Rectangle() { Length = 0; Width = 0; ShapeType = "Rectangle"; Console.WriteLine("Rectangle object is created"); } protected override void computeArea() { Area = Length * Width; } public void showDimension() { Console.WriteLine("Length : 2"); Console.WriteLine("Width : 3"); } }}{ class Triangle : Shape, IDisplayable { public double BaseLength; public double Height; public Triangle() { BaseLength = 0; Height = 0; ShapeType = "Triangle"; Console.WriteLine("Triangle object is created"); } protected override void computeArea() { Area = 0.5 * BaseLength * Height; } public void showDimension() { Console.WriteLine("BaseLength : 2"); Console.WriteLine("Height : 3"); } }} Is this correct? Is this hardcoding? I got it just like the expected output but without the Area.
  7. { interface IDisplayable { void showDimension(); }}{ abstract class Shape { public string Color; public string ShapeType; public double Area; public void showMainFeature() { Console.WriteLine("Shape Type : {0}", ShapeType); Console.WriteLine("Color : {0}", Color); } abstract protected void computeArea(); }}{ class Rectangle : Shape, IDisplayable { public double Length; public double Width; public Rectangle() { Length = 0; Width = 0; ShapeType = "Rectangle"; Console.WriteLine("Rectangle object is created"); } protected override void computeArea() { Area = Length * Width; } public void showDimension() { } }}{ class Triangle : Shape, IDisplayable { public double BaseLength; public double Height; public Triangle() { BaseLength = 0; Height = 0; ShapeType = "Triangle"; Console.WriteLine("Triangle object is created"); } protected override void computeArea() { Area = 0.5 * BaseLength * Height; } public void showDimension() { } }}{ class Program { static void Main(string[] args) { Console.WriteLine("Welcome to Shape Management"); Rectangle rectangle1 = new Rectangle(); rectangle1.Color = "red"; rectangle1.Length = 2.0; rectangle1.Width = 3.0; rectangle1.showMainFeature(); rectangle1.showDimension(); Triangle triangle2 = new Triangle(); triangle2.Color = "blue"; triangle2.BaseLength = 2.0; triangle2.Height = 3.0; triangle2.showMainFeature(); } }} Hey guys, I really need help here. So far everything is fine however i can't get the expected out which is this: Welcome to Shape Management Rectangle object is created Shape Type : Rectangle Color : red Length : 2 Width : 3 Area : 6 Triangle object is created Shape Type : Triangle Color : blue BaseLength : 2 Height : 3 Area : 3 I'm only getting this : Welcome to Shape Management Rectangle object is created Shape Type : Rectangle Color : red Triangle object is created Shape Type : Triangle Color : blue Please help me thanks.
  8. Nevermind guys thanks for all the help, I figured out what's wrong and I was missing this code on the Program class. Console.WriteLine(r1.IsLarger((c2)));
  9. { abstract class Shape { public string Type; abstract public double CalcArea(); public void Description() { Console.WriteLine("Type={0}, Area={1}", Type, CalcArea()); } }}{ class Rectangle : Shape, IComparable { public double Length; public double Width; public override double CalcArea() { return Length * Width; } public Rectangle(double l, double w) { Length = l; Width = w; Type = "Rectangle"; } public bool IsLarger(IComparable obj) { if (this.CalcArea() > ((Shape)obj).CalcArea()) { return true; } else { return false; } } }}{ interface IComparable { bool IsLarger(IComparable obj); }}{ class Program { static void Main(string[] args) { Rectangle r1 = new Rectangle(12.0, 4.0); r1.Description(); Circle c1 = new Circle(3.5); c1.Description(); } }}{ class Circle : Shape, IComparable { public double Radius; public override double CalcArea() { return 3.14 * Radius * Radius; } public Circle(double r) { Radius = r; Type = "Circle"; } public bool IsLarger(IComparable obj) { if (this.CalcArea() > ((Shape)obj).CalcArea()) { return true; } else { return false; } } }} Need to get the output True or False, compare square and circle. I can't seem to get the output however, calculating the area is a success. The output is this: Type=Rectangle, Area=48 Type=Circle, Area=38.465 But I can't get the true/false comparison between the rectangle and circle.
  10. { class Triangle { public double A; public double B; public double C; public double perimeter; public double CalcPerimeter() { return A + B + C; } } } { class EquilateralTriangle : Triangle { public EquilateralTriangle(double a) { A = a; B = a; C = a; } } } { class Program { static void Main(string[] args) { Triangle t1 = new Triangle(3.0, 4.0, 5.0); Console.WriteLine(t1.CalcPerimeter()); EquilateralTriangle t2 = new EquilateralTriangle(3.5); Console.WriteLine(t2.CalcPerimeter()); } } }
  11. Hey guys, I need help with my assignment in C# Pictures attached are the question.
  12. Is it okay to put a a fan on the CPU fan header and on a 4-pin chassis fan connector without causing any problems?
  13. I have a problem with booting up, I am unable to change the boot order to my SSD which has the OS installed, if I set the option to boot my pc from the SSD there will be an error and it will not boot up. It can only boot up if the Windows Boot Manager option is the first one. I really don't know what's going on now. What is that anyway? My motherboard is an ASrock B75 Pro3 - M and I have Windows 7 64 bit installed in the SSD.
  14. I'm currently using an i7 3770, when should I upgrade my CPU & mobo. Should I wait for Broadwell? Skylake? How long more can the 3770 last and still be powerful?
  15. Wow, didn't know that the SuperFlower one is impressive, I think I'm gonna get it. Thanks
×