Programming

Programming Questions? Ask a Programmer for Answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Programming
This answer was rated:

c# XXXXX to this Package delivery services, such as

c# XXXXX to this: Package‐delivery services...
c# XXXXX to this:


Package‐delivery services, such as FedEx, DHL and UPS, offer a number of different shipping options,
each with specific costs associated. Create an inheritance hierarchy to represent various types of packages.
Use Package as the base class of the hierarchy, then include classes TwoDayPackage and OvernightPackage that derive
from Package. Base class Package should include private instance variables representing the name, address, city,
state and ZIP code for the package’s sender and recipient, and instance variables that store the weight (in
ounces) and cost per ounce to ship the package. Package’s constructor should initialize these private instance
variables with public properties. Ensure that the weight and cost per ounce contain positive values. Package
should provide a public method CalculateCost that returns a decimal indicating the cost associated with shipping
the package. Package’s CalculateCost method should determine the cost by multiplying the weight by the cost per
ounce. Derived class TwoDayPackage should inherit the functionality of base class Package, but also include an
instance variable that represents a flat fee that the shipping company charges for two‐day delivery service.
TwoDayPackage’s constructor should receive a value to initialize this instance variable. TwoDayPackage should
redefine method CalculateCost so that it computes the shipping cost by adding the flat fee to the weight‐based
cost calculated by base class Package’s CalculateCost method. Class OvernightPackage should inherit directly from
class Package and contain an instance variable representing an additional fee per ounce charged for
overnight‐delivery service. OvernightPackage should redefine method CalculateCost so that it adds the additional
fee per ounce to the standard cost per ounce before calculating the shipping cost. Write a test application
that creates objects of each type of Package and tests method CalculateCost. Don’t create an interactive
application, which asks the user to enter address
Show More
Show Less
Ask Your Own Programming Question
Answered in 1 minute by:
10/9/2011
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,299
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Verified
Hi,
Welcome to JustAnswer.
let me know the deadline?
Ask Your Own Programming Question
Customer reply replied 6 years ago
Sunday night October 9th 2011 11:30 pm
Do you have any code to start with?
Ask Your Own Programming Question
Customer reply replied 6 years ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Package1
{

//set recipient city
public static void package setRecipientCity(string city)
{

recepientCity = city;

}

//C++ TO C# XXXXX WARNING: The following #include directive was ignored:
//#include "OvernightPackage.h" // OvernightPackage class definition

// Constructor
public static string &sAddress, string &scity, const string &sState, int sZIP, const string &rName, const string &rAddress, const string &rCity, const string &rState, int rZIP, double w, double cost, double fee) : Package(sName UnnamedParameter1, sAddress UnnamedParameter2, sCity UnnamedParameter3, sState UnnamedParameter4, sZIP UnnamedParameter5, rName UnnamedParameter6, rAddress UnnamedParameter7, rCity UnnamedParameter8, rState UnnamedParameter9, rZIP UnnamedParameter10, w UnnamedParameter11, cost UnnamedParameter12)

{
setOvernightFeePerOunce(fee);
// validate and store overnight fee

}


//public static include "TwoDayPackage.h" TwoDayPackage.TwoDayPackage(string sName, string sAddress, string sCity, string sState, int sZIP, string rName, string rAddress, string rCity, string rState, int rZIP, double w, double cost, double fee)

{
Package = new (sName, sAddress, sCity, sState, sZIP, rName, rAddress, rCity, rState, rZIP, w, cost);
setFaltFee(fee);

}




