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

In a given sample string, How do you print a double quoted string in between a regular

string using the escape character?

Sample output = It goes without saying, “Time is Money”, and none can deny it.

a. print(“It goes without saying, \“Time is Money\”, and none can deny it.”)

b. print(“It goes without saying, \Time is Money\, and none can deny it.”)

c. print(“It goes without saying” + “Time is Money” + “and none can deny it.”) d. None of the above.


A store manager hypothesizes that the average number of pages a person copies on the store’s copy machine is at least 9. A sample of customers’ orders selected randomly reveals the following: 

11

10

10

9

15

20

12

15

12

3

13

20

2

3

16

3

4

19

13

21

3

3

5

11

8

16

10

17

5

2

5

19



create a running database  C++ program.

Can add, search, or delete a record.


Write a function called sum, that calculates the total value of a and b, where a and b are integers, a= 100 and b = 200 in the main function. Your main function will declare your variables, call the function to add values and then call the function again. When you compile your program it has to give you total result of sum (a, b) from the main function, and the result for sum (a,b) from the function sum. There is a default value of b which is part of the function list, with the value 20. Your function sum, will calculate the result of a and b, and then return the result.

Write a program to find the winner of each round of game based on the shape of players chose


Create a program that will make the user input the Month, Date and Year as Integers then use switch statemet and concatenation to display it in this format:










Sample output










Month : 6










Day : 13










Year : 2022










June 13, 2022










Note: If the user inputs an invalid Month then you should tell the user that it is invalid by using the default keyword.










Syntax of default keyword is default:

Input names into a list. The user will be asked if he wants to add another name or not in the list

Output:

Enter your name: Jose, Dela Cruz

Jose

Dela Cruz


Add Another name: Yes

Enter your name: Juan, Cruz

Juan

Cruz


Add Another Name: No

Stop the program


a=9

b=100

write a program to find a number of perfect squares a to b


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


LATEST TUTORIALS
APPROVED BY CLIENTS