Questions: 1 835

Answers by our Experts: 1 539

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 program that mimics a calculator. The program should take as input two integers and the

operation to be performed. It should then output the number, the operator and the result. (For division,

if the denominator is zero, output an appropriate message).


Topic: Function

Write a function-­‐oriented program to convert the input dollar(s) into its equivalent

peso. Assume that one dollar is equivalent to 53.80 pesos.

Note: you can choose any looping statement if needed.


Topic: Function

Write a function-­‐oriented program that calculates the sum of the sequence number from 1 to n. Thus, if the input is 5, the output should be 15

because:

1 + 2 + 3 + 4 + 5 = 15

Note: you can choose any looping statement if needed.


Topic; Function Write a function-­‐oriented program that calculates the power value of the input base number and exponent number. Then display the power value. Sample input/output dialogue:

Enter base number: 5 Input data

Enter exponent number: 3 Second input data

Power value: 125 Output

(The computation is 53 = 5 * 5 * 5 = 125)

Note: you can choose any looping statement if needed.


Topic: Function

Write a function-­‐oriented program that generates the Fibonacci series numbers of n (as input) and display them. In Fibonacci, the current third number is the sum of two previous

numbers.

Note: you can choose any looping statement if need.


Topic: Function

Write a function-­‐oriented program to convert an input Celsius into Fahrenheit degree. Use the formula F= (9.0/5.0)*C+32. Display the Fahrenheit degree.

Note: you can choose any looping statement if needed.


Topic: Function

Write a function-­‐oriented program that converts the input indeed into its equivalent centimeters. One inch is equal to 2.54 cms. Display the converted centimeters value.

note: you can choose any looping statement if needed.


Topic: Function


Write a function-­‐oriented program to calculate the area of a circle. Use the

formula: A=πr2 where Pi(π) is equal to 3.1416 (approximately).

note: you can choose any looping statement.


Student Report Card Application Develop that saves students’ marks information; show position and report card of each student in descending order. Requirements Each student has three subjects (English, Math and Computer). Application will save each student’s marks along with student’s name. Application will calculate total marks. Application will show position and report card in descending order.

Press any following key

Enter Total Students : 2

Enter Student Name : Lakhtey

Enter English Marks (Out Of 100) : 50

Enter Math Marks (Out Of 100) : 60

Enter Computer Marks (Out Of 100) : 30

Enter Student Name : Ali Asad

Enter English Marks (Out Of 100) : 60

Enter Math Marks (Out Of 100) : 70

Enter Computer Marks (Out Of 100) : 30

****Report Card*****

Student Name: Ali Asad, Position: 1, Total: 160/300

Student Name: Lakhtey, Position: 2, Total: 140/300

Use multi-dimension array to store student’s information.

Use loops to iterate over each student’s information to generate report.


Enter how many students [Max=25]: 5


Enter name of Student: John Wayne


Enter name of Student: James Bond


Enter name of Student: Bruce Almighty


Enter name of Student: Peter Parker


Enter name of Student: Tony Stark



Enter Grades for John Wayne


Prelim : 95


Midterm : 96


Final : 97


Enter Grades for James Bond


Prelim : 91


Midterm : 92


Final : 93


Enter Grades for Bruce Almighty


Prelim : 98


Midterm : 99


Final : 97


Enter Grades for Peter Parker


Prelim : 92


Midterm : 94


Final : 93


Enter Grades for Tony Stark


Prelim : 99


Midterm : 99


Final : 98



Course: Programming 101


List of Students Prelim Midterm Final Grade Rating


John Wayne 95 96 97 96 1.25


James Bond 91 92 93 92 1.75


Bruce Almighty 98 99 97 98 1.25


Peter Parker 92 94 93 93 1.5


Tony Stark 99 99 98 99 1.0


Computations


Grade = Prelim (30%) + Midterm (30%) + Final (40%)


Grade Rating


99-100 1.0


96-98 1.25


93-95 1.5


90-92 1.75


87-89 2.0


84-86 2.25


81-83 2.5


78-80 2.75


75-77 3.0


74 and below 5.0


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS