Questions
Convert -18 to 8-bit sign magnitude, 1's complement and 2's complement.

Convert -18 to 8-bit sign magnitude, 1's complement and 2's complement.

In: Computer Science

Written in C code: Using a structure called person, write a C function called compare_age that...

Written in C code:

Using a structure called person, write a C function called compare_age that takes two person structure pointers as input and returns 1 if the first person is older, -1 if the second person is older, or 0 if they have exactly the same birthday. Hint: Compare the years first, then if equal compare months, if they are equal compare days.

The structure called person should contain the following; has fields for name (50 char array), dateOfBirth (structure called date that has three fields day, month, year, all of which are ints.), address (200 char array), phoneNum (20 char array), and ID (int).

You should print out the comparison result of whether person 1 or 2 is older or if they have the same age.

In: Computer Science

An assembler translates assembly language to machine language instructions. A disassembler can be used to translate...

  1. An assembler translates assembly language to machine language instructions. A disassembler can be used to translate the other way, from machine language to assembly language. For example, our 8086 emulator shows both the machine language bytes and the disassembler output while running a program (it also shows the original assembly code). The disassembled code is usually harder to read than the original assembly language program because some things are missing or may be incorrect. Write down one of the things that may be missing or incorrect

In: Computer Science

- can you explain how the Kasiski’s method work in determining the key length from the...

- can you explain how the Kasiski’s method work in determining the key length from the observed Vigenere cipher.

In: Computer Science

5. AAA Medical Devices is a manufacturer of portable and wearable medical monitoring devices. They have...

5. AAA Medical Devices is a manufacturer of portable and wearable medical monitoring devices. They have developed a glucose monitor embedded in a wristband. The device is powered by body heat and senses glucose levels from minute quantities of perspiration. AAA wants to develop a Real-Time Glucose Monitoring (RTGM) system which will be using this device. AAA is planning to see the software to other health systems worldwide.

The software should be accessible on smartphones with Bluetooth capability.

The project has commenced, and you are appointed as a Systems Analyst to understand the requirements of the new system.

Think about the potential users of the system and discuss three fact-finding techniques that you would use to collect the requirements of the new system.

In: Computer Science

Convert -18 to 8-bit sign magnitude, 1's complement and 2's complement.

Convert -18 to 8-bit sign magnitude, 1's complement and 2's complement.

In: Computer Science

Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement

Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement

In: Computer Science

Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement

Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement

In: Computer Science

Provide a short summary of the article (200-400 words) that includes/addresses the following: Why you selected...

  • Provide a short summary of the article (200-400 words) that includes/addresses the following:
    • Why you selected this article.
    • Describe at least two things you learned from the article including how they add to your knowledge of Global Information Technology.

iPhone 11 Article

The iPhone 11 and iPhone 11 Pro will contain an Apple-designed chip called the U1. The U1 chip enables ultra-wideband (UWB) positioning, which means it’s designed to pinpoint the locations of nearby objects.

Ultra-wideband used to be called pulse radio. It’s been used for years in military and medical applications. But UWB is uniquely suited to real-time locating systems (RTLS), which is what Apple is going to use it for.

Apple notoriously lags in the introduction of new technologies. For example, the new iPhones don’t even support 5G, even though Apple’s Chinese and Korean competitors are offering 5G phones.

Yet the iPhone is the first and only major phone supporting UWB, that I’m aware of. Apple is so far ahead that just last month, engaged said in an article about gathering industry interest in UWB, “The technology is still a fair way off from consumer use.” Turns out that “fair way off” was a few weeks.

Apple’s leadership in UWB reminds me of the company’s aggressive rollout of Bluetooth 4.0 a few years ago. The leap from Bluetooth 3.x to 4.0 was a giant one, and for months Apple was the only major company that supported it. UWB can pinpoint objects’ locations with 30cm accuracy, at a conservative estimate, passing through walls easily but not interfering with Wi-Fi.

It can transfer data at up to 8mbps, which is far faster than Bluetooth. UWB uses “time of flight” to pinpoint location (measuring the time of signal to gauge distance), enabling it to know not only in which direction an object is, but how far away. UWB passes safely through human bodies, and it’s time-to-flight approach is far more accurate for distance measurements.

