so i am on my last 2 programs for my programminng course and i only have till monday(3 days) to do both of them
here are the guidlines for the first project:
14-1
Write a program that declares an array of ten floating point values. Have the program
prompt the user for each of the ten floating point values and store them
into the anay. The program should then report how many of the values entered
are larger than the value in the first element of the array. For example, if the
values entered are 5.2, 6.1, 2.9, 3.8, 8.9, 3.3, 2.0, 9.7, 7.4, 7.3, and 5.5, the program
should report that 5 of the values in the array are larger than the value in the first
element.
14-2
and here are the guidelines for the second:
Write a program that is functionally identical to the program described in project
14-1. In this version, however, use the vector class instead of a standard C++
array
so here is the code that ive done so far and i have got this far then i got stumped so i dont really know what to do, could anybody help guide me through how to finish this project help woul; dbe greatly apreciated.( please just pseaudo code, i need to understand it)
brock.holman.7
0
Newbie Poster
Recommended Answers
Jump to Postline 4: the array should have 10 values, not 11.
line 14: array indix values are 0 based, meaning 0, 1, 2, ... 9. There is no 10th. Count them on your fingers if you have to so that you verify to yourself that 0 to 9 is 10 values.
…
Jump to PostAlso, going by your guildlines, your ints need to be floats.
Jump to PostIt takes more than that to provide any shock value. Nice try though. Hope you had fun.
Jump to Postline 11 contains a word that is seldom seen in programming and has no role in your program other than shock value.
All 16 Replies
brock.holman.7
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
brock.holman.7
0
Newbie Poster
Doogledude123
45
Posting Whiz
brock.holman.7
0
Newbie Poster
Lerner
582
Nearly a Posting Maven
brock.holman.7
0
Newbie Poster
Lerner
582
Nearly a Posting Maven
brock.holman.7
0
Newbie Poster
brock.holman.7
0
Newbie Poster
Doogledude123
45
Posting Whiz
Lerner
582
Nearly a Posting Maven
brock.holman.7
0
Newbie Poster
Lerner
582
Nearly a Posting Maven
brock.holman.7
0
Newbie Poster
Lerner
582
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.