Edutainment teaching/learning tools must be very "entertaining". Otherwise, the tools will lose its attraction soon or later. In order to become formal tools in everyday teaching/learning process, they must ...
详细信息
ISBN:
(纸本)9783540730101
Edutainment teaching/learning tools must be very "entertaining". Otherwise, the tools will lose its attraction soon or later. In order to become formal tools in everyday teaching/learning process, they must be something more and also "something less" than an ordinary computer game in some aspects. We report our design and development of the proposed interactive Bomberman game-based teaching/learning tool that we are authoring. It brings modern education concept in concert with the classical teaching and laboratory work. While are reading/writing ccodes in the proposed game-based environment, their ccodes will control the movement of the Bomberman accompany with game music. This vivid learning environment can engage students spending their precious time for extensive practice since students have highly motivation to win the game. We hope that we have shown a new path for educational practice with computer games for teaching cprogrammingcourse.
The computational Aircraft Prototype Syntheses (cAPS) enables vehicle designers to create multi-disciplinary, multi-fidelity analysis models from a single, parametric geometric source. These capabilities are natively ...
详细信息
ISBN:
(数字)9781624105784
ISBN:
(纸本)9781624105784
The computational Aircraft Prototype Syntheses (cAPS) enables vehicle designers to create multi-disciplinary, multi-fidelity analysis models from a single, parametric geometric source. These capabilities are natively accessed programmatically through an interface written in the c programing language, which can present a significant hurdle for initial users. To lower entry barriers, enable scriptable problem formulation, and improve overall flexibility, a Python-based interface module, pycAPS, was created. The following paper provides an overview of pycAPS's capabilities and interface, while also providing simple examples of its use. Furthermore, details and discussions are provided on how pycAPS can be used to integrate cAPS capabilities into external Multi-Disciplinary Analysis and Optimization (MDAO) frameworks such as OpenMDAO, modeFRONTIER, and MSTc Engineering.
This paper uses the c programming language to develop a program that can solve the analytic solution which has been simplified. On the one hand, in the condition of the known time, we can get the temperature field of ...
详细信息
ISBN:
(纸本)9781457703218
This paper uses the c programming language to develop a program that can solve the analytic solution which has been simplified. On the one hand, in the condition of the known time, we can get the temperature field of one-dimension flat, and then compare with the results of the nomograph;on the other hand, we can get the cost time of unsteady state heat conduction under the condition of the known temperature, and then compare with the incomes of nomograph. In short, it is high efficiency in this method with high practical value, and is more accurate than the graph method.
In modern industrial applications there is a great need for reliable regulators that satisfy many different system requirements. This paper addresses the problem of using Dc electrical motors to drive both linear and ...
详细信息
In modern industrial applications there is a great need for reliable regulators that satisfy many different system requirements. This paper addresses the problem of using Dc electrical motors to drive both linear and non-linear mechanical loads using a PID regulator. A graphical interface has also been developed, to present the results and confirm the system's reliability. copyright (c) 2022 The Authors.
The personal computer hardware marketplace has grown rapidly in recent years. Many software projects, as a cost-cutting measure, are buying "off-the-self" items to meet heir hardware requirements. Almost all...
详细信息
ISBN:
(纸本)1581131275
The personal computer hardware marketplace has grown rapidly in recent years. Many software projects, as a cost-cutting measure, are buying "off-the-self" items to meet heir hardware requirements. Almost all of the device drivers for these devices are written in the c programming language. However, the selection of the programminglanguage for the project does not need to be confined to c. This paper details the powerful tools in Ada 95, such as pragmas to interface code written in other programminglanguages to Ada 95 applications. An example of a generic realtime Ada 95 application interfacing with a low-level c serial device driver is used to aid the reader in the concepts and idea's discussed in the paper.
This paper describes the use of an astronomical algorithm for two degrees of freedom of solar tracking mechanism with the result that the expected solar thermal collector panels always leads to the sun and solar energ...
详细信息
ISBN:
(纸本)9781510804616
This paper describes the use of an astronomical algorithm for two degrees of freedom of solar tracking mechanism with the result that the expected solar thermal collector panels always leads to the sun and solar energy is absorbed optimally. The movement triggers of the sun tracking mechanism is an astronomical algorithm that generates the azimuth and altitude values based on latitude, longitude, and time. This system does not use any sensor so that is more economical and can be applied anywhere. Simulations have been made using the c programming language with Dev-c++ IDE to test the accuracy of the azimuth and elevation values generated by astronomical algorithm used, and compared with the value produced by the U.S. Naval Observatory and Geoscience Australia. The location used is LIPI Bandung with latitude 107 degrees 36'E and longitude 6 degrees 52'S at every hour from 06: 00 to 18: 00 on the first date of each month of 2013. Simulation results show that the value of the azimuth and elevation resulting approached two other reference values with maximum azimuth difference 0.51 degrees and the maximum altitude difference 0.49 degrees to data the U.S. Naval Observatory, and the maximum azimuth difference 0.52 degrees and the maximum altitude difference 0.50 degrees to the data Australia Geoscience. Based on this research, it is known that the azimuth and elevation values was generated by these algorithms can be applied to two degrees of freedom of solar tracking mechanism because its accuracy is close to two other reference values. (c) 2015 The Authors. Published by Elsevier Ltd.
constraint programming systems allow a diverse range of problems to be modelled and solved. Most systems require the user to learn a new constraint programminglanguage, which presents a barrier to novice and casual u...
详细信息
ISBN:
(纸本)9783031308192;9783031308208
constraint programming systems allow a diverse range of problems to be modelled and solved. Most systems require the user to learn a new constraint programminglanguage, which presents a barrier to novice and casual users. To address this problem, we present the coPTIcconstraint programming system, which allows the user to write a model in the well-known programminglanguagec, augmented with a simple API to support using a guess-and-check paradigm. The resulting model is at most as complex as an ordinary c program that uses naive brute force to solve the same problem. coPTIc uses the bounded model checker cBMc to translate the model into a SAT instance, which is solved using the SAT solver caDicaL. We show that, while this is less efficient than a direct translation from a dedicated constraint language into SAT, performance remains adequate for casual users. coPTIc supports constraint satisfaction and optimisation problems, as well as enumeration of multiple solutions. After a solution has been found, coPTIc allows the model to be run with the solution;this makes it easy to debug a model, or to print the solution in any desired format.
This paper discusses a routing problem for planetary surface exploration with precedence constraints. In missions such as in-situ resource utilization (ISRU), exploration sites can be categorized into resource supply ...
详细信息
ISBN:
(数字)9781624107115
ISBN:
(纸本)9781624107115
This paper discusses a routing problem for planetary surface exploration with precedence constraints. In missions such as in-situ resource utilization (ISRU), exploration sites can be categorized into resource supply and consumption sites, and resource supply sites should be visited before consumption sites. The mathematical formulation of the proposed problem is defined as the vehicle routing problem with precedence constraints (VRPPc) and considers only pure precedence constraints without any complex constraints, such as time windows. Additionally, we employ a technique called feasible column generation to reduce the computation time of VRPPc and demonstrate its efficiency through numerical analysis in various cases.
In many engineering and science areas, models are developed and validated using high-level programing languages and environments as is the case with MATLAB. In order to target the multicore heterogeneous architectures...
详细信息
ISBN:
(纸本)9781450331968
In many engineering and science areas, models are developed and validated using high-level programing languages and environments as is the case with MATLAB. In order to target the multicore heterogeneous architectures being used on embedded systems to provide high performance computing with acceptable energy/power envelops, developers manually migrate critical code sections to lower-level languages such as c and OpencL, a time consuming and error prone process. Thus, automatic source-to-source approaches are highly desirable. We present an approach to compile MATLAB and output equivalent c/OpencL code to target architectures, such as GPU based hardware accelerators. We evaluate our approach on an existing MATLAB compiler framework named MATISSE. The OpencL generation relies on the manual insertion of directives to guide the compilation and is also capable of generating c wrapper code to interface and synchronize with the OpencL code. We evaluated the compiler with a number of benchmarks from different domains and the results are very encouraging.
Assertions are helpful in program analysis, such as software testing and verification. The oracles encoded in the assertions help detect potential flaws and release engineers from the manually check of the reported we...
详细信息
ISBN:
(纸本)9781728126074
Assertions are helpful in program analysis, such as software testing and verification. The oracles encoded in the assertions help detect potential flaws and release engineers from the manually check of the reported weaknesses, which is error-prone, burdensome and time-consuming. While in practice, few engineers would write assertions during programming, and it is challenging to generate assert statements, and insert them into proper locations automatically. In this paper, we propose a statically directed assertion recommendation approach for c programs. It combines static analysis, dynamic testing, and program verification to automatically recommend and validate weakness-oriented assertions, which is defined as an assert statement used to detect program weaknesses. Firstly, we integrate a static analysis tool such as FlawFinder and some learned patterns about cWE (common Weakness Enumeration) to report potential program flaws. Secondly, we insert the corresponding assertions into the suspicious locations of those flaws. Then, we validate the program inserted with the assertions through two methods, the first is to execute the code with some test cases generated by automatic test-case generators such as Klee and Dart, and the second is to verify the program with some automatic verifier such as cPA-checker and Smack. Finally, we report on whether those flaws could be a real weakness. Experimental results show that our approach helps to find 125 real weaknesses in open source software from Github. Furthermore, our performance in detecting static analysis' true positives can reach 81.42%.
暂无评论