Questions: 1 835

Answers by our Experts: 1 539

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 & Filtering

please give me the code for this question, the question is: while entering the information about different automobile parts in the application, the database administrator enters the prices of some parts incorrectly. the prices are swapped between various parts. create an application that can swap the price of all automobile parts and can assign the correct price against a particular automobile part.
please give me the code for this question, the question is: the application should be able to count the number of automobile parts sold every week depending upon the 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".
Kathy, a software developer in FIT technologies, is assigned the task of optimizing the following
code:
using System;
public class SwapNumber
{
void SwapNum(ref int a, ref int b)
{
int temp;
temp = a;
a = b;
b = temp;
}
static void Main(string[] args)
{
SwapNumber classobj = new SwapNumber();
int Number1, Number2;
Console.WriteLine("Enter the first number");
Number1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the second number");
Number2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("The value of first number is {0}",
Number1);
Console.WriteLine("The value of second number is {0}",
Number2);
classobj.SwapNum(ref Number1,ref Number2);
Console.WriteLine("Now the value of first number after
swaping is {0}", Number1);
Console.WriteLine("Now the value of second number after
swapping is {0}", Number2);
}
}
Optimize the preceding code for Kathy and find out the errors (if any). What would be the output of
the preceding code, if the first number is 46 while the second number is 37?
BS Bank Inc wants to add some additional features in the application. The company asks FIT
technologies for the following additions:
? BS Bank Inc. needs to add modules to provide the following services:
a. Online share and mutual funds trading
b. General insurance for health, car, and travel
BS Bank Inc. should be able to provide other services like bill payments, mobile recharge. [Use static variables and static function to implement this.]
Write a program that reads one line of input text and breaks it up into words. The words should be output one per line. A word is defined to be a sequence of letters. Any characters in the input that are not letters should be discarded. For example, if the user inputs the line

He said, "That's not a good idea."
then the output of the program should be

He
said
That
s
not
a
good
idea

An improved version of the program would list "that's" as a single word. An apostrophe can be considered to be part of a word if there is a letter on each side of the apostrophe.
The calculator should store the result of an expression in a variable called "ans", which can be
used as an input in other mathematical expression
>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.
i want to edit my gridview on another page
when i click edit hyperlink a new page opens
this page has textboxes for each cloumn
the textbox should have the information stored for the row i clicked edit in it
how can o do that?
wat is the code for edit button? protected void Page_Load(object sender, EventArgs e)? and any other code i need plz
public partial class Edit : System.Web.UI.Page
{
SqlConnection sqlcon = new SqlConnection(@"Server=USER-PC;database=Asset_Store;uid=sa;pwd=sa;");
SqlCommand sqlcmd;
SqlDataAdapter da;
DataTable dt = new DataTable();

protected void Page_Load(object sender, EventArgs e)
{

if (!Page.IsPostBack)
{


sqlcon.Open();
sqlcmd = new SqlCommand("select * from category" , sqlcon);

da = new SqlDataAdapter(sqlcmd);
da.Fill(dt);

if (dt.Rows.Count > 0)
{

TextBox4.Text = dt.Rows[0][7].ToString();
TextBox2.Text = dt.Rows[0][8].ToString();
TextBox3.Text = dt.Rows[0][9].ToString();


}
sqlcon.Close();
}

}
this program is only reading the first row
when i press edit in any other row the data of the first row appear
wat to do?
I am making a web browser with tabs:
http://pastebin.com/4B55YZV1
This is a part of the whole code..
When i debug, it start perfectly, but when i press new tab button, it on'y opens a empty tab page
button1_click()
{
newTab();
}
Why?
Hii,
I am new to C# and I need help please..
When I run my website application, I get an IndexOutOfRangeException error in line 4. The following is part of my code:

1 DataRow dr;
2 dr = dtView.NewRow();
3 dr[0] = "Track Name";
4 dr[1] = dtPlaylist.Rows[0][1].ToString();
5 dtView.Rows.Add(dr);
6
7 dr = dtView.NewRow();
8 dr[0] = "Title";
9 dr[1] = dtPlaylist.Rows[0][2].ToString();
10 dtView.Rows.Add(dr);
11
12 dr = dtView.NewRow();
13 dr[0] = "Artist Name";
14 dr[1] = dtPlaylist.Rows[0][3].ToString();
15 dtView.Rows.Add(dr);



Thank you in advance.
LATEST TUTORIALS
APPROVED BY CLIENTS