C++ little programs help

C++ little programs help

Page 1 of 1

5 Replies - 1443 Views - Last Post: 30 December 2008 - 12:21 AM Rate Topic: -----

#1 diesel inferno   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 29-December 08

C++ little programs help

Posted 29 December 2008 - 08:18 PM

hi,guys i was wondering if u guys can help me.if anyone can create these C++ little programs it would be helpful many thanks guyssss

program one

Write a program that uses branching concepts and functions. For example, write a program that will allow the following problem to be solved:

ďSometimes itís difficult to decide which phone to use Ė my mobile phone or my home phone. If Iíve got free minutes left on my mobile phone, then I use them Ė but only if Iím calling a land line, or the person I want to call uses the same network provider that I have. If I donít have free minutes left, then I use the home phone (as long as Iím at home) Ė unless itís on the same network, in which case itís still cheaper to use the mobile. Having said that, sometimes my flatmate is on the home phone, and so if itís urgent I have to use my mobile anyway. If it is not urgent then I will wait until my flatmate has finished then use the home phoneĒ.


program two

Write a program that uses arrays. For example:

Ask the user to enter in 10 numbers into an array.
Perform a bubble sort to sort this array into numerical order.
Print the sorted numbers out to the screen.

program three

Write a program that uses input and output files.

Write, for example, names and addresses to a file.
Read names and addresses from the file.

Is This A Good Question/Topic? 0
  • +

Replies To: C++ little programs help

#2 Amadeus   User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 250
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: C++ little programs help

Posted 29 December 2008 - 08:21 PM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 n8wxs   User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: C++ little programs help

Posted 29 December 2008 - 08:23 PM

Welcome!

Please post your code attempting to solve your assignment. We will help you debug and correct your code. We will not do your work for you.

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#4 diesel inferno   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 29-December 08

Re: C++ little programs help

Posted 29 December 2008 - 09:17 PM

i dont no i dont even have C++ at home please guys its only 3 questions lol
Was This Post Helpful? 0
  • +
  • -

#5 Hyper   User is offline

  • Banned

Reputation: 108
  • View blog
  • Posts: 2,129
  • Joined: 15-October 08

Re: C++ little programs help

Posted 30 December 2008 - 12:17 AM

View Postdiesel inferno, on 29 Dec, 2008 - 08:17 PM, said:

i dont no i dont even have C++ at home please guys its only 3 questions lol


Beggers aren't choosers. If you're looking for answers, find a tutorial on C++ on the 'net, or go to a local library and skim a book... or! Use google, for she is your friend.
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6698
  • View blog
  • Posts: 31,070
  • Joined: 10-May 07

Re: C++ little programs help

Posted 30 December 2008 - 12:21 AM

View Postdiesel inferno, on 29 Dec, 2008 - 10:17 PM, said:

its only 3 questions

But it isn't our assignment, it's yours.

If you have an actual problem, or a real question, we'll help. If you just post your assignment, then you are asking us to do your work for you, with no effort from yourself.

If you can't do the work, then drop the class.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1