Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4239980
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:06:20+00:00 2026-05-21T03:06:20+00:00

I managed my original problem i had to add the break; but now the

  • 0

I managed my original problem i had to add the break; but now the auction asks for the item date start price and reserve but for some reason when i add all this and then go to browse for the item it just says existing auctions : Auction
how do i make it display the name, yet again sorry for my “noobishness” but i am getting there 😀 your all a great help by the way thank you so much

{
case place_auction:
    {
        screen.DisplayMessage("Please Enter a title for your Auction Item");
        string ItemName = Convert.ToString(Console.ReadLine());
        screen.DisplayMessage("Enter a start price for your item:");
        double startPrice = Convert.ToDouble(Console.ReadLine());
        screen.DisplayMessage("Now enter your reserve price for your item:");
        double reservePrice = Convert.ToDouble(Console.ReadLine());
        screen.DisplayMessage("Enter the closing date for your auction:");
        DateTime closeDate = Convert.ToDateTime(Console.ReadLine());

        // creating the auction
        Auction aucttion = new Auction(ItemName, startPrice, reservePrice, closeDate);

        // auction is entering auction list.
        auctionList.Add(aucttion);

        Console.WriteLine("auction is now created :)");
        Console.WriteLine("Auction details are as follows:");
        Console.WriteLine("Item name" + ItemName);
        Console.WriteLine("The Starting Price" + startPrice);
        Console.WriteLine("The Reserve Price" + reservePrice);
        Console.WriteLine("Closing date of this auction" + closeDate);
    }
case browse_auction:
    {
        if (auctionList.Count > 0)
        {
            Console.WriteLine("Existing Auctions:");
            foreach (Auction aucttion in auctionList)
            {
                Console.WriteLine("Auction");
            }

        }
        else
        {
            Console.WriteLine(" No existing auction appearing on the system");
        }

        break;
    }
case locate_auction:
    {
        screen.DisplayMessageLine("Insert Auction ID: ");
        break;
    }
case exit:
    {
        screen.DisplayMessageLine("");
        screen.DisplayMessageLine("System Shutting Down!");
        userExit = true;
        break;
    }
default:
    {
        screen.DisplayMessageLine("");
        screen.DisplayMessageLine("Selection was not recognisable, please try again");
        break;
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T03:06:21+00:00Added an answer on May 21, 2026 at 3:06 am

    You need to add a break; statement in the end of your first case:

    case place_auction:
        {
            /* snipped */
            Console.WriteLine("The Starting Price" + startPrice);
            Console.WriteLine("The Reserve Price" + reservePrice);
            Console.WriteLine("Closing date of this auction" + closeDate);
            break;
        }
    

    For the second part of your question (assuming auction has a property called “ItemName”):

        Console.WriteLine(string.Format("Auction: {0}", auction.ItemName));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I managed to found out how to delete field but I have a problem
I add C# group too in this, because this is not VB problem but
I've managed to get the original filename of a photo stored in the asset-library
I managed to request the publish_actions permission, but since it is revocable from the
I am reposting this question due to inability to solve the problem (original here
complete HTML virgin 3 weeks ago but have managed to stumble along and get
Problem is to load image file to UIImage. Original file cashed in file system
I'm porting an application to MacOS X - but the original developer's build system
I have managed to break a working application, and cannot work out how to
I managed to set marker colors for individual markers { y: 5, marker: {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.