biography of physics by g. gamow下载
《Physics: A Biography》是由乔治·伽莫(G. Gamow)所著的物理学传记。伽莫是一位杰出的物理学家和作家,他的贡献在物理学界产生了深远的影响。
伽莫生于1904年,他在苏联接受了良好的教育。他研究了许多领域,特别是关于原子核物理和宇宙学的研究。
在20世纪30年代初,伽莫提出了一个被称为α衰变理论的新理论。这个理论成功地解释了元素衰变和放射性衰变的现象,为后来的原子核物理学奠定了基础。
伽莫还在宇宙学方面有着重要的贡献。他提出了一个被称为“热大爆炸”的理论,解释了宇宙最初的起源和演化。这个理论后来成为宇宙学中的基本模型,并为后来的观测结果提供了重要的验证。
除了他的研究工作,伽莫也是一位很有趣的科普作家。他以幽默和幽默而广为人知,并用通俗易懂的语言向公众介绍物理学的复杂理论。他的书籍《一二三无穷大》和《古怪的量子》都是物理学普及的经典之作。
这本《Physics: A Biography》是伽莫对自己物理学生涯的总结和回顾。在书中,他回顾了自己的科学研究和重要发现,以及与其他杰出物理学家的交流和合作。这本书为读者提供了一个深入了解伽莫以及他对物理学领域的贡献的机会。
总之,伽莫是一位杰出的物理学家和作家,他对原子核物理和宇宙学的贡献使他成为20世纪最重要的物理学家之一。《Physics: A Biography》是他关于自己科学生涯的回顾,为读者提供了深入了解这位伟大科学家和他的工作的机会。
现有类Person和Book,其定义如下: import java.io.Serializable; import java.time.LocalDate; public class Person implements Serializable{ private static final long serialVersionUID = 1L; private String name ; private String gender ; private LocalDate birthday ; private String biography ; public Person() { } public Person(String name , String gender , String biography , int year , int month ,int day) { this.name = name ; this.gender = gender ; this.biography = biography ; this.birthday = LocalDate.of(year , month , day) ; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getGender() { return gender; } public void setGender(String gender) { this.gender = gender; } public LocalDate getBirthday() { return birthday; } public void setBirthday(LocalDate birthday) { this.birthday = birthday; } public String getBiography() { return biography; } public void setBiography(String biography) { this.biography = biography; } @Override public String toString() { return "name: " + name + " , gender: " + gender + " , birthday: " + birthday + " , biography: " + biography ; } } import java.io.Serializable; public class Book implements Serializable{ private static final long serialVersionUID = 1L; private String name; private Person author; private int price; public String getName() { return name; } public void setName(String name) { this.name = name; } public Person getAuthor() { return author; } public void setAuthor(Person author) { this.author = author; } public int getPrice() { return price; } public void setPrice(int price) { this.price = price; } public Book() { } public Book(String name,Person author,int price) { this.name = name; this.author = author; this.price = price; } @Override public String toString() { return "name: " + name + "\nauthor: " + author + "\nprice: " + price ; } } 有一段程序用objectOutputStream的writeobject()方法连续向文件dict.dic中写入了5个Book类型的对象。现请你写一段程序将这5个对象读出来。 注意:你的程序中要把Person和Book类的定义复制过去。
可以使用ObjectInputStream的readObject()方法从文件中读取序列化后的对象。具体代码如下:
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.ArrayList;
import java.util.List;
public class ReadBooks {
public static void main(String[] args) {
String filename = "dict.dic";
List<Book> books = new ArrayList<>();
try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename))) {
for (int i = 0; i < 5; i++) {
Book book = (Book) ois.readObject();
books.add(book);
}
} catch (IOException | ClassNotFoundException e) {
e.printStackTrace();
}
for (Book book : books) {
System.out.println(book);
}
}
}
在上面的代码中,首先定义了一个文件名filename和一个空的List
The retail stores of SirenCD sell many different CD albums. An album can have one or more soundtracks. Each soundtrack has its track name, release date, genre, length and composer. Each album is associated with an artist. Customers can look up information about all artists, such as date of birth, biography and all his/her albums from the website of the company. The company provides a special service that allows customers to make their own CDs by providing a playlist to the company. These playlists can have tracks from different albums. The selection of soundtracks for these playlists are private to customers and are not visible to others. The price of such a customised CD is the sum of the prices of all soundtracks plus 30. Before being able to make purchases, a customer needs to register an account with the help of a retail store staff. The information needed for registration includes name, phone number, membership card number, address (for delivery, when needed) and the staff id who helped with the registration. The information about staff members consists of the staff id, name, the store he works in and the date of joining the store. After purchasing CDs, the customer will receive an invoice with the list of items he/she purchased. The information of invoices should also be stored in the database. You need to decide what to include in your database. 根据上述描述,画出ER图
根据上述描述,以下是基于SirenCD的ER图设计:
+--------------+ +--------------+
| Artists | | Albums |
+--------------+ +--------------+
| ArtistID (PK)| | AlbumID (PK)|
| Name | | Title |
| DateOfBirth | | ReleaseDate |
| Biography | | ArtistID (FK)|
+--------------+ +--------------+
| |
| |
| |
| |
v v
+-------------------+ +------------------+
| Soundtracks | | Playlists |
+-------------------+ +------------------+
| SoundtrackID (PK) | | PlaylistID (PK) |
| TrackName | | CustomerID (FK) |
| ReleaseDate | +------------------+
| Genre |
| Length |
| Composer |
| AlbumID (FK) |
+-------------------+
|
|
|
v
+---------------------+
| Customers |
+---------------------+
| CustomerID (PK) |
| Name |
| PhoneNumber |
| MembershipCardNumber|
| Address |
| StaffID (FK) |
+---------------------+
|
|
|
v
+------------------+
| Staffs |
+------------------+
| StaffID (PK) |
| Name |
| Store |
| DateOfJoining |
+------------------+
|
|
|
v
+---------------------+
| Invoices |
+---------------------+
| InvoiceID (PK) |
| CustomerID (FK) |
| TotalPrice |
+---------------------+
根据题目要求,这个ER图包含了以下实体和关系:
- 实体:Artists、Albums、Soundtracks、Playlists、Customers、Staffs、Invoices
- 关系:Artist与Album之间的关系、Album与Soundtrack之间的关系、Playlist与Soundtrack之间的关系、Customer与Playlist之间的关系、Customer与Staff之间的关系、Customer与Invoice之间的关系
以上ER图为基本设计,具体的属性和关系可能需要根据实际需求进行调整和完善。
相关推荐










