C# Answers

Questions answered by Experts: 1 362

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

string text = TextBox2.Text;
string sRaw = text.ToString();
string sClean = sRaw.Replace(",", " ");
text = sClean.Trim();
TextBox2.Text = text.ToString();
for (int i = 0; i < text.Length; i++)
{
if (text.ToString()!="")
{
ListBox5.Items.Add(Convert.ToString(text[i]));

}
else
{
Response.Write("a");
}
ListBox5.Items.Add(text.Split("\n"));
}

I want to move each item of string textbox = "1,21,45,785" into Listbox using this code...
please assist me............

Or correct the coding
Would you be able to help with a university first year degree level software report assignment ? A simple user based game written and designed using C language.
How long would such a process take ?
Look forward to your response.
Sort command to display all the student records in sorted order either by name or by GPA
(the
so
rting criteria is case insensitive)
o
For example: sort:name

Search command to find a studen
Michael is a software developer in FIT technologies. He wants to add a currency converter in the application for the convenience of international customers. Help Michael in creating the currency converter. [10 Marks
wap to input age of a person and print it in days.
You are going to implement a command-line student management system.
Users can type four commands (case insensitive):
 Create command to create new student record with 4 pieces of information separated by
comma: student ID (string), name (string), major (string), GPA (floating point)
o For example: create:105,Alice,EECS,2.54
 Sort command to display all the student records in sorted order either by name or by GPA (the
sorting criteria is case insensitive)
o For example: sort:name
 Search command to find a student record by the student ID
o For example: search:105
1.
2.
3.
After a lot of debate, the management of AutoZig Enterprise decides to add some more features in
the application. The company asks WebSoft Solutions Pvt. Ltd. for the following additions:
The application should be able to count the number of automobile parts sold every week
depending upon the number of new entries of parts in the application. If a part is not sold for
more than six months after its date of manufacture, the application should prompt a message,
"Urgent Sale Required". Help the programmers at WebSoft Solutions Pvt. Ltd. to develop the
code for this feature. [5 Marks]
The technical team of AutoZig Enterprise wants to develop a feature for the supervisors. Using
this feature, the details of the automobile part can be added but it should not be visible to other
employees of the company. This feature is useful for the automobile parts that are new and are
in the field for a trial run. As a software developer of WebSoft Solutions Pvt. Ltd., develop code
so that the information of a specific
In the written examination conducted by WebSoft Solutions Pvt. Ltd., candidates are given certain
advanced C# codes. They are asked to find the errors in the code (if any) and predict the output of
the code. You are one of the candidates appearing at the interview. Optimize the code, find out the
errors (if any), and predict the output of the following code snippet: [10 Marks]
using System;
class Student
{
private string name = "Marcus Trott";
private double marks = 65.0;
public void DispName()
{
System.Console.WriteLine("Name: ",; name);
}
public void DispMarks()
{
System.Console.WriteLine("Marks: ", marks);
}
}
class MainClass
{
static void Main()
{
Student s= new Student();
string n = s.DispName();
double m= s.marks;
}
}
For this project, WebSoft Solutions Pvt. Ltd. conducts a recruitment drive to hire 10 software
developers to work on various modules of the application. It conducts a written examination and
asks the aspiring candidates to create a console-based calculator application. The calculator
should be able to solve basic mathematical calculations.
The calculator should store the result of an expression in a variable called "ans", which can be
used as an input in other mathematical expressions, as shown in the following statements:
>calculate 25*(3+5-(10/2))
ans=75
>calculate ans+10
ans=85
>calculate ans*10/5
However, the candidate can declare any variable to store the result. Being an aspiring candidate,
develop the console-based calculator using C#.
FlyHigh Airlines allows each passenger to carry limited amount of luggage per ticket. The
maximum amount of luggage that can be carried by a passenger depends on the class in which
the passenger is travelling. The following table lists the maximum amount of luggage allowed for
each class.
If a passenger carries luggage above the maximum amount permissible for the class in which
he/she is travelling in, the passenger is levied an additional cost at the rate of $2/additional KG.
Currently, this cost is calculated manually, which is a time consuming process. Therefore, the
management of FlyHigh Airlines has asked SoftSols Inc. to create an application that accepts the
total weight of a luggage carried by a passenger, checks whether it is more than the maximum
amount allowed for the passenger's class of travel, and then calculates the additional cost that
needs to be levied on the passenger. In addition, SoftSols Inc. needs to ensure that the application
is able to handle the weight of luggage in whole numbers as
LATEST TUTORIALS
APPROVED BY CLIENTS