The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 1 Day Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
I am writing a .xaml.cs file. The user selects an item from a comboBox. The item is then displayed in a listBox. I am trying to prevent the user from selecting the same item from the comboBox, and having it appear mulitple times in the listBox. I am using an if loop to evaluate the users' (choice), but I keep getting errors that I can't use the == operand to evaluate a field and Listbox items. Can someone explain to me, what I am doing wrong. What I have coded is in the MainWindow.xaml.cs file
Â
These are the guidelines that I am using to build the program:
Â
No registration more than once for the same course.
No registration for more than nine credit hours (e.g., no more than three courses).
Â
The program validates the user menu selection, and if valid, registers the student for the selected course. Otherwise, the program outputs an error message.
The program then outputs the current list of registered classes.
The program should output the cumulative total credit hours the student has registered for thus far.
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly