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

Suppose you work for an employer that sells vehicles and your employer instructs you to design a program using the C++ language to determine the car that corresponds to the price that your program calculated. The price of the car is determined by adding three(3) prices: which are engine price, color price, and the price based on the color of the car. The engine price ranges between R500 000 – R2000000-00. The colour of the car ranges between R7000 – R10000

The price based on the power of the car ranges between R300 000 – R600 000. If the sum of the three(3) prices is between R700 000 – R1000000, the program must display that the car is in the range of a VW Golf 8 GTI. If the sum of the three(3) prices is between R1100000-1800000, the program must display that the car is in the range of a Mercedes Benz GLC63s. If the sum of the three(3) prices is between R1900 000 – R2500000, the program must display that the car is in a range of a BMW M8 challenger. DESIGN YOUR A PSEUDOCODE


Q(3)It is known that only 60% of a defected computer can be   

   repaired. A sample of 15 computers is selected randomly,   

   find the probability that;

 (i) None can be repaired  ​        

 (ii) 5 or less can be repaired ​     

(iii) At least 3 computers can be repaired. 

 



Q(2)A random variable is defined as Construct the probability distribution function

of X and find the standard deviation of X.


Q1. A random variable is defined as “ the number of heads when
a coin tossed”,
(a)twice

(b)three times

(c)four times

(d)five times

Find the PDF of each of them and their respective mean and variance.

First Prime Number


This Program name is First Prime Number. Write a Python program to First Prime Number, it has two test cases


The below link contains First Prime Number question, explanation and test cases


https://docs.google.com/document/d/1VyIWTfBFSXtNuAtIzk9bDqD_q3cMl1sU/edit?usp=sharing&ouid=107231566038157986423&rtpof=true&sd=true


We need exact output when the code was run

Composite Numbers in the range


This Program name is Composite Numbers in the range. Write a Python program to Composite Numbers in the range, it has two test cases


The below link contains Composite Numbers in the range question, explanation and test cases


https://docs.google.com/document/d/17kmAlgcnB4bRnS354mEsgmWK-R38gTsx/edit?usp=sharing&ouid=107231566038157986423&rtpof=true&sd=true


We need exact output when the code was run

(Tic-Tac-Toe) Create a class Tic-Tac-Toe that will enable you to write a program to play Tic-Tac-Toe. The class contains a private 3-by-3 two-dimensional array. Use an enumeration to represent the value in each cell of the array. The enumeration’s constants should be named X, O and EMPTY (for a position that does not contain an X or an O). The constructor should initialize the board elements to EMPTY. Allow two human players. Wherever the first player moves, place an X in the specified square, and place an O wherever the second player moves. Each move must be to an empty square. After each move, determine whether the game has been won and whether it’s a draw. Also, allow the player to specify whether he or she wants to go first or second. 


please see the output and correct the code :--

Input:---

4 4

1 2 3 4

5 6 7 8

9 10 11 12

13 14 15 16

Output :--

1 2 3 4 5 6 7 8 9 10 11 12 16 15 14 13

Input 2:---

3 4

1 2 3 4

10 11 12 5

9 8 7 6

Output 2:--

1 2 3 4 5 12 11 10 9 8 7 6


def read_matrix():

  line = input()

  words =line.split()

  n = int(words[0])

  m = int(words[1])

  mat = []

  for i in range(n):

      row = []

      line = input()

      words = line.split()

      for j in range(m):

          row.append(int(words[j]))

      mat.append(row)

  return mat

def print_zig_zag(mat):

   for i in mat:

       for j in i:

           print(j,end=" ")


print_zig_zag(read_matrix())



Now, imagine your younger brother is working in a project with you. Both of you need to

solve negative number issue input by user. But you want to restrict information type

which can be send as error notification by your brother. So, write a program to handle the

scenario.


LATEST TUTORIALS
APPROVED BY CLIENTS