• Q : Write a program that translates a letter grade into a number....
    Programming Languages :

    Write a program that translates a letter grade into a number grade. Letter grades are A,B,C,D and F, possibly followed by a + or -. Their numeric values are 4,3,2,1, and 0. There is no F+ or F-. A+ in

  • Q : Using prolog as the programming language for logic....
    Programming Languages :

    These three options are represented in Prolog by three clauses (rules or facts) of the predicate fun. Prolog will start from the first clause of fun and try that. If that does not succeed, it will try

  • Q : If a class has more than one constructor which of them gets....
    Programming Languages :

    If a class has more than one constructor, which of them gets called?

  • Q : Write the definition of a function named quadratic....
    Programming Languages :

    Write the definition of a function named quadratic that receives three double parameters a , b , c . If the value of a is 0 then the function prints the message "no solution for a=0" and returns

  • Q : The loan amount and loan period in number of years....
    Programming Languages :

    Write a Java program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each annual interest rate starting from 3.5% to 8%

  • Q : Write a class named parking meter containing....
    Programming Languages :

    A constructor accepting a single integer parameter whose value is used to initialize the maxTime instance variable. 

  • Q : Write a servlet that returns a randomly chosen greeting....
    Programming Languages :

    Write a Java servlet that uses doGet to return a markup document that provides your name, e-mail address, and mailing address along with a brief autobiograaphy. Test your server with a simple markup d

  • Q : Write a program that asks for the users age....
    Programming Languages :

    Write a program that asks for the user's age. Based on their response print "You can vote" (18 years old or older) or "You can't vote" and also whether or not he/she is a senior citizen (over 64). If

  • Q : Web-based applications such as e-commerce and e-government....
    Programming Languages :

    Web-based applications such as e-commerce and e-government exemplify the platform shift from client/server computing to Web-based computing so for this essay question, discuss in scholarly detail the

  • Q : The code of fair information....
    Programming Languages :

    The Code of Fair Information Practices applies only to government databases. Discuss the advantages and disadvantages of extending the Code of Fair Information Practices to private databases managed b

  • Q : Declare an arraylist named taxrates....
    Programming Languages :

    Declare an ArrayList named taxRates of   five  elements of type Double and initialize the elements (starting with the first) to the values 0.10 , 0.15 , 0.21 , 0.28 , 0.31 , respectively.

  • Q : Return the number of ways that all n2....
    Programming Languages :

    Return the number of ways that all n2 elements of a2 appear in the n1 element array a1 in the same order (though not necessarily consecutively). The empty sequence appears in a

  • Q : Write a program that creates a profesor rating....
    Programming Languages :

    Write a program that creates a Profesor Rating class consisting of professor ID and three ratings. The three ratings are used to evaluate easiness, helpfulness, and clarity.

  • Q : The input describes several test cases....
    Programming Languages :

    The input describes several test cases. The first line of input for each test case contains a single integer w, the number of workyards in the test case (1 <= w <= 50)

  • Q : Create a program that decodes messages....
    Programming Languages :

    Create a program that decodes messages. The messages will be encoded using a Caesar cypher, with each letter being decoded by replacing it with the previous letter in the alphabet. (Supposedly, this w

  • Q : Assign to the boolean variable....
    Programming Languages :

    Assign to the boolean variable 'possibleCandidate' the value false if the int variable 'n' is even and greater than 2, or if the variable 'n' is less than or equal to 0; otherwise, assign true to 'pos

  • Q : Write a program that ask the student to enter....
    Programming Languages :

    Write a program that ask the student to enter an answer to a math problem. The user should enter two values, one at a time, and then ask for an answer. The program should display if the entered answer

  • Q : Write the output of the following program....
    Programming Languages :

    Write the output of the following program.

  • Q : Write a program that inputs a number between....
    Programming Languages :

    All's Well That Ends Well.Write a program that inputs a number between 1 and 10 and displays the number with the appropriate two-letter ending (e.g., 1st, 2nd, 3rd, 4th, 5th, . . . ). 

  • Q : The program will accept records for the next student and....
    Programming Languages :

    For the class number entered and the grade, and a calculated student average score.After the report is completed, the program will accept records for the next student and repeat the process.

  • Q : Modify your program so that it assumes the arguments....
    Programming Languages :

    Write a program Average.java that just prints the strings that it is given at the command line, one per line. If nothing is given at the command line, print "No arguments". 

  • Q : Write a program segment that inputs age displays....
    Programming Languages :

    Write a program segment that inputs Age, displays "Yes, you can vote" if Age is 18 or older and displays "You are too young to vote" if Age is less than 18. 

  • Q : Use eval to write a shell program....
    Programming Languages :

    Use eval to write a shell program called revargs which will print out its command line args in reverse order.

  • Q : Keep track of the running sum of the rolls....
    Programming Languages :

    Keep track of the running sum of the rolls for the die and output the sum and average for the three rolls at the end.4. You can set up one integer variable named roll, and reuse it with each roll of t

  • Q : Ruby program with the specification....
    Programming Languages :

    Output: The second smallest number in the list, along with its position in the list, with 1 being the position of the first number.

©TutorsGlobe All rights reserved 2022-2023.