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

Problem 1(Star patterns): Write a program using loops to display the following patterns :

 

(i)

********** 

 

(ii)

********************

 

(iii)

*

**

***

****

*****

******

*******

********

*********

**********

 

(iv)

*

**

***

****

*****

******

*******

********

*********

**********

***********

************

*************

Problem 2 (Save and Get Info) : Write a program that asks for the user's name, phone number, and address. The program then saves all information in a data file (each information in one line) named list.txt. Finally, the program reads the information from the file and displays it on the screen  in the following format:



Name:         User's Name  

Phone Number: User's Phone Number  

Address:       User's Street Address 

               User's City, State, and Zip Code 


Mr. Nuthan M S is given the task to maintain the details of the class teacher of his section, the details includes, Name of the faculty(String), employee ID(integer), Experience(int), Course handled(String). Help Mr. Nuthan to maintain the record by generating a C application


flowchart that displays number 1 to 20 using loops


The class employee comprises of employee details such as emp_id(integer type), employee name(character array type) ,basic salary(float type), allowance(float type) and PF(float type). Get three employee details using getemployee() method and use display() method to calculate and display the net salary(basic salary+allowance+PF) of employees.


Write a C++ program that declares an array alpha of 50 components of type double. Initialize the array so that the first 25 components are equal to the square of the index variable (the position that element will occupy), and the last 25 components are equal to three times the index variable. Output the array so that 10 elements per line are printed.

For the number at index 5, the value would be 25, which is 5 squared. The 25th index would hold a value of 75, which is 3 * 25.

An example of the program output is shown below:

 0    1    4    9   16   25   36   49   64   81 
 100  121  144  169  196  225  256  289  324  361 
 400  441  484  529  576   75   78   81   84   87 
 90   93   96   99  102  105  108  111  114  117 
 120  123  126  129  132  135  138  141

Develop a code for the multilevel inheritance diagram given below


· The person class consisting of data members such as name and age.


· The salary details class consisting of data members such as salary.


· The employee class consisting of data members such as degree and experience.


· The manager class consisting of member function pfund() to find the employee provident fund satisfying the condition total experience to be greater than 10 and salary to be greater than Rs. 20,000 and then calculate net salary = basic pay + pf. The provident fund amount sanctioned is Rs. 1800 for basic pay Rs 20,000 otherwise provident fund amount sanctioned is Rs. 750.



Write CSS code to make all second-level headings (h2 elements) green and italic. 


Given date-time D, write a program to print the time left for the next New Year.


Design a class TBills to include customer_id, customer_name, phone number, calls and usagecost and also include the following member functions

-getCustomerData()- To input customer data(customer_id, customer_name, phone number,calls)

-usage_cost() - to calculate the monthly telephone bills and calculate the usage cost of telephone bill as per the following rule:

• Minimum Rs. 200 for upto 100 calls.

• Plus Rs. 0.60 per call for next 50 calls.

• Plus Rs. 0.50 per call for next 50 calls.

• Plus Rs. 0.40 per call for any call beyond 200 calls.

 

-monthlyTelephoneBills() - to display monthly telephone bills of customer


Implement c++ design given below. Assume that value is stored as a doubleword in memory, number is in EAX, and count is in ECX. You need only show the assembly code for the design. Submitting entire programs is not necessary

 

         if (value < 1000)

                    value = value+10*count;

         else {

                    value = 800;

                    count--;

}


LATEST TUTORIALS
APPROVED BY CLIENTS