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

  1. Create a class named DogCare. Include fields for a dog’s data (using Dog class from question 1), the date (using Date class from question 4), the time (using Time class from question 3) and the duration of the appointment in minutes. Also include a field that contains the ending time of the appointment; this field will be calculated based on the start and the duration using Time class function that adds minutes to a Time object. The DogCare constructor requires dog name, a month, day, year, hour and minute for the appointment. Allow DogCare to be constructed with or without an additional argument for appointment duration, and force the duration to 30 minutes when no argument is supplied. The constructor does not allow any appointment over 240 minutes. The constructor calculates the appointment ending time based on the start time and the duration. Also include a display function for the DogCare class. Write a main() function that loops at least 5 times, prompting the user for DogCare data and displaying all the info
  1. Create a class named Time that contains integer fields for hours and minutes. Store the hour in military time that is, 0 to 23. Add a function that displays the fields, using a colon to separate hours and minutes. (Make sure the minutes displays as two digits. For example, 3 o’clock should display at 3:00, not 3:0). Add another function that takes an argument that represents minutes to add to the time. The function updates the time based on the number of minutes added. For example, 12:30 plus 15 is 12:45, 14:50 plus 20 is 15:10, and 23:59 plus 2 is 0:01. The Time constructor ensures that the hour field is not greater than 23 and that the minutes field is not greater than 59; default to these maximum values if the arguments to the constructor are out of range. Create a main() function that instantiates an array of at least four Time objects and demonstrates that they display correctly both before and after varying amounts of time have been added to them.

Create Supplier instance in SupplierTest class, invoke AcceptDetails method to accept the details of the supplier from the user and invoke DisplayDetails method to display the given details of the supplier.


Supplier:

Supplierid: int

SupplierName:

City: String

PhoneNum: String

Email: String

____________________

+Accept Details(Supplier): Void

+Display Details: Supplier



String Supplier Test

_________________

+Main(String[] args)


A five digit integer is given. Write a program in C++ to find sum of individual digits. If givennumber is 16785 then required sum is 1 + 6 + 7 + 8 + 5 = 27​

Define a single dimension array of strings to hold the name of City. Accept some values from the user and store them in the array. Use foreach loop to print all the data of the array. 


 Create a Class named BooksDemo accepts and displays the details of books using multidimensional array.

BooksDemo

-colName:string[4] = {"BookTitle", "Author", "Publisher", "Price"}

-bookDetails: string[2,4]

+Main(args: string[])


2. Write a program to define a two dimensional array of numbers to store 5 rows and 6 columns. Write a code to accept the data, assign it in array, and print the data entered by the user.


Create a Class named BooksDemo accepts and displays the details of books using multidimensional array.


BOOKDemo:-

colName: String[4] = {"Book title", "Author", "Publisher", "Price"}

bookDetails: String[2, 4]

____________________

+Main(args: string[])


Write a program to define a two dimensional array of numbers to store 5 rows and 6 columns. Write a code to accept the data, assign it in array, and print the data entered by the user.


Define a structure having one member variable as “Number”. Add functions to display the square and cube of the number in the same structure. In the main function, Initialize the structure variable, and display the square or the cube based on user’s choice.


LATEST TUTORIALS
APPROVED BY CLIENTS