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 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.
Jump to PostWhy start at the end of the array and fill it in towards the front. Can be done, no prob, other than being a little unconventional.
Try to write code that displays 2 elements of the array. Post that code if it this post doesn't contain enough of a clue …
Jump to Postconst int MAX = 10 int A [MAX] int higherInts[MAX] int numElement = 0 for (int i = 0; i < MAX; ++i) input MAX ints into A use another loop ranging from 1 to MAX - 1 if first element of A lesss than current element …
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.