UWB technologies will probably replace most uses of Bluetooth LE and even RFID.

RFID, like Bluetooth LE, is cheap, ubiquitous and already implemented. But UWB is far more accurate, and it’s compatible with environments where other wireless standards are being used — especially in hospitals, where you really don’t want to be interfering with medical devices.

Apple is building an ultra-wideband monster

Apple calls its U1 chip “living room-scale GPS.”

The U1 enables you to Airdrop a file in a specific direction, boosting convenience slightly. In fact, this is to date the only feature Apple has announced for the U1 chip (the feature should be rolled out with iOS 13.1 on Sept. 30). And it’s very simple and Apple-sequel in its implementation: Just point your iPhone at the person you want to Airdrop to, and that person’s device will appear first on the list.

Rumors, leaks and guesswork suggest that Apple is working on a Tile-like system for finding anything tagged with small, round, white objects that Apple is expected to sell in the future. This “Apple Tags” product is internally code-named B389. (Tile is a product that uses Bluetooth tags, which you place on your keys, your wallet and your dog, so that when you lose them, you can use the Tile app to find them. If they’re all located in the same place, it means the dog has eaten your keys and wallet.)

Tagged items might appear in an app, called “Find My,” along with other Apple devices, as well as your friends, which are currently tracked in separate apps. As in: Find my keys, iPad and wife — all together in the same app.

Other speculation suggests an augmented reality (AR) interface, so you can wave your phone across the room, and a virtual red or orange balloon shows you the location of the lost object. I expect Apple to provide third-party developer access within a year or two to the U1 capability, which will be killer for augmented reality games and apps. The B389 product lets you designate “Safe Locations” where items are considered to be not lost; if they leave those locations, the app will alert you. If you leave your Apple-tagged wallet in an Uber, you can open the “Find My” app to enter that object into “Lost Mode.” Other Apple users will then be notified, and they can contact you to help you get your wallet back. Apple almost certainly has big plans for UBW and the U1 chip. Remember iBeacons? It’s Apple’s beacon system (launched in 2013) for retail stores, public venues and other applications. The idea behind iBeacons is that you place location sensors all over the place, so that someone with an iPhone or other device can navigate and locate and carry on with spatial awareness. Earlier this year, a European Apple patent revealed a UWB version of iBeacons, called “Node Anchors.”Apple’s iBeacons are currently based on Bluetooth LE. It’s fairly inaccurate, however, because false distance readings are easily produced by someone standing in the way, or low energy output of the reading device. The UWB version of iBeacons should be far better and more accurate. Some car companies are using UWB technology for key fob wireless, which is more secure than other technologies because it prevents wireless relay theft (where crooks pick up, magnify and redirect the signal from a key fob inside the house to steal a car in the driveway). It’s easy to imagine Apple convincing car companies to support the U1 chip for secure unlocking of cars with an iPhone. Four years ago, Apple released an app called “Indoor Survey,” designed to enable business owners to map indoor locations based on the strength of Wi-Fi and Bluetooth signals. The idea was to improve store and venue apps that used iBeacons technologies and wanted to offer indoor navigation services. Apple quietly updated Indoor Survey a few weeks ago with an all-new design, coaching wizards, a new Notes feature for commenting on various spots on the map and all-new support for the Indoor Mapping Data Format (IMDF). Apple refreshes its indoor mapping app just a few weeks before introducing its indoor GPS capability. Coincidence? I think not. Enjoy the iPhone’s new cameras. But brace yourself for the real revolution. Expect Apple’s U1 chip and UWB services to usher in a new world of item tagging, AR games, automotive applications, high-definition indoor venue mapping and much more.

In: Computer Science

Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement

Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement

In: Computer Science

Write a program which uses a while loop to add the following numbers: 5, 52, 31,...

Write a program which uses a while loop to add the following numbers: 5, 52, 31, and 65 and output the sum of those numbers. Your output should look like this: The sum of (list the numbers) is ( give the result). //In C language

Upload a screen shot of your program and the results of running the program.

In: Computer Science

Question 2 a) What is your view on importance of project budgeting? AP (7 marks) b)...

