Write a program that asks the use to enter some dates

Assignment Help Computer Engineering
Reference no: EM131984803

Lab 1 Complete the following code to find the largest number among the positive numbers that user entered. When the use enters a negative number the program stop taking input and prints out the result.

#include <stdio.h>

int main(void)

{

float x, max = 0.0f;

for (;;) {

printf("Enter a number: ");

}

printf("\n"); /* blank line */

printf("The largest number entered was %g\n", max);

return 0;

}

Lab 2 Write a program that finds the smallest number among 30 numbers that user entered. The 30 numbers are not necessarily positive. (Do not use array or other data structures).

Lab 3 Print the following numbers (first column contains odd number in ascending; second column contains even numbers in descending)

1 20

3 18

5 16

7 14

9 12

11 10

13 8

15 6

17 4

19 2

Lab 4 Print multiplication table:

Lab 5 Write a program that asks the use to enter some dates, then the program prints the earliest date the user entered. An input of 0/0/0 stops the program.

Reference no: EM131984803

Questions Cloud

What is the coupon rate on bond : Suppose today a 1.94 percent coupon bond sells at par. What is the coupon rate on the bond?
What is one share of this stock worth to you today : Sharpe General Stores is declining so it has announced that it will pay annual dividends of $.80, $.50, and $.50 over the next three years, respectively.
Bonds on market making annual payments : Page Enterprises has bonds on the market making annual payments, with eight years to maturity,
Embed a video of your favorite song or music piece : Embed a video of your favorite song or music piece and explain why you like it. You can also add background information.
Write a program that asks the use to enter some dates : Write a program that asks the use to enter some dates, then the program prints the earliest date the user entered. An input of 0/0/0 stops the program.
Capital gain percentage increase for the coming year : What is the capital gain percentage increase for the coming year if the yield to maturity remains? constant?
Find the expected return and the standard deviation : The shares of a company AVV are currently traded at £50. One risk- free asset is also available on the market.
What will be the amount of her monthly mortgage payments : Theresa just bought a house and will borrow $180,000. what will be the amount of her monthly mortgage payments?
How much should the annual payments be : The discount rate is 16%. As an alternative, she can receive $10,000 today. Which should she choose?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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