Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

Declare the structure Employee, consisting of members variables are


emp_number, emp_name, department, salary and net_salary. Calculate


DA=20% of salary and display the information of an employee.

Create a program using a Two-Dimensional Array that will display values

Question #301749



Write a program to print W pattern of N lines using a asterisk(*) character






NOTE : There is a space after each asterisk (*) character.








Input:






The first line is an integer N








Explanation:






For N=5






The output should be




* * * * * * * * *



* * * * * * * *



* * * * * *



* * * *



* *

Create a program that displays the fare based on the entered destination. The starting station is Araneta-Cubao Use the code destination to shorten the user's input



This program will read integers from a file and find results from these integers.

Open the file, test to make sure the file opened. Use a loop to read the integers and process each integer as it is read. When End Of File is reached, close the file.

After all of the integers have been read and processed, print the results for the following output:

  • The integer count:
  • The sum of the integers:
  • The smallest integer:
  • The largest integer:
  • The average of the integers:

Use notepad, vim, or other simple text editor to create a file named file1.txt containing the following, with one integer per line.

Test the program two times.

Use the following data in the first test:

11
9
18
22
27
33
21
  

For the second test add an additional line containing the number 40.


Create an array of type comnunitymember

Then create objects of type (employee, student, faculty) by sending the values ​​to the creator of each class

Store these classes in an array and then print these objects with their type specified using the instanceOf . test


In every program data must be validated before the program can proceed with further processing and storage of the input data. As a Windows developer for a data analysis company, you are tasked to develop an application using Windows form / Windows Presentation Foundation (WPF) named mileage efficiency. 

You should include the following in your program 1. Exception handling should be used to prevent users from entering invalid input (text, character...) (try, catch and final)- 20 Marks 2. All exception messages should be display using a message box and save in a text file called Exceptionfile.txt- 20 Marks 3. All result (miles divided by gallon) should be save in a file called MilesperGallon.txt. The result should be saved once the calculate button is pressed – 20 Marks 4. Meaning your program will have two separate text files one to record all exception thrown – message and the other to record all calculation and the date and time the operation occurred- 10 


what is algorithm

Write a Program: Compute an average of integer values 

Ask the user to enter a number of values to average in the range from 2 to 10. Use a loop to make sure the entered number is within the range. Output an error message any time an invalid number is entered. Once a valid number of values is entered ask the user to input each value. Enumerate the values being asked for (see the output example). Your goal is to calculate their average and output it to the console. 


Your output should look similar to the following: 

First run 

Enter a number of values from 2 to 10: 1 

Invalid input! 

Enter a number of values from 2 to 10: 11 

Invalid input! 

Enter a number of values from 2 to 10: 6 

Enter value 1: 5 

Enter value 2: 8 

Enter value 3: 45 

Enter value 4: 11 

Enter value 5: 6 

Enter value 6: 1 

The average is 12.667 

Second run 

Enter a number of values from 2 to 10: 4 

Enter value 1: 41 

Enter value 2: 55 

Enter value 3: 12 

Enter value 4: 9 

The average is 29.250 


Write a program to calculate the sum of cubes of differences of consecutive prime numbers entered from the keyboard. For e.g. for numbers 1,7,4,5,2,6,8,11 and 3, the program should calculate (7-5)3+(5-2)3+(2-11)3+(11-3)3

LATEST TUTORIALS
APPROVED BY CLIENTS