Create a function (order()), that arranges two numbers in ascending order
Now ask the user to enter three numbers and by using the same function, arrange and display the entered
three numbers in increasing order
Write a program using one-dimensional array that determines the highest value among the five input values from the keyboard and prints the difference of each value from the highest.
enter five numbers: 10 20 15 7 8
the highest is: 20
the difference from the highest are:
20 – 10 = 10
20 – 20 = 0
20 – 15 = 5
20 – 7 = 13
20 – 8 = 12
Write a program using one-dimensional array that determines the highest value among the five input values from the keyboard and prints the difference of each value from the highest.
the result would be:
Enter ten numbers:
8 9 7 10 25 30 69 101 1001 798
Here is the list of Even number/s:
8 10 30 798
In this assignment, you will create a class named Complex. The class contains:
Sample run:
Enter the first complex number . . .
Enter real part: 3
Enter imag part: 4
Enter the second complex number . . .
Enter real part: 4
Enter imag part: -6
You entered the numbers ...
C1 = 3 + 4i
C2 = 4 – 6i
The division of two complex numbers:
C1 / C2 = -12/52 + 34/52 i
Would you like to input more numbers? (y/n) n
Thank you for using complex numbers app!
a)
Define ADT class MyQUEUE and MyStack implemented using Linked List data structure.
b)
Using class Book defined earlier, complete the AppQueueBook class :
In the main program:
a.
Declare a queue of books object named BookQ
b.
ask user to enter 10 Book objects into queue BookQ
c.
Display all books details in BookQ
d.
Display all books which were published before year 2000.
e.
Search and display a book with the lowest price.
f.
Declare another queue of books object named BookQOld, all books published before year
2000 should be copied into this queue
c)
Using class MyStack defined earlier, complete the AppStack class :
In the main program:
a. Evaluate the postfix expressions entered by user and display the result.
Write a program which creates a class named babyRecord with four methods.
a) One method will be used to write details of a child including date of birth, name, parent
names and hospital name into a file called baby_data.txt.
b) The second method will be used to read from the file baby_data.txt and store the data in a
dictionary called records.
c) The third method will be used to search for a baby using baby name or parent names
information in the file called baby_data.txt.
d) The last method will be used to delete records in the dictionary and file respectively.
e) Clearly show how exceptions are handled in your program in each method.
Demonstrate use of Object Oriented Programming (OOP) principles, data structures and file
handling operations to carry out the following tasks:
a) Define a class named Person, with child classes named Daughter and Son who also have
have derived classes named GrandSon and GrandDaughter respectively. All child
classes have derived genetic features and skills from Person. Create 5 methods for
getting and setting genetic features, setting and getting skills and demonstrate the concept
of polymorphism.
b) Modify the answer in a) and show how the person features are captured in a file called
person.txt. Also create another method to read from the file person.csv and store the data
in a list called persondata. Clearly show how exceptions are handled in your program.
The analysis is for your client, a federal government agency, as part of its Microsoft Azure cloud pilot. The Cloud Cost Analysis is the second of a two-part assignment for your client’s CIO. Using the <span lang="EN-US" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 19px; background: transparent;">Azure Pricing Calculator</span>, you will calculate the annual cost to establish a cloud system.
The Cloud Cost Analysis will include three deliverables:
Deliverable 1 will include a share link to calculations displaying the steps you took to calculate the annual cost using the free Azure pricing calculator tool.
Deliverable 2 will be two spreadsheets showing the cost for a pay-as-you-go option and a one-year option payment.
Deliverable 3 will be a two-paragraph memo which compares the two and provides your recommendation.
Describe each possibility in your own words.
Define "precondition" and "postcondition" as part of your description