Coding questions need answers , Karachi

Deal Score0
Deal Score0

Job Posted: 28.09.2021 16:11:08

PART 1 Use the relation operators by writing the following expression. Declare any variables you may need. 1.Is Jan’s age 25 years old or older 2.Is his account less 25 dollars 3.Are they the same age 4.Are there more than 4 assignments (always!) 5.did finish 3 or fewer assignments 6.Are they different ages? PART 2 For each of the following create an expression using appropriate Logical Operators (AND, OR or NOT) 1.The store is not open (1 point) 2,Two criteria to drive are (1 point) 1. 16 years or older 2. Completed driver’s education 3. You can have only one meal (1 point) 1.Pizza 2.Spaghetti 4. You need one of the following as proof of identity to get a driver’s license (2 points) 1.Passport 2.Two of the following 1.Birth Certificate 2.ID Card 3.Bill Statement with your name and address Here is an example: To vote you must meet both conditions: 1. Be 18 or older 2. Be registered Answer: age greater than (use symbol) = 18 AND registered PART 3 Write a case statement set a variable dayOfWeek to the corresponding day. Assume the dayNumber is 1 through 7 corresponding to Sunday throughSaturday. Set thevariable dayOfWeek accordingly in the case statement. Don’t forget a default value. You choose what your default value should say. Declaration: num dayNumber string dayOfWeek PART4 IF-THEN-ELSE Diana Lee, a supervisor in a manufacturing company, wants to know which employees have increased their production this year over last year so that she can issue them certificates of commendation and bonuses. Design a flowchart or pseudocode for the following: a. A program that continuously accepts each worker’s first and last names, this year’s number of units produced, and last year’s number of units produced. Display each employee’s data with a message indicating whether the employee’s production has increased over last year’s production. b. A program that accepts each worker’s data and displays the employee name and a bonus amount. The bonuses will be distributed as follows: If this year’s production is greater than last year’s production and this year’s production is: 1000 units or fewer, the bonus is $25 1001 to 3000 units, the bonus is $50 3001 to 6000 units, the bonus is $100 6001 units and up, the bonus is $200 c. Modify Exercise 9b to reflect the following new facts, and have the program execute as efficiently as possible: Thirty percent of employees have greater production this year than last year. Sixty percent of employees produce over 6000 units per year; 20 percent produce 3001 to 6000 units; 15 percent produce 1001 to 3000 units; and only 5 percent produce fewer than 1001 unit PART 5 In many programming languages you can generate a random number between 1 and a limiting value named LIMIT by using a statement similar to randomNumber = random(LIMIT). Create the logic for a guessing game in which the application generates a random number and the player tries to guess it. Display a message indicating whether the player’s guess was correct, too high, or too low. (After you finish Chapter 4, you will be able to modify the application so that the user can continue to guess until the correct answer is entered.)

Project Length:

Less than 1 month

Hours Needed:

null

Fixed Price:

60

To start you need register at Upwork, apply now. Its free!

This and other jobs await your proposal.

We will be happy to hear your thoughts

Leave a reply