//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
//TwoDayPackage package2("Lisa Klein", "5 Broadway", "Somerville", "MA", 33333, "bOB gEORGE", "21 Pine Rd", Cambridge", "MA", 44444, 10.5, .65, 2.0 ); int main() { Package package1 ( "Lou Brown", "1 Man St", "Boston", "MA, 11111, "XXXXX XXXXX", "7 eLM sT", "nEW yORK", "NY", 22222 TwoDayPackage package2("Lisa Klein", "5 Broadway", "Somerville", "MA", 33333, "bOB gEORGE", "21 Pine Rd", Cambridge", "MA", 44444, 10.5, .65, 2.0 ); OvernightPackage package3 ( "Ed Lewis", "2 Oak St", "Boston", "MA", 55555, "XXXXX XXXXX", "9 mAIN sT", "Denver", "CO", 66666, 12.25, .7, .25 ); cout << fixed << setprecision( 2 ); cout << "Package 1:\n\nSender:\n" << package1.getSenderName() << '\n' << package1.getSenderAddress() << '\n' << package1.getSenderCity() << ", " << package1.getSenderState() << ' ' << package1.getSenderZIP(); cout << "\n\nRecipient:\n" << package1.getRecipientName() << '\n' << package1.getRecipientAddress() << '\n' << package1.getRecipientCity() << ", " << package1.getRecipientState() << ' ' << package1.getRecipientZIP(); cout << "\n\nCost: $" << package1.calculateCost() << end1; cout << "\nPackadw 2:\n\nSender:\n" << package2.getSenderName() << '\n' << package2.getSenderAddress() << '\n' << package2.getSenderCity << ", " << package2.getSenderState() << ' ' << package2.getSenderZIP(); cout << "\n\nRecipient: \n" << package2.getRecipientName() << '\n' << package2.getRecipientAddress() << '\n' << package2.getRecipientCity() << ", " << package2.getRecipientZIP(); cout << "\n\nCost: $" << package2.calculateCost() << endl; cout << "\n\Package 3:\n\nSender:\n" << package3.getSenderName() << '\n' << package3.getSenderAddress() << '\n' << package3.getSenderCity() << ", " << package3.getSenderState() << ' ' << package3.getSenderZIP(); cout << "\nRecipient:\n" << package3.getRecipientName() << '\n' << package3.getRecipientAddress() << '\n' << package3.getRecipientCity() << ", " << package3.getRecipientState() << ' ' << package3.getRecipientZIP(); cout << "\n\nCost: $" << package3.calculateCost() << endl; return 0;
}

public partial class Package
{

//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// Package (string NamelessParameter1, string NamelessParameter2, string NamelessParameter3, string NamelessParameter4, int string, string NamelessParameter6, string NamelessParameter7, string NamelessParameter8, int NamelessParameter9, double NamelessParameter10, double NamelessParameter11);


public void setSenderName(string name)
{

senderName = name;
}

//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: string getSenderName() const
public string getSenderName()
{

return senderName;

}
public void setSenderAddress(string address)
{
senderAddress = address;

}

//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: string getSenderAddress() const
public string getSenderAddress()
{
return senderAddress;

}

public void setSenderCity(string city)
{
senderCity = city;
}

//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: string getSenderCity() const
public string getSenderCity()
{
return senderCity;
}
public void setSenderState(string state)
{

senderState = state;

}
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: string getSenderState() const
public string getSenderState()
{
return senderState;

}
public void setSenderZIP(int zip)
{
senderZIP = zip;

}
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: int getSenderZIP() const
public int getSenderZIP()
{

return senderZIP;

}
public void setRecipientName(string name)
{
recipientName = name;
}
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: string getRecipientName() const;
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// string getRecipientName();

// set recipints address
public void setRecipientAddress(string address)
{
recipientAddress = address;
}

//return recipients address
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: string getRecipientAddress() const
public string getRecipientAddress()
{

return recipientAddress;

}
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// void setRecipientCity(string NamelessParameter);
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: string getRecipientCity() const;
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// string getRecipientCity();
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// void setRecipientState(string NamelessParameter);
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: string getRecipientState() const;
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// string getRecipientState();
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// void setRecipientZiP(int NamelessParameter);
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: int getRecipientZIP() const;
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// int getRecipientZIP();

//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// void setWeight(double NamelessParameter);
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: double getWeight() const;
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// double getWeight();

//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// void setCostPerOunce (double NamelessParameter);
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: double getCostPerOunce() const;
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// double getCostPerOunce();

//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: double calculateCost() const;
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// double calculateCost();


private string senderName;
private string senderAddress;
private string senderCity;
string senderStae;
private int senderZIP;
private string recipientName;
private string recipientAddress;
private string recipientCity;
private string recipientState;
int recipintZIP;
private double weight;
private double costPerOunce;

}



