|
Hi mates
i hope its been awesome
i got a question...?
i have to do some project in C#
who can help me?
that is ...
a management clinic which is include
1) adult or 2) child
and it has a person as a GP
if GP diagnosis Cold , then give a prescription with price
else referral to Specialist (with random function)
if specialist diagnosis the patient need to surgery , print coast
else print all prescription with price
I'll appreciate in advance to help me guys
|
|
|
|
|
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!
If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Questions like this depend entirely on your definition of "help".
If you're asking for a "partner" to write your code for you, you're not going to get that help.
If you've written a bunch of code and you're stuck with a particular problem, that we can help with, provided you ask a detailed question describing the problem.
|
|
|
|
|
|
What is your basis for merge? Also, how is the visual representation different from underlying data source?
The control does not directly give options to merge. You will need to override the Paint event for the control and then show/hide borders.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
I purchased a Bosch BNO055 multifunction sensor USB stick. I believe I need to add it to the appxmanifest file manually. I don't know where/how to find the correct DeviceID and Function Type values to enter into the xml elements. The driver that I downloaded does not seem to offer any hints and I am not fluent in C++.
If anyone has experience with this type of unit I would like to benefit from your experience.
|
|
|
|
|
1. plug the device into the PC.
2. Open Device Manager
3. Right-click the device and choose properties. I think you can find the Device ID there.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Yes, thank you for the help.
|
|
|
|
|
I'm currently using C++ Builder and I'm only doing console programming at the moment. But eventually I will move forward into making some Windows programs. One program I'd like to write is a test. I'd like to make a psychology test. This will have about 10 questions. Either just true or false or maybe I'll decide they will be multiple choice.
My question is which language and IDE do you think would be easier to get this done? Visual Studio using C# or Embarcadero C++ Builder?
I can't seem to come to a conclusion myself so here I ask.
|
|
|
|
|
That isn't up to us: only you can make that decision.
Why? Because we have no idea how competent you are in either of those languages. Me? I'd probably be faster in C# because I use it more these days. Some other members will reverse that, because they use C++ more often so are more comfortable using that.
Pick the language you know best, and you'll probably have made the right decision.
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
In addition to OriginalGriff's comments, Visual Studio 2017 Community Edition (which is free) is an ideal IDE. Furthermore is supports Windows application building in C, C++, C#, VB.NET etc., and Web development in ASP.NET. So choose the language that you are most experienced with and use Visual Studio as the IDE.
|
|
|
|
|
Member 12974235 wrote: This will have about 10 questions. Either just true or false or maybe I'll decide they will be multiple choice. Most languages know the concept of a "loop". So, the language to use is not determined by the amount of questions.
I'd say Visual Basic is the way to go. Lots of examples out there, including psychology tests.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: I'd say Visual Basic is the way to go With a C++ background!!! I would have thought c# would be the best platform to learn and there are many more examples on the interweb that VB.net (one of the reasons I moved from VB.Net).
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: With a C++ background!!! Then he'll be able to grasp VB quickly
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
Eddy Vluggen wrote: I'd say Visual Basic is the way to go.
You dislike him that much?
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Eddy Vluggen wrote: Visual Basic is the way to go. Lots of examples out there, including psychology tests. Question 1: What possessed you to choose Visual Basic? 
|
|
|
|
|
Everone knows that C# is better for 11 questions or more. For 10 and lower, we use VB.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I'm not a beginner by any means. I done a lot of console programming. I will probably use a console program as a prototype for the Windows version.
But you're right. Either language will work just fine.
|
|
|
|
|
Don't use a console program as a prototype: the two operate completely differently. The console is functional programming, where the app determines what is to happen at any time. The Windows version is event driven, where the user (and to an extent the data) determines what is to happen when. Trying to write a windows program as if it was a console app will not work at all well.
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I'd recommend Windows Forms / C#: you have a great IDE, Visual Studio, all the essentials for single-inheritance OOP (with Interfaces to kind-of implement multiple inheritance), and a time-tested (albeit quirky) set of useful controls ... and the ability to create custom controls, or controls that inherit from (and modify) the native controls.
I think that once you get going with these tools, you'll feel like your days in console programming were a jail sentence
cheers, Bill
«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12
|
|
|
|
|
Well, in my opinion, you would find it easier to prototype things with C#, you could always port your code to C++ or even C if you need to for optomization reasons. Visual Studio can be downloaded for free, though it doesn't have all the useful libraries to make absolutely everything easier. If you go with Winforms at first you will not have to do any ASP.NET back-coding for the GUI, that can save a lot of time.
The reason I suggest C# is that it is Strongly Typed and Type Safe making it much easier to debug than a language like Java.
|
|
|
|
|
Member 12974235 wrote: My question is which language and IDE do you think would be easier to get this done?
No language at all.
There are internet services that already do that. They provide a way for you to write questions, provide a form for the answer, and probably even grading. I suspect some are even free.
|
|
|
|
|
Well, first of all hello to everyone reading my question.
Question:
I am supposed to write a program in console version of c# in vs2015 for training purposes, this is the app (Class Score Average Calculator):
Code an app that grabs score and its multiply and shows the average.
ex.
score 19 multiply 2 and 2nd Score 18 | multiply 1
Average = ( (19*2)+(18*1) ) / (2+1)
Average = ( (Score1*Mul1) + (Score2*Mul2) + .... + (Score n.Mul n)) / (Sum of Multiplies)
****problem , there is no limit to the course scores (The user can input like 50 scores)
|
|
|
|
|
And how would that cause a problem? Most programs accept an undefined number of inputsL a Word document can hold any number of pages, this forum can hold any number of posts, etc.
You have to create a loop to accept and process some input, and a convention as to how you signify the end of the input. In this case (console app not having menus and mouse input) you could use a convention such as "multiplicity zero signals the end" and hence causes the loop to be exited.
If you need all the data before you can start your calculations, then you also need an "elastic" data structure to hold the inputs (a List could do). Are you sure a simple average can only be calculated once all the data is available? look at your formula...
|
|
|
|