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

Write a program to multiply any two 3 x 3 matrices
Give an example of a while loop, then provide the equivalent do-while loop and for loop. Then

give a diàerent example of a do-while loop, along with the equivalent while loop and for loop.

Finally, give an example of a for loop, along with the equivalent while loop and do-while loop. Use

your examples to illustrate the advantages and disadvantages of each looping structure, and

describe those advantages and disadvantage
Use the function written in the last lesson to calculate a student’s GPA. Ask them how many classes they are taking, then ask them to enter the grades for each class and if it is weighted.


Your program should then output the averaged GPA including the decimal place.


Your main program must call the function.
Write a program to obtain transpose of a 4 x 4 matrix. The transpose of a matrix is

obtained by exchanging the elements of each row with the elements of the corresponding

column.
Use matrix subtraction to calculate how much longer was the life expectancy of black

and white women than men of the same races in each decade from year 1950 to year

2000. There is no need to store the year data in your matrices—just provide the years in

the output.

a) Input each matrix from user

b) Calculate the matrix difference by calling a function you write called matrix_diff that

will subtract any two 6-by-2 matrices, producing a third 6-by-2 matrix.

c) Display all three matrices with appropriate labels. Your function should calculate the

matrix difference by subtracting each element of the second matrix from the

corresponding element of the first.

United States Life Expectancy at Birth by Sex and Race
Q1. Create a struct called Invoice that a hardware store might use to represent an invoice

for an item sold at the store. An Invoice should include four data members—a part

number (type string), a part description (type string), a quantity of the item being

purchased (type int) and a price per item (type float). Your program should initialize the

four data members. In addition, it should calculate the invoice amount (i.e., multiplies the

quantity by the price per item), If the quantity is not positive, it should be set to 0. If the

price per item is not positive, it should be set to 0. Write a test program that demonstrates

struct Invoice’s capabilities.

Note: Perform this work using

1. 2d array

2. pointer to 2d arrays

3. design function for calculating the results by passing array to function by value and by

reference.
You've been hired by Clock Towers Unlimited to write software to list each hour of a 24-hour day. Write a Visual C++ program to list the hours of the day using a for statement, Start at midnight (hour 0) and end at 11pm (hour 23). For each hour, also list which part of the day it is. Use an if statement, the hour of the day, and the following table to determine which part of the day it is.
A parking garage charges a R12.00 minimum fee to park for up to three hours. The garage charges an additional R0.90 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is R20.00. Assume that no car parks for longer than 24 hours at a time. Write a program that will calculate and print the parking charges for each of 3 customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format and should calculate and print the total of yesterday's receipts. The program should use the function calculateCharges to determine the charge for each customer. Your outputs should appear in the following format
The internet and the world wide web are entities that are. ...

1.fluent

2.static

3.stable

4fluid
create a class called platypus. Below, we will describe what will define a platypus. You will also create a main function in which you will create objects of type platypus to test the functionality of your new user-defined type. Incidentally, this kind of main is called a driver, since it is used soley to test something (new). In that driver, you will create enough objects of your new type(s) in order to adequately test their functions. We leave it up to you to do this properly.
LATEST TUTORIALS
APPROVED BY CLIENTS