Find Jobs
Hire Freelancers

updating code written in ada language

$30-250 USD

Closed
Posted over 9 years ago

$30-250 USD

Paid on delivery
Your task is change the second half of the first loop so that all assignments to the counting Array "Freq()" are updated in the Exception portion of the code. There should be no valid updates to "Freq()" anywhere else in the loop we don't want to see this statement in the program, Freq(Index) := Freq(Index) +1 ; updated in the Exception portion of the code. There should be no valid updates to "Freq()" anywhere else in the loop Deliverables 1.A copy of your new code [login to view URL] documentation of the program 3.A test run of your code to show that it is working. Your code need to include print statements in your error handler to demonstrate that your code is running the exception handler. here is the code: with Ada.Text_IO , Ada.Integer_Text_IO ; use Ada.Text_IO, Ada.Integer_Text_IO; procedure Grade_Distribution is Freq: array (1..10) of Integer := (others => 0); New_Grade : Natural; Index, Limit_1, Limit_2 : Integer; begin Grade_Loop: loop begin Get(New_Grade); exception when Constraint_Error => exit Grade_Loop; end; Index := New_Grade/10 + 1; begin Freq(Index) := Freq(Index) +1 ; exception when Constraint_Error => if New_Grade = 100 then Freq(10) := Freq(10) + 1; else Put("Error -- new grade: "); Put(New_Grade); Put(" is out of range"); New_Line; end if; end; end loop Grade_Loop; Put("Limits Frequency"); New_Line; New_Line; for Index in 0..8 loop Limit_1 := 10 * Index; Limit_2 := Limit_1 + 9; if Index = 9 then Limit_2 := 100; end if; Put(Limit_1); Put(Limit_2); Put(Freq(Index +1)); New_Line; end loop; end Grade_Distribution;
Project ID: 6647282

About the project

3 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
3 freelancers are bidding on average $99 USD for this job
User Avatar
Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have checked your requirements.i have right skills to work on this assignment my award = superb result = happy client. In a good partnership, good results happen. Good cooking makes good eating!BWe consider our client as our partner. can u provide your email or sky-pe etc for further discussion about the project. I am ready to discuss with you with best Regards
$155 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I am a Professional coder and the task is achievable. The required deliverables would be provided in stipulated time. All the best.
$172 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi. I am a 2013 graduate of the University of Texas at Dallas with a 3.7 GPA in computer science (minor in applied mathematics). I have considerable experience in C++ and Java. To establish a work reputation, I am willing to do your code updating for free (or the minimum if Freelancer does not allow no-charge) and/or, if you desire, to do it in parallel with whoever you chose to pay. My only goal is experience and a track record of quality, timely work. Thanks for your consideration.
$30 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
We are the leading young professional software development organization having extensive technical expertise and knowledge in developing, managing, optimizing and customizing software’s by implementing these software’s in different demanding programming tools and latest technologies especially in Linux, C++, C #, Java. We have fully studied your project requirements description and also highlight main points in order to perform your demands which is required to complete the project in a given proposed time frame, as our commitment is a key to our successful journey which also inspired our employers who gave us the full rating on our completed projects as a "Project Completion Rate" which is also shown in our profile. Moreover we are also fully committed to accomplish the task assigned by you with the required state of the art technology to fulfill your requirements as prescribed in this project. I thinks that this is the best way to utilize our impressive skills under the light of our previous experiences and excellent reviews given by the employers. We wish to render you our services and hopeful not to let you disappoint. We will also be responsive with a positive gesture without demanding any further cost. We are quite optimistic in a bid to receive this project. Thanks With Best Regards Your Well Wisher Motivated Young Freelancer
$94 USD in 4 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of EGYPT
Taawon, Faisal, Egypt
5.0
8
Payment method verified
Member since Sep 12, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.