//C++ TO C# XXXXX TODO TASK: The following statement was not recognized, possibly due to an unrecognized macro:
// //////////Package package1 ("Lou Brown", "1 Man St", "Boston", "MA, 11111, "XXXXX XXXXX", "7 eLM sT", "nEW yORK", "NY", 22222 TwoDayPackage package2 ( "Lisa Klein", "5 Broadway", "Somerville", "MA", 33333, "bOB gEORGE", "21 Pine Rd", Cambridge", "MA", 44444, 10.5, .65, 2.0);

//C++ TO C# XXXXX TODO TASK: The following statement was not recognized, possibly due to an unrecognized macro:
// ////////OvernightPackage package3 ("Ed Lewis", "2 Oak St", "Boston", "MA", 55555, "XXXXX XXXXX", "9 mAIN sT", "Denver", "CO", 66666, 12.25, .7, .25);



//C++ TO C# XXXXX WARNING: The declaration of the following method implementation was not found:
//ORIGINAL LINE: Package::Package(const string &sName, const string &sAddress, const string &sCity, const string &sState, int sZIP, const string &rName, const string &rAddress, const string &rCity, const string &rState, int rZIP, double w, double cost) : senderName(sName), senderAddress(sAddress), senderCity(sCity), senderSate(sState), senderZIP(sZIP), recipientName(rName), recipientAddress(rAddress), recipientCity(rCity), recipientState(rState), recipientZIP(rZIP)


//C++ TO C# XXXXX WARNING: The declaration of the following method implementation was not found:
//ORIGINAL LINE: string Package::getRecipinetName() const
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:

// return recipient city
//C++ TO C# XXXXX WARNING: The declaration of the following method implementation was not found:
//ORIGINAL LINE: string Package::getRecipientCity(const string &city)

// set recipient state

//return recipients state
// set recipient ZIP code
// return recipients zip code
// validate and store cost per ounce

//#if ! OVERNIGHT_H
//C++ TO C# XXXXX TODO TASK: The following statement was not recognized, possibly due to an unrecognized macro:
void Package.setRecipientState(const string &state)(recipientState = state; } string Packpage.getRecipientState() const { return recipientState; } void Package.setRecipientZIP(int zip) { recipientZIP = zip; } int Packgage.getRecipientZIP() const { return recipientZIP; } void Package.setWeigh(double w) { weight=(w<0.0) ? 0.0 : w; } double Package.getWeight() const { return weight; } void Package.setCostPerOunce(double cost) { costPerOunce = (cost < 0.0) ? 0.0 : cost; } double Package.getCostPerOunce() const { return costPerOunce; } double Package.calculateCost() const { return getWeight()* getCostPerOunce(); }
//#define OVERNIGHT_H


public class OvernightPackage : Package
{
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
// OvernightPackage (string NamelessParameter1, string NamelessParameter2, string NamelessParameter3, string NamelessParameter4, int NamelessParameter5, string NamelessParameter6, string NamelessParameter7, string NamelessParameter8, string NamelessParameter9, int NamelessParameter10, double NamelessParameter11, double NamelessParameter12, double NamelessParameter13);


// set overnight fee
public void setOvernightFeePerOunce(double overnightFee)

{

overnightFeePerOunce = (overnightFee < 0.0) ? 0.0 : overnightFee;

}
// set overnight fee

// return overnight fee
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: double getOvernightFeePerOunce() const
public double getOvernightFeePerOunce()
{
return overnightFeePerOunce;

}
// return overnight fee

//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: double calculateCost() const
public new double calculateCost()
{

return getWeight()* (getCostPerOunce() + getOvernightFeePerOunce());

}
// calculate shipping cost for package

private double overnightFeePerOunce;
// fee per ounce for overnight delivery
} // end class Overnight

