answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do you write a C program to calculate execution time of a program using all C sorts?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are the programming cycle?

Steps for Programming Cycletry to understand and analyze the problem.write the algorithm or draw the flow chart for the problem.create the source file using editor and the code according to the flow chart or algorithm.compile the program using the system software and the object file is created.step 4 is repeated till the source program contains no compilation errors, then step 6.link the necessary library files needed for the compilation of the object file.load the file for execution. Steps 6 and 7 are a part of the execution process.execute the program using the run option.


What are the errors in object oriented program?

In Java, errors that arise during the execution of the program are more formally referred to as Exceptions. Exceptions can be handled using try catch blocks. Here is an example : try { int answer = 42 / 0 ; } catch ( ArithmeticException e ) { e.printStackTrace(); }


Explain language processing activities with suitable diagrams?

Language processing activities arise to bridge the ideas of software designer with actual execution on the computer system. Due to the differences between the manners in which a software designer describes the ideas concerning the behavior of software and the manner in which these ideas are implemented in a computer system. The designer expresses the ideas in terms related to the application domain of the software. To implement these ideas, their description has to be interpreted in terms related to theexecution domain of the computer system. We use the term semantics to represent the rules of meaning of a domain, and the term semantic gap to represent the difference between the semantics of two domains. The fundamental language processing activities can be divided into those that bridge the specification gap and those that bridge the execution gap.· Program Generation Activities· Program Execution ActivitiesA program generation activity aims at automatic generation of a program. The source language is a specification language of an application domain and the target language is typically a procedure oriented PL. A program execution activity, organizes this execution of a program written in a PL on a computer system. Its source language could be a procedure-oriented language or a problem oriented language.o Program GenerationThe program generator is a software system which accepts the specification of a program to be generated, and generates a program in the target PL. We call this the program generator domain.The specification gap is now the gap between the application domain and the program generator domain. This gap is smaller than the gap between the application domain and the target PL domain.Reduction in the specification gap increases the reliability of the generated program. Since the generator domain is close to the application domain, it is easy for the designer or programmer to write the specification of the program to be generated.Fig. 1.3: Program generator domainThe harder task of bridging the gap to the PL domain is performed by the generator. This would be performed while implementing the generator. To test an application generated by using the generator, it is necessary to only verify the correctness of the specification input to the program generator. This is a much simpler task than ver­ifying correctness of the generated program. This task can be further simplified by providing a good diagnostic (i.e. error indication) capability in the program generator, which would detect inconsistencies in the specification.It is more economical to develop a program generator than to develop a problem-oriented language. This is because a problem oriented language suffers a very large execution gap between the PL domain and the execution domain, whereas the program generator has a smaller semantic gap to the target PL domain, j which is the domain of a standard procedure oriented language. The execution gap between the target PL domain and the execution domain is bridged by the compiler or interpreter for the PL.o Program ExecutionTwo popular models for program execution are· Translation· InterpretationProgram TranslationProgram translation model bridges the execution gap by translating a program written in a PL, called the source program (SP), into an equivalent program in the machine or assembly language of the computer system, called the target program (TP).


Was hello world the content of the first computer program?

No, "Hello world" is typically the first program assignment in introductory computer programming classes as it is trivial to write and almost useless.


What happens if the static modifier is removed from the signature of the main program in java?

Actually speaking nothing major happens. That method would become just another method in the class. You cannot use that as the method to begin the program execution in your class. Your class will not be a standalone java program and you cannot execute it like you did before using the public static void main() method.

Related questions

Where can one download the movie Servitude?

The movie, "Servitude", can be downloaded using a torrent program. One can use the torrent program, Utorrent, to download all sorts of movies like "Servitude".


Write a program to calculate the area of a cylinder using a function?

give an example of calculation of mathematics


What are the programming cycle?

Steps for Programming Cycletry to understand and analyze the problem.write the algorithm or draw the flow chart for the problem.create the source file using editor and the code according to the flow chart or algorithm.compile the program using the system software and the object file is created.step 4 is repeated till the source program contains no compilation errors, then step 6.link the necessary library files needed for the compilation of the object file.load the file for execution. Steps 6 and 7 are a part of the execution process.execute the program using the run option.


What is the difference between contiguous and non contiguous memory allocation?

in contiguous allocation overhead during execution of a program.in non contiguous allocation address translation is performed during execution of a program..


How can the pointer speed up program execution?

It is not that simple. Obviously, sub-optimal programs can be optimized, which may or may not include using pointers, but it requires a skilled programmer.


What mean by multithreaded program?

A multithreaded program is one that has multiple threads in execution. They may execute parallel to one another or totally without relation to one another. In Java you can create multithreaded programs using Java threads.


If the space program never occured how would this affect our daily lives?

You wouldn't be sitting at your computer, using GPS, better TV, and all sorts of small things in your world.


Can the execution time of a task be reduced by using many processors?

Yes, the execution of a task can be reduced by using multiple processors. Using more than one processor helps speed up a task.


What are the errors in object oriented program?

In Java, errors that arise during the execution of the program are more formally referred to as Exceptions. Exceptions can be handled using try catch blocks. Here is an example : try { int answer = 42 / 0 ; } catch ( ArithmeticException e ) { e.printStackTrace(); }


What is main advantage of using constructors in java?

Constructors have the same name as the class itself and they do not specify a return type, not even void because they return the instance of the class itself. Because constructors have the same name as the class then they allow method overloading and also save memory and execution time of program. Program release memory of constructors function after using this function and it reduce program complexity.


Need some tips or ideas or suggestion in C plus plus?

Need some tips or ideas or suggestion in C++?Hi I'm doing some project in C++ I'm doing some databaseSo, I need some help or tips or suggestionFrom my knowledge, i know that when we run an C++ program do some operations or some stuffs & when the program is terminated all the data will be lost ..So I'm using files to store the details that has been accepted in databaseCan we some concepts such that even after the program termination, previous point of execution i.e., all the previous contents or inputs or data during the execution of the program in last execution will be retained..


What stuff come from Ireland sheep?

Meat and wool. Using the meat all sorts of meals can be made and using the wool all sorts of clothes and other items can be made.