Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Number 2 present at index locatios 0,6,9, as the last occurrence, is at index 9. So the output should be 9.




Input: 2 4 5 6 7 8 2 4 5 2 3 8



9

Write an if-else statement for the following:

If userTickets is not equal to 6, execute awardPoints = 10. Else, execute awardPoints = userTickets.

Ex: If userTickets is 14, then awardPoints = 10.


create a c++ program with a function named “area” that calculates the area of a rectangle and function named “perimeter”that calculates perimeter of rectangle. Let the user input the data needed for the program.


create a c++ program with a function named average that calculates the average of the students 5 SCORES using array. Let the student enter the scores in the main function and the function average will calculate the average.


Write a program to calculate students’ average test scores and their grades. You may assume the following input data:


Nondo 85 83 77 91 76


Djiara 80 90 95 93 48


Anna 78 81 11 90 73


Salum 92 83 30 69 87


Moloko 23 45 96 38 59


Job 60 85 45 39 67


Feisal 77 31 52 74 83


Kibwana 93 94 89 77 97


Shomari 79 85 28 93 82


Mayele 85 72 49 75 63


Use three arrays: a one-dimensional array to store the students’ names, a (parallel) two-dimensional array to store the test scores, and a parallel one-dimensional array to store grades. Your program must contain at least the following features: read and store data into two arrays, calculate the average test score and grade, and output the results. Have your program also output the class average.

The program will accept some values from the user and will print out the following

1]                 Details of the user

•      Worker ID – Alphanumeric (2 letters and three digits e.g. EF101)     Full Name of the worker.

2]                 Gross Pay (GP)

•      GP = Rate * Hours Worked o Rate is a constant of 11.25 ($11.25 per hour) o Hours Worked to be entered by the user.

3]                 Deduction

•      Union fee o Constant of 50 ($50 per member) o Retirement is 10% of GP

4]                 Take Home Pay (THP)

•      THP = GP – Deduction 


Write a program to read a list of number from the user and remove the two largest and two smallest values from it. Display the list with removed values , followed by the original list. Your program should generate an appropriate message if the user enters less than 5 values.




Given an integer N as input.

Write a program a number diamond of 2*N -1 rows.

No of rows in diamond 5.


The output will be :::

1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

1 2 3 4

1 2 3

1 2

1









Write a program to find the minimum no of notes required for the amount M.

Available note denominations are 500:50:10:1

The output should be 500: 3 50: 0 10: 4 1:3

The first integer is a single integer M.


write a function with the name calculate_league_points then takes the number of wins, draws, and losses and calculates the number of points a football team has obtained so far - Each win is equal to 4 points - Each win is equal to 2 points - Each win is equal to -1 points


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS