How JustAnswer Works:

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

Ask Ingo U Your Own Question

Ingo U
Ingo U, Software Engineer
Category: Programming
Satisfied Customers: 476
Experience:  Over 25 years experience in software development. Expert in Microsoft .Net, C#, C++, VB, SQL
Type Your Programming Question Here...
Ingo U is online now
A new question is answered every 9 seconds

I am trying to create a c# XXXXX program from the following Write

Resolved Question:

I am trying to create a c# XXXXX program from the following

Write a program that inputs the amount of the purchase and calculates the shipping charge based on the following table:
$0.00 - $250.00: $5.00
$250.01 - $500.00: $8.00
$500.01 - $1,000.00: $10.00
$1,000.01 - $5,000.00: $15.00
over $5,000.00: $20.00

so far I have this but its not complete nor displaying the shipping values.

double saleAmount = 0;
double shipping = 0;
Console.WriteLine("A program that inputs the amount of the purchase and calculates the shipping charge");
Console.WriteLine("Enter a purchase amount to find out your shipping charges: ", saleAmount);
Console.ReadLine();

if (saleAmount > 5000) shipping = 2000;
else if (saleAmount > 1000) shipping = 1500;
else if (saleAmount > 500) shipping = 1000;
else if (saleAmount > 250) shipping = 800;
else if (saleAmount > 0) shipping = 500;
else shipping = 0;
Submitted: 3 years ago.
Category: Programming
Expert:  Ingo U replied 3 years ago.
Hi,
I can complete this for you very shortly. Please check you email for a notification.
Thanks,
Ingo
Customer: replied 3 years ago.

Sure I would like for you to complete this for me. I don't know if you already have solved it I did not see anything in my email besides the message above to tell me check my email.

 

Thanks

Expert:  Ingo U replied 3 years ago.
Here you go:


using System;

namespace shipping
{
class Program
{
static void Main(string[] args)
{
double saleAmount = 0;
double shipping = 0;

Console.WriteLine("A program that inputs the amount of the purchase and calculates the shipping charge");
Console.Write("Enter a purchase amount to find out your shipping charges: ");
string line = Console.ReadLine();
saleAmount = double.Parse(line);

if (saleAmount > 5000) shipping = 20;
else if (saleAmount > 1000) shipping = 15.00;
else if (saleAmount > 500) shipping = 10.00;
else if (saleAmount > 250) shipping = 8.00;
else shipping = 5.00;

Console.WriteLine(String.Format("Your merchandise in the amount of ${0:f2} will incur a shipping charge of ${1:f2}", saleAmount, shipping));

Console.Write("Press any key to exit...");
Console.ReadKey(false);
}
}
}
Ingo U, Software Engineer
Category: Programming
Satisfied Customers: 476
Experience: Over 25 years experience in software development. Expert in Microsoft .Net, C#, C++, VB, SQL
Ingo U and 2 other Programming Specialists are ready to help you
Customer: replied 3 years ago.
perfect. That works thanks.
Customer: replied 3 years ago.

Hello Ingo,

 

I hope that you are online. I have a programming question that has been opened all day and it appears no one is working on it. I hope that you can work on my open question and respond with an answer asap. Also I will give you a bonus if you are able to.

 

Thanks

Expert:  Ingo U replied 3 years ago.
Go ahead, shoot. I'm here at the moment but nothing too complicated, please :-)
Customer: replied 3 years ago.
Can you see what I already have opened. Or do I have to send you the details. Because I am afraid I will pay twice for the same question.
Customer: replied 3 years ago.

Ok, I hope this is not too complicated.

 

In C# using visual studio 2008.

 

 

Using Methods, Write a program that simulates calculation of building cost. This program will ask the user for a number of inputs that you will have to determine based on the problem statement. Your program will then calculate the cost of a building based on these inputs.

 

Problem Statement.

A company would like you to design a program that will generate a building cost that is based on the square feet of the building times the number of floors. The square foot building cost is 100/sqft.

 

Also computed into the cost is the number of windows requested and the number of doors. When a user enters the number of windows or doors you must also determine the type of window or door that they want to get the cost.

