Design a for loop that gets six integer numbers from a user

Assignment Help Programming Languages
Reference no: EM131274146

Programming Assignment

1. Design a for loop that gets 6 integer numbers from a user, accumulates the total of them, then displays the accumulated total to the user. Just write the code segment to show what is asked, not a complete program. however, declare any variables that you need to use. Use a semicolon (;) at the end of each line of code so I can tell when you use a new line in your code.

2. Design a while loop to get a series of numbers from a user; the loop stops when the user enters a negative number. For each number the user enters, the number is multiplied by 5 then the product is displayed on the screen. Be sure to declare the variables that you will use; include the code needed to prompt the user and the code segment needed for the loop to work without error; and, place a semicolon at the end of each line of your code so I can easily read it.

3. Write the pseudocode for a function definition that is named toOunces. The function is to accept an argument from the calling module for the number of pounds (as real data type). The function is to change the number of pounds sent to total number of ounces in the pounds. The function returns the number of ounces calculated.

4.Write a single pseudocode statement that calls a function named calcTax and assigns the return value to a variable named taxAmount. The statement also sends two arguments: a sales amount of $1,248.50 as the first argument and a rate of .0775 as the second argument.

Reference no: EM131274146

Questions Cloud

Incident response strategic decisions : Suppose that you have been alerted of a potential incident involving a suspected worm spreading via buffer overflow techniques, compromising Microsoft IIS Web servers. As the IR Team leader, it is your responsibility to determine the next steps.
What was the research hypothesis : Each student will select two (2) peer-reviewed journal articles and utilize the Publication Manual of the American Psychological Association (2012) to correctly cite and summarize the information in the following format: What was the researc..
Discuss about the risk of sudden infant death syndrome : risk of developing sudden infant death syndrome (SIDS).
Display the wind chill temperature index : Write a Python program to display the wind chill temperature index. First perform the appropriate calculations and display the corresponding wind chill temperature index:
Design a for loop that gets six integer numbers from a user : Design a for loop that gets 6 integer numbers from a user, accumulates the total of them, then displays the accumulated total to the user. Just write the code segment to show what is asked, not a complete program.
Problem regarding the four-node internet : To understand how the distance vector algorithm in Table 20.1 works, let us apply it to a four-node internet as shown in Figure 20.32. Assume that all nodes are initialized first. Also assume that the algorithm is applied, one at a time, to each n..
What were the main results for each study : What experimental question did this article raise for you? That is, if you were going to conduct an experiment on the topic of this article using it as background information, what question would you want to explore? Briefly describe how you would..
Difference between the external and internal fragmentation : Discuss the difference between external and internal fragmentation. Which page-replacement strategy incurs more execution overhead: least recent used (LRU) or least frequently used (LFU)?
Examples of projects that suffered from scope creep : Perform some outside research and find  two examples of  projects that  suffered from scope creep. Try to determine why they suffered scope creep. Use specific actions, tools, or techniques discussed in this chapter that could have helped prevent ..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd