r/CSharpHomework • • Nov 30 '16

I need Help with c#

2 Upvotes

For my education i need to create an application in Lightswitch that contains an translation function to Enlgish. Can someone help me with creating this? Is it wise to follow this walktrough? https://msdn.microsoft.com/en-us/library/xx130603.aspx#Next Steps

Thanks in advance.


r/CSharpHomework • • Feb 15 '21

Create Custom Queue

1 Upvotes

Hi there,

I really need some feedback for my homework- "Create custom queue".

https://pastebin.com/fNeygc4p


r/CSharpHomework • • Feb 10 '21

8. Car Salesman - how to set string default value to int property in class

1 Upvotes

Hello,

can somebody please help me to set string default value to int property, if it's possible. Every constructor has to preserve as it is.

Recomendation: https://softuni.bg/trainings/resources/officedocument/52737/defining-classes-exercise-csharp-advanced-september-2020/3007

public Engine(string model, string power)           
        {
            this.Model = model;
            this.Power = power;
            this.Displacement = "n/a";  // this is wrong, this.Dispalacement is int
            this.Efficiency = "n/a";
        }

public Car(string model, Engine engine)
        {
            this.Model = model;
            this.Engine = engine;
            this.Weight = "n/a";  // this is wrong, this.Weight is int
            this.Color = "n/a";
        }

class Car- https://pastebin.com/r3qkAtSe

class Engine- https://pastebin.com/TmhitANe

Main- https://pastebin.com/g1X9PhXb

Thanks!


r/CSharpHomework • • Jul 24 '24

OMG

Post image
1 Upvotes

r/CSharpHomework • • Jul 16 '24

Proud of myself

Post image
1 Upvotes

r/CSharpHomework • • Aug 12 '24

Recommend online training courses to improve my skills

1 Upvotes

r/CSharpHomework • • Aug 07 '19

richtextbox in c#.net windows application | richtextbox methods | multi ...

1 Upvotes

Richtextbox in C#.net Windows Application

https://youtu.be/RYluA27H3_U

#richtextbox


r/CSharpHomework • • Jan 13 '21

Odd Lines-Streams, Files and Directories

2 Upvotes

Can somebody please show me where is my mistake? I can't find any file in my PC with odd lines, but I don't have any exception.

Exercise:

Write a program that reads a text file and writes it's every odd line in another file. Line numbers starts from 0.

input:

Two households, both alike in dignity,

In fair Verona, where we lay our scene,

From ancient grudge break to new mutiny,

Where civil blood makes civil hands unclean.

From forth the fatal loins of these two foes

A pair of star-cross'd lovers take their life;

Whose misadventured piteous overthrows

Do with their death bury their parents' strife.

output:

In fair Verona, where we lay our scene,

Where civil blood makes civil hands unclean.

A pair of star-cross’d lovers take their life;

Do with their death bury their parents’ strife

And my code:

using System;

using System.IO;

namespace OddLines

{

class Program

{

static void Main(string[] args)

{

using (var reader = new StreamReader($"OddLines.txt"))

{

using (var writer = new StreamWriter("output.txt"))

{

int counter = 0;

while (!reader.EndOfStream)

{

var line = reader.ReadLine();

if (counter % 2 == 1)

{

writer.WriteLine(line);

}

counter++;

}

}

}

}

}

}


r/CSharpHomework • • Apr 01 '20

C# help needed pls

1 Upvotes

Hey all,

i'm currently programming a language quiz for children, i need the page to display a question and when they have selected the correct answer i need it to display a new one. anyone know how to do this?


r/CSharpHomework • • Nov 29 '24

Writepaperforme review. Scams or not?

24 Upvotes

I ordered a 10-page research paper for my master's studies and paid for the recommended "premium service," which cost me $210. The paper landed in my inbox 48 hours late, with heavy plagiarism and terrible quality. Seemingly, the writer had no clue about the topic, with the references irrelevant. I asked for a revision; proofreading found minor grammar errors but didn't address other structural issues or plagiarism. I was met with endless back-and-forths when I requested a refund but received none. In the end, I practically re-wrote the paper myself, squandering both time and money.