Edhesive Assignment 5 help
So my code manages to run every sample run correctly except for sample run 4 which has it as a decreasing array instead of an unsorted array:
Sample Run 1
How long do you want the array?
3
Enter a number
1.3
Enter a number
1.5
Enter a number
8.1
Your array is {1.3, 1.5, 8.1}
The average is 3.633333333333333
The range is 6.8
The array is sorted in increasing order
Sample Run 2
How long do you want the array?
-3
Not a valid length!
Sample Run 3
How long do you want the array?
2
Enter a number
3.6
Enter a number
0.8
Your array is {3.6, 0.8}
The average is 2.2
The range is 2.8
The array is sorted in decreasing order
Sample Run 4
How long do you want the array?
5
Enter a number
2.0
Enter a number
4.1
Enter a number
6.4
Enter a number
0.2
Enter a number
1.3
Your array is {2.0, 4.1, 6.4, 0.2, 1.3}
The average is 2.8
The range is 6.2
The array is unsorted
Here's my code:https://repl.it/@jedifan65/assignment-5-array-statistics
Please help me. This assignment is due today.
EDIT: Please help
Also would be helpful to let us know the assignment as well since trying to piece your assignment together from the code kinda isn't fun
@jeefma Sorry about that. Here's the assignment details: Instructions
For this assignment, you will write a program which creates an array of decimal numbers from a user's input, then returns some simple statistics about the array.
The program should first ask the user how long they wish the array to be (must be a positive integer). If the user enters a non-positive integer then the program should display "Not a valid length!", then stop. Otherwise, the program should create an array of this length, then prompt the user to enter double values one at a time, filling the array from the start with the user's inputs until the array is full.
Once the array is filled the program should print the numbers in the array, followed by the average (arithmetic mean) of the values, the range of the values, and a statement on whether the array is sorted in increasing order, decreasing order or neither.
The average of the values is found by dividing the sum of the numbers by the amount of numbers in the array (note: this may cause roundoff errors, which you do not need to worry about for this assignment).
The range of the numbers is found by subtracting the smallest number in the array from the largest number in the array.
The array is sorted in increasing order if every number is greater than or equal to the previous number. The array is sorted in decreasing order if every element is less than or equal to the previous number. If neither of these is true then the list is unsorted. If every element on the list is the same, then it is counted as being in increasing order.
Thanks for this!
If you want increased mileage and a wider scope for your cars guest posts, publishing them on innovatecar.com gives you that opportunity. We have a healthy number of followers who may be interested to read your content. https://newcarbike.com/write-for-us/
Here at World of Wheels, it is our mission to be the automotive home of drivers in the Des Moines, IA area. We provide a vast selection of new and used vehicles, exceptional car care, and customer service with a smile.
https://allworldwheels.com/
Socialize Club- Buy Facebook live stream views cheap in price but high in quality.We provide you with 100% Real Facebook live stream views delivered at your facebook live video instantly. https://www.socializeclub.com/services/buy-real-facebook-live-stream-views/
@socializeclub Thank you for sharing your amazing site, here is an other site which also help to get real instagram likes. https://activeig.com/buy-instagram-likes/
Home page:https://dotsnel.com/ Here in technology section We will be providing you most updated and latest news on different categories like , Shopping, Business, Browsing, Dating and Travel.
Payaler Offers Designer Clothes at Huge Discounts: A blog around Payaler. For more: https://bruitly.com/payaler-reviews/
How to convert youtube videos to MP3 using FLVto. IMPlogs: a blog about how you can easily convert youtube videos into the format of your choice...https://implogs.com/flvto/
Stacy Wilson Bus Crime Scene Photos: A blog about what happened and the photos from the scene.
https://clickmorestuff.com/stacy-wilson-bus-crime-scene-photos/
@ClickmoreStuff I hope you are doing well. I'm working on a blog post regarding Edhesive Assignment 5 help. You might be interested in it. Do you mind if I send you it when I will complete it? Please let me know https://dottrusty.com/
@Johnmash2 I hope you are doing well. i 'm a blogger working on edhesive assigment 5. Mind if i send you when i will complete it? looking forward to your reply.
http://newsdustbin.com/
Nature has the ability to invigorate and revitalize us all. Whether it is through a walk in the park or a hike up a mountain, we can all benefit from spending time away from the hustle and bustle of life https://plansoutdoor.com/ – it’s science.
Free software like: adware, security software, free antivirus downloads, download firefox and more https://theslevy.com/
The 2022 Lamborghini Aventador LP780-4 Ultimae will make its public debut at this week's Goodwood Festival of Speed. Just 600 examples will be ...https://www.gtopcars.com/makers/lamborghini/2022-lamborghini-aventador/
Here is some info and advice about choosing the right survival tools https://theoutdoorchamp.com/best-survival-multi-tool-for-backpacking/ to put together a kit for travelling, camping, hiking, or any outdoor adventure. Having a few quality tools can make the difference in helping you survive an emergency situation. Space and weight are always important considerations when it comes to putting together a survival kit.
AMR Technosoft Pvt Ltd. is a growing company which provides IT equipment on Rent, Sales, Service and Maintenance. Our services are available at all the locations within the territory of India.
https://www.amrtechnosoft.com/
We started in July 2020 in midst of a global Pandemic COVID-19. The idea is to give a platform to the enormous talent that our country has and is yet to be explored. We only sell the products that are Made In India by our Desi talents which is what our name means.
https://www.clayie.com/
Clayie is one of the Online Flower Delivery and Home Decor Items stores in India, also one of the leading Plants.
https://www.clayie.com/
My writing skills are not good. Especially very hard for me to write different essays. But I found a service which helps me with film critique essay https://essaywritingstore.com/writing-movie-critique
If you need help, you just try it also.
A marketing plan writing service comes in handy for students who do not know how to write a great marketing plan of exceptional quality. As a rule, effective marketing plans belong to the type of business writing that can advertise some products and services or provide some information about them in order to reach the target consumers. More about this https://essaysservice.com/marketing-plan-writing-service.html
@lindatyler I disagree with you, because writing essays is really a simple task, but only for those who have tried to learn the art of writing them before. In fact, there is nothing difficult to acquire this skill several times a week by watching training videos on YouTube from famous writers who tell you how to write essays on any topic and practice after watching. YouTube is full of such tutorials and they are usually posted on channels with at least 34 thousand subscribers! I'm sure their authors are using https://soclikes.com/ to increase their number.
If I were a programmer, I would appreciate your code, but, unfortunately, I do not understand anything about this, as well as about writing) And for this I even turn to professionals for help in this regard. https://pro-papers.com/write-my-assignment-for-me
@nameno10 nice thoughts! Don't you think it's worth posting these thoughts on Instagram? After all, this social network is now very popular. By the way, I advise you use the services of https://viplikes.net/buy-instagram-followers in order to quickly increase the number of subscribers and promote your account to the top.
@JustinHamm thank you for sharing your site to increase number of subscribers and I also find recommended links https://www.thereporter.com/2022/01/13/buy-instagram-followers/
@SteveHarley1 Thank you steve for sharing this, even one more site is here in same niche of Instagram followers https://expressfollowers.com/buy-instagram-likes/
Our professional assignment writers - http://www.qualityassignment.co.uk/services/assignment-writers/ are happily provide writing help on assignment, essay and dissertation at Quality Assignment which is leading academic writing help provider company in UK.
By profession I am an assignment writer and happily serve assignment writing help and essay help at Assignment Help Folks - http://assignmenthelpfolks.com/ which is leading educational help providers in Australia.
did you ever figure it out? because i am stuck on this part as well :/
Instead of pasting the code here, link the repl to the post. Dong so not only makes it readable, but it also lets us see firsthand and easily fork+edit it, so that we can better help you.
@AllAwesome497 Sorry about that. I'm new to this website, so forgive me for not being clear about everything. https://repl.it/@jedifan65/assignment-5-array-statistics
@jedifan65 No worries.