Write a program to create a class students having name, id, age. Create a file student.txt and open in append mode. Write the detail of 3 students into a file and read the data from the file and display on screen. Also copy content of this file into another file
The goal of this coading exam is to quickly get you off the ground eith the array method every().there is a selection going on for the civil service sector candidates have to participate in x number of events and, the condidates who score more than 75 points in every event will be selectedgiven candidatesList as input,it contains objects with the name of the condidate and an array consisting of points achieved in each event by the condidate.filter the condidates who have scored more than 75 points in every event
log the array consisting of the names of the selected candidates in the console
i/p:the i/p will be a siongle line containing an array with names of the selected candidates
constraints:keys of objects should be given in quotes
input:
[{'name':'Blake Hodges','points':[76,98,88,84]},{'name':'James Anderson','points':[0,98,12,33]},{'name':'Matthew Norton','points':[89,67,83,93]}]
output:
['Blake Hodges']
1 an array containing 5 integer elements is already provided for you in the code editor below
2 print out the cube of the 1st, 3rd and 5th element of the given array
Create a short program that will generate a random number from 0 to 100 while using Math.random and Math.round command.
JamEx Limited requires a program to calculate and print the commission received by a salesperson. The program should process an undetermined number of salespersons and appropriately terminate by a predefined input. The commission rate is based on two factors, the amount of sales and the class to which a salesperson belongs. The input will be the salesperson number, sales amount and class. The commission rate will be based on the following criteria:
Class=1
If sales is equal to or less than $1000, the rate is 6 percent.
If sales is greater than $1000 but less than $2000, the rate is 7 percent.
If the sales is $2000 or greater, the rate is 10 percent.
Class=2
If the sales is less than $1000, the rate is 4 percent.
If the sales is $1000 or greater, the rate is 6 percent.
Class=3 The rate is 4.5 percent for all sales amount
Class=any other value
Output an appropriate error message.
*need the answer in the form of a pseudocode and flowchart
5. “OptionB” Method
Create a method called “OptionB” that will print the conversion from miles to kilometres by calling “MilesToKilometers” method (defined in the item #6 below) starting at 10 miles up to 100 miles in increments of 10. Show the result on a table in the console.
6. “MilesToKilometers” Method
Create a method called “MilesToKilometers”
Write a C++ program to calculate area and perimeter of square and rectangle using function.
Output Example should be
Enter Side of a square: 4
Enter Length and Breadth of Rectangle: 3 6
The Area of a square is: 16
The Area of Rectangle is: 18
The Perimeter of a Square is: 16
The Perimeter of a rectangle is 18
Write a program to perform the function of a Simple Interest Calculator.
Task 4
Write a program that does the following for 15
students:
Reads in 3 marks for each student (you
need to ensure that only valid marks
between 0 and 100 are processed) – your
prompt message to the user should
indicate which number is being requested
(see example image of output)
Calculates and displays the highest mark
for each student.
Finds and displays the highest mark in the class.