Triple Slash by CodeChum Admin Samurais are so awesome! I'd like to imitate their amazing sword skills some time but I just don't have the courage to harm myself, so I'd just like to print out three forward slashes (\) to digitally imitate the samurai's triple slash skill. Haha! Sounds easy, right? Then code it now!
John Schmidt works as the data entry operator in New York. His daily activity includes assigning vehicle number for the new vehicles that enter the city. The vehicle number has the following format: First two letters represent the state Next one/two letter represent the series number (A to Z and AA to ZZ) Last 5 digits represent the Vehicle number When the vehicle number reached 99999, the next series will start from 00001. As there is a huge amount of vehicle movement now days, he wants to automate the process. Help john to auto generate vehicle numbers given the starting vehicle number.
Develop a java console banking system and
Implement the following java concept in your solution and highlight in your documentation or code where you did it:
1. Class and Object
2. File and Stream
3. Exception Handling
The Math(cmath) library allows you to calculate trigonometric function cos(x). You can execute this method by writing cos(x) for some expression x of type double. Using properties of a Maclaurin series or Taylor series, you can approximate the function cos(x) using the following formula: cos(� ≈ ∑ (−1)���(2�! ��0 =1− � 2!+ � 4!− � 6!+ � 8!− ..... ��2� Write your own approximation of cos(x) without using any library methods (such as pow( ) etc.). Your program should take x (in radians) and an as input. You should make two functions calcTerm( ) and sumTerms( ) to calculate the value of cos(x). calcTerm( ) function will compute nth term in the sequence. It should take x and term number as arguments and the return value of the term. sumTerms( ) takes a single argument term value and should be used to calculate the sum of all terms. Finally, your program will have a function testFunction( ), you will call it from main to verify whether your function is working correctly or not.
) Write a program that uses a class Employee to display Employee details. The class should
include the following members.
Data members :Empno, Empnname, basic pay, house allowance, medical allowance.
Member Function:to read employee details,to calculate gross salary and net salary.
Gross salary=basic+house all + med allowance
Net salary=gross salary – tax
9.
Find the number of videos published between the years 2010 & 2016.
yearno_of_videos......
Gardening
This link has Question images and the code.txt which has to be solved.
Please solve this
https://drive.google.com/drive/folders/1SZjTH9_DTzAymK7UufCg7j89_ZqcR5_X?usp=sharing
In order to discourage excess electric
consumption, an electrical company charges
its customers a lower rate of P75 for the
first 250 kilowatt-hours and a higher rate
of P8.5 for each additional kilowatt-hour.
In addition, a 10% surtax is added to the
final bill. Write a program that calculates
the electrical bill given the number of
kilowatt-hours consumed as input. At the end,
print the number of kilowatt-hours consumed
and the computed bill
Passes test cases 3/5
Sample Input 1
1000
2
3Sample Output 1
1060These are just samples. There are other test cases too.
let inputString = '';
let currentLine = 0;
process.stdin.on('data', inputStdin => {
inputString += inputStdin;
});
process.stdin.on('end', _ => {
inputString = inputString.trim().split('\n').map(string => {
return string.trim();
});
main();
});
function readLine() {
return inputString[currentLine++];
return input === undefined ? undefined : JSON.parse(input);
}
function calculateFinalValueWithAppreciation(principal, time, apprPercentage) {
let finalValue;
finalValue = principal * (1 + time * apprPercentage / 100);
return finalValue;
}
function main() {
const principal = readLine();
const time = readLine();
const apprPercentage = readLine();
const finalValue = calculateFinalValueWithAppreciation(principal, time, apprPercentage);
console.log(finalValue);
}
A character array is created as follows
Char*cpr =new char [20];
How could we delete the memory create using the operator delete