Questions: 11 448

Answers by our Experts: 10 707

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

Given a string, an integer position, and an integer length, all on separate lines, replace choiceLen number of characters with "(removed)" starting at that position in the string. Then, output the result.

Ex: If the input is:

Fuzzy bear

3

4

the output is:

Fuz(removed)ear


Create a program that will ask a user to enter a number. Depending on the value that the user has entered the program will do the following:


*If the user has entered the number 0, the program will display the first 50 multiples of 4.


*If the user has entered a negative number, the program will display all odd numbers between 20 and 80.


*If the user has entered a number between 1 and 10 (inclusive of the 2), the program will dsiplay all even numbers from 1 to 500.


*If the user has entered any other number, the program will display the world "Hello" n number of times where n's value will depend on the number the user has entered.

Make a program that will input type of accommodation room. A-for first class, B-for second


class. Charge as follows : first class=800.00 and second class = 650.00. Your program will be


terminated if you input C in the accommodation room type.

The input file called StaffDetails.txt contains a list of records of employees working for USP. The file is generated automatically by the biometric sign-in used by all USP staff and passed to payroll department for calculation of monthly wages. Each record is on a single line and the fields are separated by spaces. The names of the fields are: • Employee ID • Employee Last name • Employee First name • Hourly rate • Hours worked in that month An example record may have the following form but the file can have a maximum of 300 records: H111007 Bond James 40.0 150

A. You must read this file and store the records of employees into appropriate arrays. B. Program should provide user with the following menu. 1) Print all employees’ data. 2) Print all data about of employees which match a given last name that is entered by a user 3) Calculate the net wages for all employees and store it in an array. 4) Display payroll results. 5) Write results to file 6) Exit program.


  1. Review the Pythagorean theorem

a2 + b2 = c2


| \

| \

| \

| \

| \ c

a | \

| \

|__ \

|__|______ \

b


2.Create a function that will compute for c given that there are inputs for a and b

3.Create a function that will compute for a given that there are inputs for c and b

4.Create a function that will compute for b given that there are inputs for c and a

SCREEN LAYOUT / DESIGN

(Home Screen when programs runs. User can choose a, b, or c.)

Pythagorean Theorem


Compute for


[a] altitude

[b] base

[c] hypotenuse


Input [a| b |c]:_

(When c is clicked this screen/ layout below will be shown. If Y is inputted in the Try Another control, go back to screen 1 else program will exit.)

Pythagorean Theorem

Function 1 (find c)


Input a: 4

Input b: 3

Computed value of c: 5


Try Another [Y/N]:

(When a is clicked, do function 2, If b is clicked do function 3)

Pythagorean Theorem

Function 2 (find a)


Input c: 5

Input b: 3

Computed value of a: 4


Try Another [Y/N]:


Pythagorean Theorem

Function 3 (find b)


Input c: 5

Input a: 4

Computed value of b: 3


Try Another [Y/N]:




How do you implement abstraction and encapsulated in c++


Write a C# application that asks the user to input ‘A’ and ‘B’ and prints the sum of squares of all odd numbers between ‘A’ and ‘B’. 


Write aprogramm using Array 1,2,3,4,5 and insert middle 5,6 and delete 3

Write a program that prompt the

user to enter a number and determines whether the entered number is a perfect number. Your

program should determine and print all the perfect numbers between 1 and 1000. Print the

divisors of each perfect number to confirm that the number is indeed perfect.


Write a C++ program to obtain the given output:


Enter any number or enter 0 to exit: 8


Enter your choice, star[s] and hash[h]: h


########


Enter any number or enter 0 to exit: 4


Enter your choice, star[s] and hash[h]: s


****


Enter any number or enter 0 to exit: 0


Are you sure you want to exit? (Y/N): Y


Thank you for using this program. Have a good luck!


Press any key to continue . . .

LATEST TUTORIALS
APPROVED BY CLIENTS