Find the sum of durations of the videos published by each channel in hours.
write a
program which will accept one
integer argument and returns
count of digits of that argument
using (((class to basic conversion.))))
Write a program in c++ to accept data dd:mm: yyyy format store these values in my drive classes with member as day ,month, year . convert this data into one variable duration of the current year .this duration means number of days passed in the current year since jan1
What are different file stream classes? Expain the syntax of opening the file in read and write mode .can while (fin) be replaced with if (fin1.eof()!=0) to process the file? Justify
1. Create a class: “Prime” with private data members: upper_limit (int), lower_limit (int) and parameterized constructor, which initializes the values of both data members. Apart from initialization, this constructor also displays the count of prime numbers from upper_limit to lower_limit. [Example: upper_limit:15, lower_limit:10, count of prime numbers is:2 (11 and 13), also make sure the value of upper_limit should be greater than lower_limit].
1. Create a class Student with following data members- name, roll no and marks as private data member. Create array of objects for three students, compare their marks using operator overloading, and display the record of the student who is getting highest score.
1. Create a class Employee with the data members such as name, id and total salary. Create a file as “Employee_Data” as binary file and write the information of four employees to that file. Open that file in reading mode and only display the record of 2nd and 3rd employees.
I have two Tables Table1 and Table2 having fields CustID , Product, Price, VAddress in both tables. How to insert records of table2 into table1 if CustIDs are not Equal (Using VB)
Consider a file “data.txt” which contains several records. Each record contains ID(7chars), 1 space, First name (10 chars),1 space, Second name (8 chars), 1space, marks in physics( 3chars), 1space, marks in chemistry(3 chars), 1space, marks in mathematics(3 chars) and anewline character. Sample file content is as shown below:
71723 Ram Sen 70 72 75
91924 Raghubir Yadav 82 73 80
53425 Ram Chauhan 93 81 86
44917 Ratan Yadav 95 79 91
Write a shell program info.sh to achieve the following
i) If the programis run without any argument ($./info.sh), it has to display the first name, second name and average score of each student in the file.
1. What are different file stream classes? Explain the syntax of opening the file in read and write mode. Can while(fin) be replaced with if(fin1.eof()!=0) to process the file? Justify.