Pages: 5

Words: 1266

Get free samples written by our Top-Notch subject experts for taking Assignment Help UK.

ASP is one type of approach that is utilized for representation as well as reasoning for knowledge. In this task, the university library system has been chosen where different types of queries are applied corresponding to the task. Besides that, the dev-c software platform has been chosen to write as well as execute the program. Various types of range value findings, citation value counts and others are shown in this chapter. Apart from that, the proper implementation of the code snippet has been developed here by using the dev C++ platform that has been associated with the corresponding programming language C++. For instance, the corresponding project has been implemented by following the proper approach of developing the function based programmers.

### Technical analysis

#### Question 1

Figure 1:

(Source: Generated by author)

From the above figure it can be derived that the range value has been selected and two variable a and b is taken where and count. The integer lower is taken as l and integer higher is taken as h, while integer lower is taken as 0 and higher is taken as n-1. The citation code has been written in this task to calculate the program corresponding to the task. The h_index function is applied to calculate the citations values for the university library system. H_index is utilized for mentioning the terms number as well as citations. Besides that, H_index is one of the highest values. The median here taken as M where the M value is average of lower and higher value. The lower or higher values are mentioned in this code to calculate the citation values. The ‘if’ as well as ‘else’ condition has been applied where the high or low equation is implemented as per the university norms. Moreover, the corresponding index values have been shown in the form of output values.

Figure 2: Main function for the first question

(Source: Created by Self)

From the above figure it can be derived that the integer is taken as 5 where vector citation count as integer. Apart from that, the above figure has been shown for the corresponding main function that has been implemented here for retrieving the value of counts with respect to the index values.

#### Question 2

The implementation of the respective code has been done in terms of describing the range from unsigned lower to the unsigned higher in terms of values. Apart from that, the following code snippet has been shown in terms of identifying the corresponding range function.

Moreover, the function that has been defined here as bool in_range has been implemented with three parameters that have been mentioned with unsigned lower, unsigned higher along with the unsigned value. Here three variable has been taken a, b, c where lower, highest, xvalue. Apart from that, the corresponding return function has been identified in terms of mentioning proper conditions that has been clearly verified here. Y in range of 10, 100, 30 then count is less than in range .Along with that, the main function has been developed in terms of specifying the proper value that has been retrieved in terms of mentioning values from unsigned lower to unsigned higher. Furthermore, the respective problem has been developed as well as implemented here by identifying the values in terms of preparing the corresponding range function. The in_range function has been implemented to select the range values for calculating the in-range or out-range functions (DYOUB, COSTANTINI and DE GASPERIS, 2018).

Assignment help in London refers to the service provided by tutors, experts or online platforms that assist students in completing their academic assignments.

#### Question 3

The description of question 3 has been discussed here in terms of verifying the corresponding function that has been implemented for showing the ASP approach as well as logic with respect to the proper outcome. However, it has been found that the below code has been described as well as identified in terms of implementing the proper logic.

Apart from that, the main function has been implemented here in terms of displaying the addition as well as the average function. Along with that, the input has been taken as a variable a, b, c from the user for identifying the output in terms of summation as well as average of the respective function. Alongside, the respective code has been shown in terms of verifying the output by performing the corresponding logic in terms of developing the proper code (SUN, KULICKI and SOPEK, 2021).

#### Question 4

The university library system has included the subscription functions where students can get low costly values. Besides that, to calculate the subscription costs, various types of functions are implemented by utilizing the c programming languages.

The above included picture shows the commands that are utilized for calculating the subscription costs. There are three type of variable taken those are a, b, and c. Here a is taken and amount value, b is taken as discount value, c is taken as paid value. In the answer sheet programming P is print as amount that need to be entered by user, if then y print discount value, if a greater than 1000 and less than equal to a then the Y print as discount value, if a greater than 2000 but less than equal to 4000 then the Y print as discount value, if a is more than 4000 and less than equal to 8000 then Y print as discount value.

Conclusion

From the above research report, it has been concluded that four different programs have been included corresponding to the task. Besides that, the dev-c platform is utilized here to execute the program successfully. Various types of functions as well as loops are applied in this program to complete the task. The range values calculation programs are applied here to calculate the ranges between the two variables as per the university library system requirements. Apart from that, the corresponding implemented function has been identified in terms of mentioning proper conditions that has been clearly verified here. Along with that, the main function has been developed in terms of specifying the proper value that has been retrieved in terms of mentioning values from unsigned lower as well as the unsigned higher. Furthermore, the respective three problems have been developed as well as implemented here by identifying the values in terms of preparing the corresponding range function. Apart from this, the university library systems have been considered in this program to complete the task successfully. For instance, the corresponding project has been implemented by following the proper approach of developing the function based programmes. Furthermore, it has been concluded that the ASP is mainly utilized to represent the reasonings for knowledge along with the proper implementation as well as the development procedure.

References

Dyoub, A., Costantini, S. And De Gasperis, G., 2018. Answer set programming and agents. The Knowledge Engineering Review, 33.

Sun, X., Kulicki, P. And Sopek, M., 2021. Logic Programming with Post-Quantum Cryptographic Primitives for Smart Contract on Quantum-Secured Blockchain. Entropy, 23(9), pp. 1120.

Get your doubts & queries resolved anytime, anywhere.

• On-Time Delivery

• 100% Plagiarism-Free Work

Get original assignments written from scratch.

• UK Expert Writer

Highly-qualified writers with unmatched writing skills.

54000+ Project Delivered
Get best price for your work

Ph.D. Writers For Best Assistance

Plagiarism Free

No AI Generated Content

offer valid for limited time only*