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

a program that reads in a number n and then outputs the sum of squares of the numbers from 1 to n. If the input is 3, for example, the output should be 14, because 1²+2²+3² = 1+4+9=14
The cost of a brand new car is P420,000 for GL model and P3398,000 XL model. If a car phone will be installed, an additional P40,000 will be added to the cost. Moreover, 15% discount on the total cost will be given if the buyer pays in full(not installment), Write a Program that would input the car model bought, whether with car phone, use code ‘’W’’ for with car phone and ‘’O’’ for without car phone) and whether it will be paid in full(use code’’F’’ for full payments and ‘’I’’ for instalment).Program must then output the cost of the car.
In the game of scissors, paper, stone (or Jack N Poy or Pick) each of two players choose either scissors (code X),paper (code P) or stone (code S). If one chooses scissors and the other chooses stone then paper wins. If one chooses paper and the other scissors then scissors wins. If they both chooses the same then the result is tie. Read in two character codes corresponding to the object selected and then output either message ‘PLAYER 1 WINS’, ‘PLAYER 2 WINS’ or ‘TIE’. Use the output format below:
JACK N POY GAME
PLAYER 1 ENTER :<value and not code>
PLAYER 2 ENTER:<value and not code>

RESULT :<result>
An airplane operates planes which have first class and economy seats. If the customer approaches a tcket clerk, the clerk ask which type of seat is wanted. If that type is available, a ticket is issued for that seat. If not available, the customer is asked if the alternate type of seat would be acceptable(provide one is available)If it is acceptable, a ticket of the alternative type is issued.If it is not acceptable. A ticket of the alternate type is issued. If it is not acceptable, no ticket is issued. Write a program that would display either ‘ISSUE FIRST CLASS’,‘ISSUE ECONOMY’,or ‘DO NOT ISSUE TICKET’based on output codes entered.The input codes are defined as follows:
Class code1=cstomer wants first class 2=customer wants economy class
Alternative code 1=cstomer will take alternative type.2=customer won’t take alternative type.
Availability Code of First 1=first class seat is available. 2=first class seat is not available class.
Avbility Code Ecnmy1=economy seat is availability2=economy seat is available.
Lojack Airline allows a passenger only two pieces of luggage. The heavier bag can be at most 80 pounds but the total weight of the two should not exceed 100 pounds. Make a program that would input the weight of the two bags in any order and output whether the weight of the bags in any order and output whether the luggages are allowable or not. Use the output format below.

LOJACK AIRLINE

WEIGHT OF FIRST BAG :<value entered>
WEIGHT OF SECOND BAG :<value entered>

STATUS :<status>
LUGGAGE FEE :<fee>

Notes:
1. Status is either ‘WEIGHT ALLOWABLE’ or WEIGHT NOT ALLOWABLE
2. Luggage fee is
Weight Fee
Below 40 ₱10
41 to 75 ₱12
76 to 100 ₱15
Not allowable ₱0
The cost of a brand new car is ₱420,000 for GL model and ₱3398,000 XL model. If a car phone will be installed, an additional ₱40,000 will be added to the cost. Moreover, 15% discount on the total cost will be given if the buyer pays in full(not installment), Write a Program that would input the car model bought, whether with car phone, use code ‘’W’’ for with car phone and ‘’O’’ for without car phone) and whether it will be paid in full(use code’’F’’ for full payments and ‘’I’’ for instalment).Program must then output the cost of the car.

* ₱ is the symbol for Philippine peso :) thank you Sir/Ma'am
14. The amount of miscellaneous fees a student pays during enrolment is determined by his nationality, year level, and sex. A flat fee of P200 is paid by all students. Male seniors pay an additional P100 for ROTC. Female freshmen or sophomores pays additional P75 for girls scouting. Foreigner are excepted from ROTC or girls scouting.Make a program that would input the nationality code (‘’F’’ for foreigners and ‘’N’’ for non-foreigners), sex code (‘’M’’ for male and ‘’F’’ for female) and year level(between 1 and 4).
A program that will input Word in month from (2000 January to December) and their Numeric dates and output how many week it consume and display whether it is Monday, Tuesday, Wednesday, and etc. Relate the program below:

SAMPLE OUTPUT

Enter Word Month : January
Enter Numeric Date : 31

January 31,2001 is equivalent to 31 days.
It is equivalent to 4 weeks and 3 days.

January 31,2001 is Monday.

Enter Word Month : Jry
Enter Numeric Date : 31

INVALID ENTRY!

Enter Word Month : December
Enter Numeric Date : 33

INVALID ENTRY!

NOTE: Please include from each program the INVALIDATION For instance 'INVALID ENTRY'!.
The first few Fibonacci no. are 1,2,3,5,8.One place that these numbers occur is as certain population growth rates. If a population has no deaths,then the series shows the increase in population growth rates.If a population has no deaths,then the series shows the increase in population after each generation.A generation is the time it takes a member to reach reproducing age.The formula applies most straightforwardly to asexual reproduction at a rate of one offspring per parent per generation. In any event, the green crud population grows at that rate and produces one generation every five days. Hence, if a green crud population starts out as 10 pounds of crud, in 15 days there is 30 pounds, in 20 days there is 50 pounds, and so forth. Create a program that takes as input the initial size of a green crud population (in pounds)and a number of days and then outputs the number of pounds of green crud after that many days.Assume that the popultion size remain the same for four days and then increase on the 5th day
A program that list the number from 0 to 25, their square, square roots,fourth power, and fourth root. The output should be in a neat five column format.
LATEST TUTORIALS
APPROVED BY CLIENTS