Tuesday, March 24, 2020

Computer Languages Essays - Programming Languages, C, Source Code

Computer Languages Despite having very little knowledge of the world of computer programming, I have come to believe that C++ is currently the programming language of choice. If that is the case, it would be easiest to only learn C++ and to ignore the other programming languages. However, computer programmers should not ignore the other programming languages for at least three important reasons. One, some computers might not accept C++ as a programming language. Two, there may be features of other programming languages that are superior to C++. Three, there are many useful programs written in languages besides C++ that can only be modified with knowledge of those other languages. For these reasons, it is important that all good programmers are able to adapt to other programming languages. The intention of this lab is to create computer programmers who are able to adapt to many different programming languages. Section I: Examining High-Level Programming Languages Introduction to Section I In this section, six previously-prepared programs, written in the programming languages Fortran, Pascal, and C, are looked at and compared. For each program a hypothesis is formed about the function the program serves, and the way in which the program performs that function. Also included in the hypothesis is a description of what makes the programming language easy or difficult to read. Testing the hypothesis is simply a matter of compiling and running the program using a variety of inputs. For each experiment in this section, I wrote out a hypothesis for the program before I tested it. Then, after testing the program, I prepared a conclusion about how the program works. Experiment 1: oddeven.f Hypothesis I believe that the Fortran program will first ask for how many numbers are in your list of numbers. Then it will read in all the numbers in your list, one at a time and tell you if the number that you just entered is even or odd. The program will keep track of how many of your numbers are even and how many are add. After you have entered in all the numbers in your list, it will print out how many of your numbers are odd and how many are even. The Fortran language is fairly easy to understand, so forming my hypothesis of what the program would do was not a very difficult task. Most of the commands used in Fortran are words that represent their function like "PRINT *," "READ *," "IF," "THEN," and "END." On the other hand, Some of the commands used, like "DO 11 I =1" and "MOD," are vague and not easily understood. The print commands are especially helpful for checking my hypothesis. Because the print commands were written to give the user a good idea of what the program is doing, they also helped me figure out what the program is going to do. Conclusion The program behaved pretty much as I thought it would in my hypothesis. First the program instructed me to "Enter length of list." Then I was to enter in the numbers in my list one by one, and after each number the computer either responded with "[number] is even" or "[number] is odd. After I had entered in all the numbers in my list, the program printed out how many of my numbers were even and how many were odd. The program did not even mess up when I entered in decimal numbers, instead it just truncated the number and proceeded as if the truncated number was the number to be evaluated. Unfortunately, the program did label zero an even number, which it isn't, but that is a fairly minor mistake. Also, I happened to have noticed that if I was entering numbers, and screwed up, the program wouldn't let me delete the last number I entered. This is kind of a drawback, but I don't know how one would go about fixing that problem. Experiment 2: weather.p Hypothesis To begin with, the program will print the following "Good day. My name is Ronald Gollum. I'm stuck in this box until quitting time. Please chat with me about the weather. Is it raining now?" The computer will store the user's answer to this question under a variable titled "Ans." If your answer to the question is Y or y, then the computer will store the value true under the Boolean variable titled "Raining." If your answer to that question is not Y or y, then the program will store the value False in "Raining" and then print the message "Too bad.

Friday, March 6, 2020

Simple French Verb Conjugations for Louer (to Rent)

Simple French Verb Conjugations for Louer (to Rent) The French verb  louer  means to rent. When you need to say rented, renting, or will rent a conjugation is required. French students will be delighted to know that this ones pretty easy because it follows the most common verb conjugation pattern found in the language. Conjugations of the French Verb  Louer Louer is a regular -er verb and the endings required in the conjugations follow the pattern of similar words. If you know how to conjugate inviter (to invite), fumer (to smoke), or any other verbs that end in -er, then this will be an easy lesson. The trick to French verb conjugations is that the ending changes with the subject pronoun as well as the past, future, or present tense. First, you must identify the verb stem and in this case, that is  lou-.   With that information, follow the table to discover the appropriate endings for each form of  louer. For example, I am renting is je loue and we will rent is nous louerons. Practicing these in context using simple sentences will make them easier to memorize. Subject Present Future Imperfect je loue louerai louais tu loues loueras louais il loue louera louait nous louons louerons louions vous louez louerez louiez ils louent loueront louaient The Present Participle of  Louer The present participle of louer  is louant. This was formed by simply adding -ant  to the verb stem. Beyond its use as a verb, it can also become an adjective, gerund, or noun when needed. The Passà © Composà © and Past Participle The  passà © composà ©Ã‚  is a common way to express the past tense in French. Its very easy and requires the use of the  past participle  louà ©. In order to complete the construction, conjugate the auxiliary verb  avoir  to fit the subject pronoun. For instance, I rented becomes jai louà © while we rented is nous avons louà ©. Notice how ai  and avons are conjugates of avoir, yet the past participle does not change. More Simple Louer  Conjugations to Learn Those are the most important conjugations of  louer  that you should know. Once you learn those, consider studying these other simple forms. The subjunctive verb mood is used when the action of renting is uncertain. Similarly, the conditional verb mood implies that the renting will only happen if something else does. In formal French writing, you will likely come across the passà © simple and imperfect subjunctive as these are literary verb forms. Subject Subjunctive Conditional Pass Simple Imperfect Subjunctive je loue louerais louai louasse tu loues louerais louas louasses il loue louerait loua lout nous louions louerions loumes louassions vous louiez loueriez loutes louassiez ils louent loueraient lourent louassent The imperative verb form is used in short demands and exclamations. When using it, skip the subject pronoun: use loue instead of tu loue. Imperative (tu) loue (nous) louons (vous) louez