In a Fortran program, if I have set x=2.0,a=2.0, b=4.0, what is the value of y. If y=a*x+b**2/x?
Question 1
A sequence is a database/schema object used to generate a unique auto-number. The auto-number generated through a sequence is independent of tables, which means that the same number can be used for multiple tables.
Consider the following table:
Assignment_No Course_Code Total_Marks
1 CS201 15
2 CS614 20
1 CS614 10
5 CS610 25
3 CS409 15
You are required to write a PL/SQL PROCEDURE named Add that insert a new record in the above table
Question 1
A sequence is a database/schema object used to generate a unique auto-number. The auto-number generated through a sequence is independent of tables, which means that the same number can be used for multiple tables.
Create a Sequence named Supplier_Seq which generate an auto-number for the Supplier_ID column of the following table.
Supplier_ID Supplier_Name Contact_No Country_Name
Note: The sequence should start with the number 202, each sequence number must be even, for faster access, the CACHE value should be 20 and there should be no cycle in the sequence.
Write a program that declared a class with one integer data member and two member functions for input data and output data. Decide appropriate access modifiers for these members. Use this class in your program.
Define a class TEST in C++ with following description:Private MembersTestCode of type integerDescription of type stringNoCandidate of type integerCenterReqd (number of centers required) of type integerA member function CALCNTR() to calculate and return the number of centers as(NoCandidates/100+1)Public Members - A function SCHEDULE() to allow user to enter values for TestCode, Description, NoCandidate & call function CALCNTR() to calculate the number of Centres- A function DISPTEST() to allow user to view the content of all the data members
"cin.ignore();" what type of cin statement is this and how it is used in a program?
Define a class batsman with the following specifications:Private members:bcode 4 digits code numberbname 20 charactersinnings, notout, runs integer typebatavg it is calculated according to the formula batavg =runs/(innings-notout)calcavg() Function to compute batavgPublic members:readdata() Function to accept value from bcode, name, innings, notout and invoke the function calcavg()displaydata() Function to display the data members on the screen.
Build an algorithm to parse and process the dynamic expression based on the dictionary
provided. The expression basically consists of Operators, Variables, and Parentheses.
Parentheses have higher precedence (i.e the subexpression in the parentheses should be
executed first)
Basically, the algorithm should support two operators - AND (concatenates the two variables) &
OR (provides first variable value if it is available. Otherwise, go for the second variable)
The algorithm should parse the given expression and apply the respective dictionary values on
the expression and provides the respective computed results.
INPUTS OUTPUT
Sno Expression Dictionary Expected Results
1 A and B
2 A and C
3 D or B
4 A or B
5 A and B and C {'A':'Hello', 'B': 'World', 'C': 'Buddy'}
6 A and (B or C) {'A':'Hello', 'B': 'World', 'C': 'Buddy'}
7 A and (C or D) {'A':'Hello', 'B': 'World', 'C': 'Buddy'}
8 A and (B or C) and D {'A':'Hello', 'C': 'Buddy', ‘D’: ‘Welcome’}
Numbers To Words Problem
Program to convert a given number to Dollar format
Write code to convert a given number into dollar format. For example, if “1234567” is
given as input, the output should be “one million two hundred thirty-four thousand
five hundred sixty-seven dollars”. Code should be able to provide output up to 1
billion.