Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,106 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,729 people online right now. Registration is fast and FREE... Join Now!




Sequential files byVal

 
Reply to this topicStart new topic

Sequential files byVal, Sequential files byVal

pderonne
14 Oct, 2007 - 03:48 PM
Post #1

New D.I.C Head
*

Joined: 14 Oct, 2007
Posts: 2


My Contributions
how would i go about even starting these problems, my teacher thinks i am a professional programmer or soemthing becuase i dont even know where to start.
For problems 3 and 4, use local variables. You need to pass arguments to the procedures. Declare the parameters as byVal.

3) When the user clicks a button, open a sequential file that you create with three numbers in it. The button click event procedure should read in the three numbers from the file. The button click event procedure should then call a procedure you write called Increase_Prices, and pass these three numbers to it as arguments. Increase_Prices will print each price separately, increased by 20%, in a listbox.

4) When the user clicks a button use an inputbox to request the user to enter a sentence. Pass this string as an argument to a procedure you write called CountLetters that will print out (you decide how you want to output this) the string, and the number of characters in the string. Format your output so it would have the string surrounded by quotes using chr(34) and forms a complete sentence. If the user enters in “My dog is red.” an example output would look like:

The string “My dog is red.” has 14 characters in it.



User is offlineProfile CardPM
+Quote Post

NickDMax
RE: Sequential Files ByVal
14 Oct, 2007 - 05:04 PM
Post #2

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,858



Thanked: 49 times
Dream Kudos: 550
My Contributions
Well this is not a hard program to write. It seems as though you may be in a class that is over your head. Basically if your teacher is using windows events usually the students know at least enough to solve these problems with little effort.


Unfortunately I can not really help you unless you were to give us what you have already. Please read the Forum rules.

I can tell you that if you can not answer these two questions maybe you are in the wrong class (or perhaps you are not working in C++? ). As the windows programming assumes a basic programming knowledge.
User is offlineProfile CardPM
+Quote Post

Therois
RE: Sequential Files ByVal
15 Oct, 2007 - 05:43 AM
Post #3

New D.I.C Head
*

Joined: 20 Sep, 2007
Posts: 4


My Contributions
id advise making a stab at it before you ask

they will help you but find it an insult if u ask them to do it for you
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 09:18PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month