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

2. Display the longest word in the given sequence of words.

Write a program that fills an integer array of 10 numbers From the user in an array Then print out the smallest number


2. Create a program that identifies the first 10 prime numbers.

9. A four-digit number is given. Determine if there are 3 digits in this number.

Techics Comp has 5 salesmen. Each salesman keeps track of the number of computer sold each month. The manager assigns a number, 1 to 5, to each salesperson with their name. 

 

Write a complete C++ program to store the number of computers sold by each salesperson in the array comp[] and output the total number of computer sold for the given month. The program will calculate and display the highest and the lowest number of computer sold for the month together with the salesperson’s name. It also can search the amount of sold computers by the salesperson whether it was exist or not. If found, display the salesperson name. If not, display it is not exist.

 

Your program should allow the user to repeat this process as often as the user wishes.



Write a program that fills an integer array of 1000 random numbers


between 1-100


Next count the number 6 appears in the array and output this information to the console.


write nested loops to produce the following output


*******

  • * *
  • * *
  • ******* *
  • * *
  • * *
  • ******* *
  • * *
  • * *
  • **************************

Build a class Department having id (int), address (String) and projects (array list of projects) and workers (array list of workers) a. Provide parameterized constructor Department (String address) which initialized id randomly and array lists as empty array lists b. Provide getters for id and address and setter for address only c. Provide a method addWorker(int id, String name, double salRate) that creates an instance of Worker and adds it to the workers list d. Provide a method addProject(int id, String description, double budget) that creates a project and adds it to the project list e. Provide method addWorkerToProject(int projId, int wId) that searches for the project with projId from the projects list and worker with wId from the members lists and then adds the member to the project (you will call appropriate method of the project class that will add the member to the project. See blow the project class for details. f.



1. Build a class Department having id (int), address (String) and projects (array list of projects) and 

workers (array list of workers) 


c.

a method addWorker(int id, String name, double salRate) that creates an 

instance of Worker and adds it to the workers list 

d. Provide a method addProject(int id, String description, double budget) that creates a 

project and adds it to the project list 

e. Provide method addWorkerToProject(int projId, int wId) that searches for the project 

with projId from the projects list and worker with wId from the members lists and then 

adds the member to the project (you will call appropriate method of the project class 

that will add the member to the project. See blow the project class for details. 

f. Provide a method getProjectCost(int pid) which searches for the project with the given 

id from the projects list and then returns its total cost (you can call a method from the 

project class to get the total cost… see the project class for details) 



You've learned in the past lessons on how to use square root functions, right? Then let's take your knowledge to the test. Print out the square root of a given integer with only two decimal places.


LATEST TUTORIALS
APPROVED BY CLIENTS