Find Jobs
Hire Freelancers

updating code written in ada language

$30-250 USD

Imefungwa
Imechapishwa over 9 years ago

$30-250 USD

Kulipwa wakati wa kufikishwa
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;
Kitambulisho cha mradi: 6647282

Kuhusu mradi

3 mapendekezo
Mradi wa mbali
Inatumika 9 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
3 wafanyakazi huru wana zabuni kwa wastani $99 USD kwa kazi hii
Picha ya Mtumiaji
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 ndani ya siku 3
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
I am a Professional coder and the task is achievable. The required deliverables would be provided in stipulated time. All the best.
$172 USD ndani ya siku 3
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
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 ndani ya siku 3
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
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 ndani ya siku 4
0.0 (0 hakiki)
0.0
0.0

Kuhusu mteja

Bedera ya EGYPT
Taawon, Faisal, Egypt
5.0
8
Njia ya malipo imethibitishwa
Mwanachama tangu Sep 12, 2014

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.