Question No.1 Implement this program by using User-defined functions and Structures.
Write a program that reads students’ names followed by their test scores. The program should output each student’s name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score. Student data should be stored in a struct variable of type studentType, which has four components: studentFName and studentLName of type string, testScore of type int (testScore is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type studentType. Your program must contain at least the following functions:
1. A function to read the students’ data into the array.
2. A function to assign the relevant grade to each student.
3. A function to find the highest test score.
4. A function to print the names of the students having the highest test score.
even or odd . write a program to check if the given number is even or odd
Mr. Narayan understands that among the 10 items, the items that are referred by odd index are not available in market. Help Mr. Narayan to convert the price of all odd index item to zero (0).
Design, write and compile a C++ program to display the following output using setw(), setprecision(), setiosflags():
Radians
Degrees
1
57.2958
10
572.9580
20
1145.9200
30
1718.87000
40
2291.83000
(b) What is the minimum number of cout statements that could be used to print the above output?
(c) Explain your choice of coding style with your chosen number of cout statements.
Convert the mathematical expression to visual basic formula
W= Pr²÷√q²+s²
You task is to write a program that will continuously add friend data to a list named friends until the user enters "No". The program must display the contents of friend list.
friend's data to be collected:
Last name
First name
Birthdate
Gender
Contact No.
Validation:
Name must not be empty.
Must check the validity of the birth date.
Gender either F or M only.
Contact No. must be exactly 11 digits.
Display "Invalid Input" and ask the user to input another value.
Input
Friend's data
Tortor
Rhea
12/25/1990
F
09172345678
Yes
Nayang
Iya
11/11/1995
F
09172415679
No
Output
Name: Rhea Tortor
Birthdate: December 25, 1990
Gender: Female
Contact No.: 09172345678
Name: Iya Nayang
Birthdate: November 11, 1995
Gender: Female
Contact No.: 09172415679CAT-6 twisted pair cable is a commonly used computer networks cable that provides a frequency bandwidth of up to 250 MHz. It is suitable for most varieties of Ethernet over twisted pair up to 1000 BASE-T (Gigabit Ethernet). Determine whether a signal-to-noise ratio (SNR) of 20 dB is adequate to transmit 0.9 Gbps on this cable?
given integer n as input.write a program to print the sum of series of 1+11+111+...n terms
by CodeChum Admin
Now that we're done with integers, we're moving on to decimals!
Instructions:
Input
A line containing three decimal numbers with two decimal places separated by a space.
1.53·2.25·1.23Output
A line containing the result with two decimal places.
2.80make a c ++ program ethat calculate the sum ,mean of series numbers