Logic and desgin HELP just need to get started on this.
- Write a program that accepts five homework scores as input values and stores them into a table (which is another name for an array). Once the scores are in the array, we can process them again and again.
First, load the scores in your array. Second, display the contents of the array in order. Third, display the array in reverse order. Fourth, calculate the average of the five scores entered in the array. Finally, the algorithm should display all the homework scores in the array that are larger than the previously calculated average. Make sure you use some output statements to clarify all the details you are displaying, being cautious about spelling and communicating to your user
2.Customers will not know exactly how many items they will purchase, so using a for-loop on this lab is not allowed.
Accept the dollar value of each item purchased from the user until the user is finished.
When purchases are complete, enter a sentinel value of -1 (Make certain you do not include the -1 sentinel value in your total).
Keep track of the total dollar amount of all fireworks purchased.
Keep a tally of the number of items purchased.
If more than 20 items were purchased, give your customer a 10% discount on the total purchases.
Once purchases are complete, display the total number of items purchased, the average price of the items, the total of all fireworks purchased, any discount if applicable, and the total of all fireworks purchased minus the discount.
View Answers
Related Tutorials/Questions & Answers:
Logic and desgin HELP just need to get started on this.Logic and
desgin HELP just need to
get started on this.
Write a program that accepts five homework scores as input values and stores them into a table (which is another name for an array). Once the scores are in the array, we
Advertisements
Just Got The New iPad? Getting Started? should know to
help get you
started.
The basics ADS_TO_REPLACE_1...
Just Got The New iPad? – Getting
Started
Since its release in early... should be aware of to
help you
get the full experience out of your new iPad. All
Need helpNeed help Hello...
I
need some
help
I have a method which contains 1 string value and i wnat when this method
get called den that string value should b assigned as array name..
for example..
i have a method name() which
Need helpNeed help Hello...
I
need some
help
I have a method which contains 1 string value and i wnat when this method
get called den that string value should b assigned as array name..
for example..
i have a method name() which
Need help. This name list should
get from the database. Please
help me.
By the way, I'm...
Need help Dear sir, I have a problem. How to write JSP coding, if a user select a value from drop down list for example department, the another drop
Need help with this!Need help with this! Can anyone please
help me... to a file at all at this time. Any
help would be greatly appreciated, thank you... to effectivly end the loop with out the
need to break it.
for(i=(0); i <
Need some help urgentlyNeed some
help urgently Can someone please
help me with this below question. I
need to write a class for this.
If you roll Y standard six-sided dice, what�s the probability that you
get at least X 4's?
To calculate
Logic error? HELP PLEASE! :(Logic error?
HELP PLEASE! :( Hello Guys! i have a huge problem. What... there is a text box which user to key in their email and one more dropdownlist which
get... in the email. then use the email to
get the date and populate into the dropdown list.
I
need help to create appletneed help to create applet Can u
help me..??
I
get a task ...and i dont know how to make it...
So I hope that u can
help me...
Here is the task...
e) CardLayout
If u can
help me, then please
Need Help With This ScenarioNeed Help With This Scenario The bonnet of a car is opened to determine if there is anything wrong with the
engine. Firstly, the radiator water... low, the battery is replaced with a new battery. Finally, the car is
started Need Help With This ScenarioNeed Help With This Scenario The bonnet of a car is opened to determine if there is anything wrong with the
engine. Firstly, the radiator water... low, the battery is replaced with a new battery. Finally, the car is
started Need Help on JMS - JMSNeed Help on JMS Hi, In my application i
need to create my own ques and my own QueueConnectionFactory..... Plz tell me how to create the same... Any
help is appriciated,.. Thanks in advance
Need help with nested queriesNeed help with nested queries Hello,
Table1 has "id", "votes" columns. Table2 has "id", "Name" column. I
need to retrieve Name and its corresponging Votes. I tried with nested queries but its confusing. Can anyone please
help need help with programneed help with program To write a program to read a set of words from a file and return the following
1)Each word in the file against its frequency
2) the frequency should be in the descending order of the frequencies
need help pleaseneed help please Dear sir, my name is logeswaran. I have a big problem that I can't find the solution for a program. How can I block a user from enter a page second time. Please
help me.
By the way I'm using Access database
Need Help in Java programmingNeed Help in Java programming Hello. Can someone please
help me with writing the following program
Java program that gives assignment details such as:assignment number,assignment name,due date,submission date,percentage marks
Need Help on the scriptNeed Help on the script hello there,
My name is Femi and am a web... dont know if you can
help me out with it.
The platform am building will receive..." without quotes, and it may be longer than that.
Now how do i
get it to my
need help with programneed help with program To write a program where we can take two integer array as input,Find the missing number from array"B" has all the numbers from array"A" except one,and find the fastest way in doing
Need help on JAVA JSPNeed help on JAVA JSP Hi,
I have never worked on java and I have been given an assignment where I have to fix existing issues in the tool(created...(
need to know how I can adjust it based on the cureen system's screen resolution
Friends need a help on ruby..Friends
need a
help on ruby.. Friends i
need a ruby script and the requirement is
When i am running a ruby script in cmd, after executing my script, a html report will be generated having my console output details. For ex
How to Get Started with Java?A Java Beginners Tutorial - How to
Get Started with Java?
For a programmer...
started with Java you
need to keep in mind a few things. First of all, you
need to install a lot of things (almost all you
need) before
just starting. Java
hello there i need helphello there i
need help : i
need to do a program like this:
Automatic Teller Machine
[B] Balance
[D] Deposit
[W] Withdrawal
[
Q] Quit
select you... i am a beginner, and aside from that i am really eager to learn java please
help Need help with console program?Need help with console program? Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed).
thanks in advance.
Here is an example that repeatedly
i need a help in this pleasei
need a
help in this please The factorial of a nonnegative integer n is written n! (pronounced â?? n factorialâ??)
and is defined as follows:
n!=n . (n-1) . (n-2) . .... . 1 (for values of n greater than or equal to 1) and
n!=1
Need Help - Java BeginnersNeed Help Hello Sir,
Am a beginner of Java. Also i did course on J2EE... but dont have any ideas about real time projects.
But i want to do some projects in Java as well as J2EE...
Can u
help me and guide to do a project
need help...................pleaseneed help...................please I have a problem in my JSP Coding... on this area. Please
help me.
By the way, I'm using access Database and JSP coding... dropdown corresponding values will
get displayed into textboxes.
1)selectname.jsp
need help - Java Beginnersneed help
Need help in programming in Java Simple java program that will show the output within quotes using system.out.println();DISPLAYING OUPUT " * " ," *** " ........I used System.out.print
Need help - Java BeginnersNeed help To Write a Java program that asks the users to enter a m * n matrix of integers, m and n being the
number of rows and columns...; Hi Friend,
Please try the following code. We hope that this code will
help seriously need help....seriously
need help.... Write a program that will prompt the user to select an appliance, lookup the energy the appliance uses and for each time of use rate band: calculate the cost to run the appliance and display a bar graph
Need help with my projectNeed help with my project Uses a while loop to perform the following steps:
-Prompt the user to input two integers: firstNum and secondNum where secondNum is at least 10 greater than firstNum, both numbers are positive integers
Need help in java programmingNeed help in java programming Hello.
Can someone please
help me with writig the following programm.
Assignment 20%
Presentation 10%
Mini Test 10%
Exam 60%
Java program that accepts the following details: student
I have need to helpI have
need to help Write a program that, for four points A, B, C and P, draws a triangle formed by ABC
and a small cross showing the position of P; and displays a line of text indicating which of
the following three cases
need help - Swing AWTneed help Create a program to correct and grade a set of multiple choice test result. this is a console program that uses JOptionPane dialog boxes as well.
Must read a set of 10 correct answers, using a JOptionPane dislog box
How do I get started with BootstrapHow do I
get started with Bootstrap Hi,
I am new to Bootstrap and want to learn it in. What all things I should know before starting Bootstrap?
How do I
get started with Bootstrap?
Thanks
How do I get started with BootstrapHow do I
get started with Bootstrap Hi,
I am new to Bootstrap and want to learn it in. What all things I should know before starting Bootstrap?
How do I
get started with Bootstrap?
Thanks
Can I get a job with just python?Can I
get a job with
just python? Hi,
I am beginner in Data Science...
get a job with
just python?
Try to provide me good examples or tutorials links so that I can learn the
topic "Can I
get a job with
just python?"
need help with a program - Java Beginnersneed help with a program Part I An algorithm describes how... by the user. The output of the program should be the length and width (entered.... First you would
need to make up the "test data". For this algorithm, the test data
Need help in constructing bubble sortNeed help in constructing bubble sort using a bubble sort, for each entry in the array, display the original index of the first dimension... array figured out
just couldnt dont know how to plug in the bubble sort
Netbeans Question need help desperately!! Netbeans Question
need help desperately!! Ok here is my code..., number, frequency[die1][die2] + 1);
okay that's the code....I'm trying to
get... dice. How do I
get the frequency of the numbers to print
need someone to do/help with codeneed someone to do/
help with code i
need someone to do a code for me. It is a restaurant menu that displays a list of 10 food items. A customer..., along with the number of items sold..please
help did a code 500 times cant
i need help plz .... Quickly i
need help plz .... Quickly how can i count how many numbers enterd by the user so the output would be like this
Total number of Scores...("Now , I'll
get the total Scores you've entered
Need urgent help with C++ errors!Need urgent
help with C++ errors! hi,
i'm new to C++ programming... don't know what to do.
Please
help!!
#include<iostream.h>
void main...
help Need help on mySQL 5 - SQLNeed help on mySQL 5 Dear Sir,
I'm a beginner of mySQL 5 . I
need help on mySQL5 command.
This is the table which i created is called... by using Aggregate function(MAX).
May i know that what command i
need PLZ Need some help JAVA...HELP !!PLZ
Need some
help JAVA...
HELP !! Create a class names Purchase Each purchase contains an invoice number, amount of sale and amount of sales tax. Include set methods for the invoice number and sale amount. Within the set