Question 2 a) What is your view on importance of project budgeting? AP b) Provide a case study example of the content of your project charter. AN c) Examine the major components of project closure with significance on project delivery.

In: Computer Science

I am working on making a simple gradebook. How it works is it asks user for...

I am working on making a simple gradebook. How it works is it asks user for name and grade. It does this for multiple instances until the person types quit to end the program. The code I have here works. My question is how do I print the output in alphabetical order?

Output from the input I put into my program:

David 98

Annabelle 87

Josh 91

Ben 95

What I want my code to do (in alphabetical order):

Annabelle87

Ben 95

David 98

Josh 91

Here is my code for the program:

grades = {}


def set_grade(name, grade):
grades[name] = grade


def print_grades_names():
for i in grades.keys():
print('{} {}'.format(i, str(grades[i])))

while True:
name = input("Enter a name (or 'quit' to stop): ")
if name == 'quit':
break
grade = input("Enter a grade: ")
set_grade(name, grade)


(print_grades_names())

In: Computer Science

This code has to be in java (I code in eclipse). Also these instructions have to...

This code has to be in java (I code in eclipse). Also these instructions have to be followed exactly because if not my output won't match the expected out ( this will be uploaded on zybooks).

Write a program that asks the user for their age in days. The program will compute the person's age in years (you can assume that all years have 365 days) and then prints one of the following messages:

  1. If the user is 1 year old or younger, print: "You are an infant"
  2. If the user is over 1 year old and 3 years old or younger, print: "You are a toddler"
  3. If the user is over 3 years old and 12 years old or younger, print: "You are a child"
  4. If the user is over 12 years old and 19 years old or younger, print: "You are a teenager"
  5. If the user is over 19 years old and 21 years old or younger, print: "You are a young adult"
  6. If the user is over 21 years old and 50 years old or younger, print: "You are an adult"
  7. If the user is over 50 years old but 65 years old or younger, print: "You are middle aged"
  8. If the user is over 65 years, print: "You are a senior citizen"

For example:

    If the user entered: 350, your program would output: You are an infant
    If the user entered: 800, your program would output: You are a toddler
    If the user entered, 1825, your program would output: You are a child
    If the user entered, 5475, your program would output: You are a teenager
    If the user entered, 7300, your program would output: You are a young adult
    If the user entered, 10950, your program would output: You are an adult
    If the user entered, 23725, your program would output: You are middle aged
    If the user entered, 25550, your program would output: You are a senior citizen
  

Your prompt to the user to enter the number of days must be:

    Enter an age in number of days:
  

Please note that your class should be named AgeLabel.

In: Computer Science

ONLY USE VISUAL STUDIO (NO JAVA CODING) VISUAL STUDIO -> C# -> CONSOLE APPLICATION In this...

ONLY USE VISUAL STUDIO (NO JAVA CODING)

VISUAL STUDIO -> C# -> CONSOLE APPLICATION

  1. In this part of the assignment, you are required to create a C# Console Application project. The project name should be A3<FirstName><LastName>P2. For example, a student with first name John and Last name Smith would name the project A1JohnSmithP2.

Write a C# (console) program to calculate the number of shipping labels that can be printed on a sheet of paper.

This program will use a menu that includes the following options:

  1. Enter/Update paper size
  2. Enter/Update label size
  3. Generate report
  4. Exit

The first menu option will ask the user to enter the width and height of the paper.

The second menu option will ask the user for the width and height of the label.

The third menu option will calculate the number of whole labels that can fit on the sheet and the report the following:

  1. Paper Size
  2. Label Size
  3. Number of Labels
  4. Total Paper Area (Square inches)
  5. Area used by labels (Square Inches)
  6. Amount of unused paper (Percentage of Total Paper Area)

Your program must:

  1. Have at least 3 methods other than the main method
  2. Handle any potential errors using try/catch statements. The error message output should display at least 3 different types of error (or status) messages, depending on what the user has done incorrectly. Your program should be able to catch all possible errors, it should not crash.
  3. Verify that the user has entered valid data for the paper and label dimensions before the report can be generated.

Print a welcome message including a program description and your name before the menu is displayed

In: Computer Science