//C++ TO C# XXXXX TODO TASK: The following statement was not recognized, possibly due to an unrecognized macro:
OvernightPackage.OvernightPackage(const string &sName,
#else
//C++ TO C# XXXXX TODO TASK: The following statement was not recognized, possibly due to an unrecognized macro:
void Package.setRecipientState(const string &state)(recipientState = state; } string Packpage.getRecipientState() const { return recipientState; } void Package.setRecipientZIP(int zip) { recipientZIP = zip; } int Packgage.getRecipientZIP() const { return recipientZIP; } void Package.setWeigh(double w) { weight=(w<0.0) ? 0.0 : w; } double Package.getWeight() const { return weight; } void Package.setCostPerOunce(double cost) { costPerOunce = (cost < 0.0) ? 0.0 : cost; } double Package.getCostPerOunce() const { return costPerOunce; } double Package.calculateCost() const { return getWeight()* getCostPerOunce(); } OvernightPackage.OvernightPackage(const string &sName,
#endif







public partial class TwoDayPackage : Package
{
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
//public TwoDayPackage(string NamelessParameter1, string NamelessParameter2, string NamelessParameter3, string NamelessParameter4, int NamelessParameter5, string NamelessParameter6, string NamelessParameter7, string NamelessParameter8, string NamelessParameter9, int double, double NamelessParameter11, double NamelessParameter12);

private void setFlatFee(double fee)
{
flatFee = (fee < 0.0) ? 0.0 : fee;

}
// set flat fee for two day delivery service

// return flat fee
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: double getFlatFee() const
private double getFlatFee()
{

return flatFee;

}

//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: double calculatecost() const;
//C++ TO C# XXXXX TODO TASK: The implementation of the following method could not be found:
//double calculatecost();



private double flatFee; //flat fee two day delivery

}

//C++ TO C# XXXXX WARNING: The declaration of the following method implementation was not found:
//ORIGINAL LINE: double TwoDayPackage::calculateCost() const
//C++ TO C# XXXXX WARNING: 'const' methods are not available in C#:
// print each package's information and cost
// end main












public partial class Package
{
public Package(string sName, string sAddress, string sCity, string sState, int sZIP, string rName, string rAddress, string rCity, string rState, int rZIP, double w, double cost)
{
senderName = sName;
senderAddress = sAddress;
senderCity = sCity;
senderSate = sState;
senderZIP = sZIP;
recipientName = rName;
recipientAddress = rAddress;
recipientCity = rCity;
recipientState = rState;
recipientZIP = rZIP;

setWeight(W);
setCostPerOunce(cost);

}
public string getRecipinetName()
{
return recipientName;
}
public string getRecipientCity(string city)
{

return recipientCity;

}
}

public partial class TwoDayPackage
{
public double calculateCost()
{
return Package.calculateCost() + getFlatFee();

}
}
Can you zip entire project folder?
Zip, upload the file to http://wikisend.com and post download link here. Formatting is messed up.
Ask Your Own Programming Question
Customer reply replied 6 years ago
Server error
The website encountered an error while retrieving http://wikisend.com/download/164046/. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
Can you provide the .cs file?
You can try http://ge.tt
Which version of C# XXXXX you using?
How many hours left
Ask Your Own Programming Question
Customer reply replied 6 years ago
24 HOURS LEFT
Visual studio version 8

http://ge.tt/9nRBAa8
I will check and provide the answer ASAP.
Ask Your Own Programming Question
Customer reply replied 6 years ago
or if you can convert this c++ file to c#
http://ge.tt/98jGAa8

ok thanks
Thank you. I will check
Ask Your Own Programming Question
My apologies. I tried but lost.
I am opting out for other experts to join you.
You will be notified by email as soon as any expert will join you.
Thank you for your patience.
Ask Your Own Programming Question
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 9,151
Experience: MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
Verified
Do you still need help with this.

Hi is it ok if i do this assignment from scratch instead of using the C++ file you have send. Also please note that C# XXXXX would have one file for each class.
And is it VS 2008, please confirm
Ask Your Own Programming Question
Customer reply replied 6 years ago
no problem
as long as you don't pass the $65 I deposited
Ok just to confirm this is VS 2008 C# XXXXX based application right
Ask Your Own Programming Question
Customer reply replied 6 years ago
yes thanks

c3 solution for:
Package‐delivery services, such as FedEx, DHL and UPS, offer a number of different shipping options,
each with specific costs associated. Create an inheritance hierarchy to represent various types of packages.
Use Package as the base class of the hierarchy, then include classes TwoDayPackage and OvernightPackage that derive
from Package. Base class Package should include private instance variables representing the name, address, city,
state and ZIP code for the package’s sender and recipient, and instance variables that store the weight (in
ounces) and cost per ounce to ship the package. Package’s constructor should initialize these private instance
variables with public properties. Ensure that the weight and cost per ounce contain positive values. Package
should provide a public method CalculateCost that returns a decimal indicating the cost associated with shipping
the package. Package’s CalculateCost method should determine the cost by multiplying the weight by the cost per
ounce. Derived class TwoDayPackage should inherit the functionality of base class Package, but also include an
instance variable that represents a flat fee that the shipping company charges for two‐day delivery service.
TwoDayPackage’s constructor should receive a value to initialize this instance variable. TwoDayPackage should
redefine method CalculateCost so that it computes the shipping cost by adding the flat fee to the weight‐based
cost calculated by base class Package’s CalculateCost method. Class OvernightPackage should inherit directly from
class Package and contain an instance variable representing an additional fee per ounce charged for
overnight‐delivery service. OvernightPackage should redefine method CalculateCost so that it adds the additional
fee per ounce to the standard cost per ounce before calculating the shipping cost. Write a test application
that creates objects of each type of Package and tests method CalculateCost. Don’t create an interactive
application, which asks the user to enter address and weight information, just test your classes writing a
test application.
Ok got it thanks
Ask Your Own Programming Question
Hello. I have this answer ready for you, Let me know when you are online and I will post the Answer.
Ask Your Own Programming Question
Customer reply replied 6 years ago
yes i am online
Answer Link

And thanks for accepting if it look ok.
Ask Your Own Programming Question
Customer reply replied 6 years ago
link broken???
Oops! This link appears to be broken.
Suggestions:
Go to ge.­tt
Search on Google:
It showed me it was downloaded once and hence i delete it
well here is the link please paste the following link in a new browser window


http://ge.tt/8JgLqc8?c
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 9,151
Experience: MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
Verified
ATLPROG and 87 other Programming Specialists are ready to help you
Ask your own question now
Customer reply replied 6 years ago
New follow up question from last solution:

Use the Package inheritance hierarchy created in Exercise (PackageApplication) to create an application that displays the
address information and calculates the shipping costs for several Packages. The application should contain an
array of Package objects of classes TwoDayPackage and OvernightPackage. Loop through the array to process the
Packages polymorphically. For each Package, use properties to obtain the address information of the sender and
the recipient, then print the two addresses as they would appear on mailing labels. Also, call each Package’s
CalculateCost method and print the result. Keep track of the total shipping cost for all Packages in the array, and
display this total when the loop terminates
Bywhen do you need this done
Ask Your Own Programming Question
Customer reply replied 6 years ago
Thursday 11:00pm est
ok i will try to have it ready by today or tomorrow
Ask Your Own Programming Question
Customer reply replied 6 years ago
thanks
no problem
Ask Your Own Programming Question
Hello. I have this answer ready for you, Let me know when you are online and I will post the Answer.
Ask Your Own Programming Question
Customer reply replied 6 years ago
I will be on tonight 11pm easten
I left a positive feedback survey
I might be offline then, do you want me to post the solution right now
Ask Your Own Programming Question
Customer reply replied 6 years ago
yes please
Please download the answer from this Answer_Link
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 9,151
Experience: MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
Verified
ATLPROG and 87 other Programming Specialists are ready to help you
Ask your own question now
Customer reply replied 6 years ago
Re Unlimited access just answers
last 2 question for c#
See please below:

Question 1
Write a GUI program that reads a five-letter word from the user and produces all
possible three letter combinations that can be derived from the letters of the five-letter
word. For example, the three-letter words produced from the word “bathe” include the
commonly used words “ate,” “bat,” “bet,” “tab,” “hat,” “the” and “tea,” and the 3-letter
combinations “bth,” “eab,” etc. Have a “Save” button and use SaveFileDialog to save the
results to a file. Also, have an “Open” button and find the five letters which are used to
create the opened file. A possible GUI is given below; feel free to design your own GUI.

question 2
Suppose we wish to process survey results that are stored in a file.
First, create a Windows Form that prompts the user for survey responses and outputs each
response to a file. Use StreamWriter to create a file called numbers.txt. Each integer should
be written using method Write.
Then add a TextBox that will output the frequency of survey responses. You should read
the survey responses from numbers.txt. The responses should be read from the file by
using a StreamReader. Class string’s split method should be used to split the input string
into separate responses, then each response should be converted to an integer. The
program should continue to read responses until it reaches the end of file. The results
should be output to the TextBox.
A possible GUI is given below; feel free to design your own GUI.
Sorry i didnt get you, did you need help with those 2 questions too
If yes can you please raise a separate question for them and start them with "For ATLProg" to request me.

Also what is the deadline for these
Ask Your Own Programming Question
Customer reply replied 6 years ago
For ATLProg
Re Unlimited access. I need help with question 1 and question 2 below, please


deadline -- Thursday October 20th 2011 11:59 pm eastern time


Question 1 (to written in C#)
Write a GUI program that reads a five-letter word from the user and produces all
possible three letter combinations that can be derived from the letters of the five-letter
word. For example, the three-letter words produced from the word “bathe” include the
commonly used words “ate,” “bat,” “bet,” “tab,” “hat,” “the” and “tea,” and the 3-letter
combinations “bth,” “eab,” etc. Have a “Save” button and use SaveFileDialog to save the
results to a file. Also, have an “Open” button and find the five letters which are used to
create the opened file. A possible GUI is given below; feel free to design your own GUI.




Question 2 (to be written in C#)
Suppose we wish to process survey results that are stored in a file.
First, create a Windows Form that prompts the user for survey responses and outputs each
response to a file. Use StreamWriter to create a file called numbers.txt. Each integer should
be written using method Write.
Then add a TextBox that will output the frequency of survey responses. You should read
the survey responses from numbers.txt. The responses should be read from the file by
using a StreamReader. Class string’s split method should be used to split the input string
into separate responses, then each response should be converted to an integer. The
program should continue to read responses until it reaches the end of file. The results
should be output to the TextBox.
A possible GUI is given below; feel free to design your own GUI.
Would appreciate if you can raise a new question for these..
Ask Your Own Programming Question
Customer reply replied 6 years ago
can you write the complete code in c# to answer question 1 and question 2 please
Yes i can but as i said i would need to have a new question before i could start.

Please start your question with "For ATLProg Only" to request me again, next time you need any help !


Also please upload any document you have that shows the suggested GUI on wikisend.com and have the download link mentioned in the new question that you raise.
Ask Your Own Programming Question
Ask ATLPROG Your Own Question
ATLPROG
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 9,151
9,151 Satisfied Customers
Experience: MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

ATLPROG is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

9,151 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

13,299 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

800 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
My account was seriously hacked. I bought a new phone it was
My account was seriously hacked. I bought a new phone it was so bad. To my surprise they apparently set up a fake FB account. Now I cannot get into my account. The account it keeps pulling up is not m… read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,124 satisfied customers
My Microsoft Word and Excel app now require Office 365. They
My Microsoft Word and Excel app now require Office 365. They didn't when I installed the apps. I have them linked to Dropbox files. ???? … read more
Jinsmn
Jinsmn
Systems Administrator
Diplom
1,260 satisfied customers
I am new to word press and downloaded the wordpress.org and
i am new to word press and downloaded the wordpress.org and paid for the business plan and hosted by Bluehost I purchased a theme for Buz theme called the-multiple-pro which they sent a zip file I sep… read more
Chris L.
Chris L.
IT/Web Manager
Vocational, Technical or Trade Scho
29 satisfied customers
I want to pass a csv file twice. The first pass works
I want to pass a csv file twice. The first pass works perfectly: LAreader = csv.reader(open(InFileName,'r')) for line in LAreader: SvcDepNamesSet.add (line[0].strip())When I try a second time, there i… read more
George Sibiya
George Sibiya
PhD
217 satisfied customers
Can I ask you about this question At Olympic diving
Hi Can I ask you about this question At Olympic diving competition level, 10 diving judges award At Olympic diving competition level, 10 diving judges award a single mark (with one decimal place) for … read more
LogicPro
LogicPro
Computer Software Engineer
13,299 satisfied customers
I have had a mailing list in excel (personal) for years. Can
I have had a mailing list in excel (personal) for years. Can you help me find it so I can update it?? … read more
Sheri
Sheri
Bachelor\u0027s Degree
102 satisfied customers
I need to design an antisense oligo against beta catenin and
I need to design an antisense oligo against beta catenin and HCV-related sequences for clinical use … read more
Kris R
Kris R
IT Manager
Computing
2,652 satisfied customers
I need to know how to create and move a stack of playing
I need to know how to create and move a stack of playing cards in visual basic … read more
Ingo U
Ingo U
Master\u0027s Degree
357 satisfied customers
Write a C++ program to read in various types of test
Write a C++ program to read in various types of test questions (multiple choice and True/False) from a test bank (text file), and load the questions into an array of questions. You will need to implem… read more
LogicPro
LogicPro
Computer Software Engineer
13,299 satisfied customers
I want to copy a formula horizontally across a row and can't
I want to copy a formula horizontally across a row and can't get it to repeat … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I'm trying to make a python object oriented checkers game,
I'm trying to make a python object oriented checkers game, but I'm lost. I'm trying to find a source code for a python checkers game. Is there any way you would be able to help me … read more
George Sibiya
George Sibiya
PhD
217 satisfied customers
I have a spreadsheet with customer sales and market
I have a spreadsheet with customer sales and market information for the first half of 2017. The list has over 10,000 rows. I added the market segment manually from a drop down menu. Very time consumin… read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
Not sure how to explain this...but I have an excel report
Hi! Not sure how to explain this...but I have an excel report with a field name for first name and one for last name. The report contains multiple people from the same household, one row for each. Eac… read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
Wanting to insert function into a invoice I am building on
wanting to insert function into a invoice I am building on excel, how to add a subtraction … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
How do I get my restored Microsoft Wordpad .rtf files to
How do I get my restored Microsoft Wordpad .rtf files to stop coming up in Landscape orientation. I want them to normally come up in Portrait orientation? (Tech Viet helped me a few days ago.)… read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
I am looking for help understanding the content of some
Hi. I am looking for help understanding the content of some files. Ideally, I could have someone explain what certain things mean so that I am not making assumptions. The files are in HTML, JS, SQL, a… read more
George Sibiya
George Sibiya
PhD
217 satisfied customers
Searching for a tutorial on WordPress theme ColorMag Pro -
Searching for a tutorial on WordPress theme ColorMag Pro - some I have found have no sound and or the narration isn't understandable. … read more
RussellA
RussellA
Solutions Architect
Bachelor\u0027s Degree
123 satisfied customers
VWorker01.pyw import sys; print (sys.version) n = 4; m = 2 M
vWorker01.pyw import sys; print (sys.version) n = 4; m = 2 M = n * [n * [0.0]] print("show M contents: ") print (M) for i in iter(range(m,n)): M[i][i] = 1.0 print ("show M contents: ") print(M)# For c… read more
George Sibiya
George Sibiya
PhD
217 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x