5
4 5 4
3 4 5 4 3
2 3 4 5 4 3 2
1 2 3 4 5 4 3 2 1
2 3 4 5 4 3 2
3 4 5 4 3
4 5 4
5
Given a string in camel case,write a program to convert the given string from camel case to snake case...
example:
if the given word is "PythonLearning" in camel case.,your code should print given word in snake case "Python_Learning"...
bestSub = 0
highestSales = monthSales(0)
for month = 1 to 11
if monthSales(month) > highestSales
highestSales = monthSales(month)
bestSub = month
endif
next month
display "The best sales for the year was in ", monthName(bestSub)
display "The amount was R”, highestSales
display "The top salesperson for that month was ", nameBestSP(bestSub)
write a program to find the first prime number in the given inputs
create a class named programming.while creating an object of the class if nothing is passed to it then the message i love programming languages should be printed if some string is passed to it then in place of programming language the name of that string
first place
the ouput should be single line containing the ones place of positive integer
input 1:25
ouput:5
input 2:200
output:0
first and last digit
output:print the first digit in first line and second digit in second line
input 1:1456
output:1
6
input 2:9821
output:9
1
The spread operator is used to:
A. replace an array with individual values
B. assign single values of an array to an variable
C. divide a number by itself
D. accept multiple values sent to a function into a single array
Consider a class Computer having Two fields (i.e. companyName, price) and A single
function named show()
A class named Desktop inherits Computer class and adds fields representing color,
monitor size, and processor type and Override function named show() to display values
of its all attributes
A class named Laptop inherits Computer class and adds fields representing color, size,
weight, and processor type and Override function named show() to display values of its
all attributes
In Main() instantiate objects of derived classes to access respective show() functions to
see the polymorphic behavior.
Write a c++ code for the output using loop
1
2 3
4 5 1
2 3 4 5
1 2 3 4 5