Question 1: Student
Write the class definition for a Student class that contains four private data members:
An int studNum to store the student number.
A string studFirstName to store the student’s first name.
A string studSurname to store the student’s surname.
A one dimensional array subjectCode of type string that hold the five subjects that the student is registered for.
A parallel array to the subject code array called finalMark that holds the final mark that the student obtained for the subject stored in the subject code array.
A double overallAverage that will hold the overall average that the student has obtained for all the subjects that he/she is registered for.
Exactly 1.387 g of compound Z was combusted to form 3.499 g CO₂ mo sand 0.614 g H₂O. Compound Z contains only carbon, hydrogen, and oxygen. Determine the compound's molecular formula if the molar mass of compound Z is 122.118 g/mole.
1. Write a program using string function that will accept the name of the capital as input value and it will display the corresponding country.
CAPITAL COUNTRY
Ottawa Canada
Washington D.C. United States
Moscow Russia
Rome Italy
Create a program that allows the user to enter 10 integers in an array. Your task is to determine
if the user entered a negative number. If yes, display the negative numbers.
Create a program that allows the user to enter 10 integers in an array. Then ask the user to input an integer. Your task is to determine if the integer is found in the list/array.
Calculate the grams of NaOH present in 600 mL of a 3.0 M NaOH solution
Potential GDP is determined by the size of the labor force, the stock of capital and the state of technology used in the production process. Assume that the country faces a pandemic and there is a considerable decline in the size of the labor force, the stock of capital and the state of technology used in the production process. Use an AD/AS diagram to illustrate potential GDP both before the pandemic and months after the start of the pandemic where the foregoing decline was observed and documented.
2. Write a simple decryption program using string functions which will apply the Substitution Method. Here is the given Substitution Table.
Substitution Table:
* A
$ E
/ I
+ O
= U
A car runs at a constant speed of 15m/s for 300 second and then accelerate uniformly to a speed of 25m/s over a period of 20 second.this speed is maintained for 300 seconds before the car is brought to rest with uniform deceleration in 30 second
Draw the graph
Consider the following unbalanced chemical equation:
H
2
O(l)→H
2
(g)
electricalcurrent
+O
2
(g)
H2O(l)→H2(g)electricalcurrent+O2(g)
A chemistry student tries to balance the equation by placing the subscript 2 after the oxygen atom in H
2
O
H2O.