Class 12 Sumita Arora Solutions
Posted on
TYPE B: Short Answer Questions
Que.9.Write declaration for a class that holds properties of a branch. The class holds information like branch-number, area, number of employees, head and the operations associated like branch report printing, branch data modification, pending works reporting, forecasting reporting.
class Branch
{
int branch_no;
char area[20];
int no_of_emp;
char head[20];
print( );
modify( );
pending( );
forecast( );
}
Que.10. Write declaration for a structure that holds same information as that of the class mentioned in question 9.
struct Branch
{
int branch_no;
char area[20];
int no_of_emp;
char head[20];
void print( );
void modify( );
void pending( );
void forecast( );
}
Que.11. Write declaration for a structure that holds information of a student like roll no, name, class, marks and grade.
struct Student
{
int roll_no;
char name[15];
int class;
float marks;
char grade;
}
Que.12.Write declaration for a class that holds the information of Q.11. For associated operations, make suitable assumptions.
class Student
{
int roll_no;
char name[15];
int class;
float marks;
char grade;
void enter_details( );
void display_details( );
}
Updating more...
Solved Exercise from Sumita Arora STRUCTURED QUERY LANGUAGE TYPE A: VERY SHORT ANSWER QUESTIONS 1. Class FROM student; 10. What are views? When can a view be updated? Create a view with one of the columns Salary * 12. Try updating columns of this view. CREATE VIEW emp_view (v_empno,v_empname,v_avgsal) AS SELECT empno, empname.
Computer Science With C++ Concepts File Handling Data Structures - Vol. I and II 4.14 avg rating — 440 ratings | Rate this book |
Computer Science with C++ for Class XI 4.06 avg rating — 375 ratings — published 2009 | Rate this book |
Computer Applications: A Textbook for Class IX 3.75 avg rating — 308 ratings | Rate this book |
informatics practises a text book for class 11 4.05 avg rating — 221 ratings | Rate this book |
Foundation of Information Technology Class X 3.98 avg rating — 124 ratings | Rate this book |
Computer Science With Python (textbook XII) 3.71 avg rating — 91 ratings | Rate this book |
Foundation of Information Technology Class 9 3.69 avg rating — 91 ratings | Rate this book |
Microsoft Office foundation of Information Technology 4.21 avg rating — 71 ratings | Rate this book |
Information Practices: A Text Book for Class XII 4.15 avg rating — 53 ratings | Rate this book |
Computer Applications: A Textbook for Class X 4.11 avg rating — 37 ratings | Rate this book |
Is this you? Let us know. If not, help out and invite Sumita to Goodreads.