Doors:

  • Flat- 100/door
  • 3 panel- 150/door
  • 5 panel - 200/door

Windows:

  • Aluminum -200/window
  • Wood - 250/window
  • Vinyl - 350/window

 

You will define a menu method that will allow the user to choose what cost they want to add, and if they want to continue.

 

You will define a window cost method that will take as an argument the number of windows they want, inside the method you will identify what type of window they want and then calculate the cost.

This method will return the total cost of all windows.

 

You will define a door cost method that will take in the number of doors that they want. Inside the method you will determine the type of door and the total cost of all doors. This method will return the total cost of all doors.

 

You will define a method that calculates the square footage price of the building. This method will take in length and width and the number of floors. (square foot is defined as length * width)

 

This method will return the total cost of the buildings square foot price.

 

The last method is the total cost method. This method will take the window, door and square foot cost as parameters it will return the total cost of the building.

 

Also include a flow chart and pseudo code and make sure your code includes comments.

 

I have two hours to do this so the quick the better. And a bigger bonus.

 

Here is the table format

 

 

You must have a test data table that will show your test data.

Length

Width

#floors

#doors

Door type

# windows

Window type

Total cost of building

25 100 1 5 2 8 3 $253,550.00
Expert:  Ingo U replied 3 years ago.
YOu won't get charged twice, you only pay when you click the ACCEPT button.
But I don't see another open question from you that hasn't been answered yet.
It might be easiest if you re-post the question here.
Customer: replied 3 years ago.
Ok great. I sent you the problem. Let me know if you have received it.
Expert:  Ingo U replied 3 years ago.
OK, it's not too complicated but it's too tedious for 2 hrs and honestly I don't have 2 more hrs in me tonight. I'll opt out for now, there are other guys around the world that might take it, and I'll check back tomorrow; if nobody has taken it on I think I'll be able to do it.
Current time here 9:15 pm EST USA

Regards,
Ingo

Customer: replied 3 years ago.

I already have some code would you be able to modify it then. Because the work is due by 12 tonight.

 

Sorry

Expert:  Ingo U replied 3 years ago.
Sorry, I'm going to have to pass.
Customer: replied 3 years ago.
ok thanks
Expert:  Ingo U replied 3 years ago.
Hi,
I see no one has jumped in, would you still like help on this? Sometimes deadlines can be extended...

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 Customer New York
< Last | Next >
  • 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 Customer New 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!!!! Alex Los 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. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, 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. Esther Woodstock, 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. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7463
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
< Last | Next >
  • http://ww2.justanswer.com/uploads/SP/spatlanta2010/2011-6-23_12450_photo.64x64.gif ATLPROG's Avatar

    ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7463
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Computer Software Engineer

    Satisfied Customers:

    5603
    Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
  • http://ww2.justanswer.com/uploads/unvadim/2010-11-15_210218_avatar.jpg unvadim's Avatar

    unvadim

    Computer Software Engineer

    Satisfied Customers:

    1158
    Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.
  • http://ww2.justanswer.com/uploads/lifesaver333/2010-10-17_191349_ls.jpeg lifesaver's Avatar

    lifesaver

    Computer Software Engineer

    Satisfied Customers:

    950
    Several years of intensive programming and application development experience in various platforms.
  • http://ww2.justanswer.com/uploads/EH/ehabtutor/2012-8-2_202016_1.64x64.jpg ehabtutor's Avatar

    ehabtutor

    Computer Software Engineer

    Satisfied Customers:

    864
    Bachelor of computer science, 5+ years experience in software development, software company owner
  • http://ww2.justanswer.com/uploads/RA/rajivsharma086/2012-6-6_17128_displaypic.64x64.jpg Raj's Avatar

    Raj

    Computer Engg.

    Satisfied Customers:

    860
    BE CS, 4+ Experience in Programming and Database (ERP)
  • http://ww2.justanswer.com/uploads/eljonis/2010-01-06_130406_eljon2.jpg Eljon's Avatar

    Eljon

    Consultant

    Satisfied Customers:

    590
    11 yrs of programming (PHP, WordPress, XSL, SQL, JavaScript)