Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a C++ function that determines in which quadrant a line


drawn from the origin resides. The determination of the quadrant


is made using the angle that the line makes with the positive x


axis as follows:


Note: if the angle is exactly 0,90,180,270 degrees the


corresponding line does not reside in any quadrant but lies on an


axis.


Angle from the


positive x axis Quadrant


Between 0 and 90 degrees =1


Between 90 and 180 degrees =2


Between 180 and 270 degrees =3


Between 270 and 360 degrees = 4

Write a C++ program to read and print details of N students. (Note Modify Question number 2)

a. Hints

i. Create a class to hold all student attributes, a method which interact with a user and read student details, method to print/write student details.

ii. Create a main function which will prompt a user to inter N student (Number of students to read and write their details), call function from a class above to read and write student detail.

iii. The user interactive screen and output should appear Sample output

Enter total number of students: 2

Enter details of student 1:

Enter RegNo:101

Enter Name: John Joseph

Enter Course: DIT

Enter Subject: C++ Programming

Enter Score:85.5 Enter details of student 2:

Enter Registration number:102

Enter Name: Josephine Baraka

Enter Course: DIT

Enter Subject: C++ Programming

Enter Score:45


write a program that prompts the user for the size of an array. The program should then ask the user to enter the numbers into the array. The program should then sort the numbers is ascending order and displays the new sorted numbers



5 Display the following pattern using only 2 lines of code. Use only 1 for loop. This problem will require

the use of the multiplication operator (*) and the variable that keeps track of the number of loop

iterations.


Sample output: *

***

*****

*******

*********

***********

*************




Basic Looping Task:

Display sets of "*" based on the user's integer input (0-9).


Example:

Enter a number: 6

******


Write an if-else statement that compares the age variable with the value 65. If age is greater than or equal to 65, add 1 to senior_citizens. Otherwise, add 1 to non_seniors.


Create a function that will accept a person's name and age, address, birthdate, email, if he/she has a job, what is the job title, and put all those data in a dictionary.


Display the pattren


##


# #


# #


# #


# #


# #



Write a program that reads some integers between 1 to 100 and counts the occurance of each.




: Create a python function that will accept 7 numbers with decimal values and wont accept value if it isn't a float value. After accepting the values, determine the number with the highest values among the given, and then return that value for printing.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS