STUDYSHIELDS ASSIGNMENT HELP

  • Home
  • Blog
  • Courses
    • Child Category 1
    • Child Category 2
    • Child Category 3
    • Child Category 4
  • Services
  • Country
    • Childcare
    • Doctors
  • Home
  • Blog
  • Sample Works
  • Order Now

Friday, February 5, 2016

Write a program that will loop continuously to get user input of positive numbers and total them out

 February 05, 2016     No comments   

You should use simple control structures (such as sequence, selection, iteration, do or while, e.t.c) and functions.

1A) Write a program that will loop continuously to get user input of positive numbers and total them out. The loop will only stop when the user enters non-positive numbers (including zero). The program will display the average before it ends.

B) Write a program that will randomly generate a number from 1 to 100. The user will then guess the number via several attempts. Each time the guess is wrong, the program will let the user know if it is higher or lower than the number. If the number guessed is correct, it will print Bingo! and quit the program.

C) Write a program that asks user to type of series of positive integers. When the user types a negative value, the program should display error message and ask for another value. If the user types 0, it means that the series has end and the program should display the average of all the positive values provided. If the number of typed values is zero, the program writes No Average .

D) Write a program to request the user to input a numeric value. If the input is even, the program will display all the even numbers from 2 until the input. If the number is odd, the program will display all the odd numbers from 1 until the input.

E) A laundry shop charges its customer RM5, for every kilo of laundry. Write a program that asks for the laundry weight and if ironing is wanted. For every kilo, RM7 is charged for iron. Display the total price including ironing cost.

F) Write a function named shift that receives an array of 10 integers, one integer at the index location, shifting each array item to the right and eliminate the last item. The function must then display the final array content.

2) Write a program using struct that calculates the sales of items in a store. The program must have a function that works with struct.
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Click Here to Place order

Popular Posts

  • A “criminal minds” Aileen Wournos individual will be your “patient”
     A “criminal minds” Aileen Wournos individual will be your “patient”  A brief history of the patient including diagnoses (documented or your...
  • CEO Jane Lionel has some hard decisions to make with regard to some of the company’
     CEO Jane Lionel has some hard decisions to make with regard to some of the company’solder hands, and even on the eve of that decision, I be...
  • Problem in Supply Chain
    Problem in Supply Chain Problem 2. (Chapter 11: The Storage and Handling System) Compare the constrast private ownership of storage space to...

Recent Posts

Unordered List

Pages

  • Home

Text Widget

Blog Archive

  • November 2022 (20)
  • October 2022 (50)
  • September 2022 (119)
  • August 2022 (107)
  • February 2022 (501)
  • January 2022 (443)
  • December 2021 (488)
  • November 2021 (1574)
  • October 2021 (28)
  • September 2021 (11)
  • July 2021 (8)
  • June 2021 (15)
  • May 2021 (39)
  • April 2021 (15)
  • March 2021 (303)
  • February 2021 (712)
  • January 2021 (903)
  • December 2020 (2)
  • September 2020 (33)
  • April 2016 (5183)
  • March 2016 (3763)
  • February 2016 (4356)
  • January 2016 (1749)
  • December 2015 (22)
  • November 2015 (147)
  • October 2015 (23)

Sample Text

Copyright © STUDYSHIELDS ASSIGNMENT HELP | Powered by Blogger
Design by Hardeep Asrani | Blogger Theme by NewBloggerThemes.com | Distributed By Gooyaabi Templates